public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to make stack executable on demand?
@ 2004-04-16 17:09 H. J. Lu
  2004-04-16 18:07 ` Andreas Steinmetz
  2004-04-16 20:02 ` Arjan van de Ven
  0 siblings, 2 replies; 9+ messages in thread
From: H. J. Lu @ 2004-04-16 17:09 UTC (permalink / raw)
  To: linux kernel

With the non-executable stack kernel, how can I make stack executable
on demand? If I set kernel with non-executable stack, only those
binaries marked with executable PT_GNU_STACK will have executable
stack. But a binary with non-executable PT_GNU_STACK may dlopen a
DSO with executable PT_GNU_STACK. The dynamic linker will try to
make stack executable with mprotect. But it will either fail if
kernel is set with non-executable stack, or be a no-op if kernel
is set with executable stack. Is there a third option that a process
starts with non-executable stack and can change the stack permission
later?



H.J.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-04-22 19:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-16 17:09 How to make stack executable on demand? H. J. Lu
2004-04-16 18:07 ` Andreas Steinmetz
2004-04-16 19:40   ` H. J. Lu
2004-04-19 14:39   ` Pavel Machek
2004-04-16 20:02 ` Arjan van de Ven
2004-04-16 20:46   ` H. J. Lu
2004-04-16 20:57     ` Dave Jones
2004-04-17  7:13     ` Arjan van de Ven
2004-04-19  0:08     ` Jamie Lokier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox