This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2][BZ #12416] Use stack boundaries from /proc/PID/mapsto make stack executable

> So would you prefer a fix that does this instead, i.e. just use
> __libc_stack_end as the end of stack all the time? 

I don't have an overwhelmingly strong opinion.  But all else being equal,
my preference is to minimize the pages which are made executable.  There's
no need for executability in the argument pages, so the security-paranoid
sort of conservatism says not to make them executable.  But the truly
paranoid will eschew any DSOs that require it at all anyway.

> I personally prefer my earlier approach where we don't split the stack
> vma. I believe some aspects of the kernel stack accounting also relies on
> the stack vma, shown by the fact that the split vma does not show up with
> [stack]. This probably should be fixed in the kernel, but we're breaking
> that when we could do this in an alternate way.

What "kernel stack accounting" are you talking about?  The [...] monikers
for /proc/PID/maps output are just meant to be vaguely informative in a
minimal-best-effort sort of way and should not be construed as signs of
anything deeper AFAIK.  If you think there is some concrete sense in which
the kernel purports to grok what is and isn't part of your stack and let
that affect its behavior in any particular way, be explicit about what you


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]