]> git.neil.brown.name Git - history.git/commit
[PATCH] Force read implies exec for all 32bit processes in x86-64
authorAndi Kleen <ak@suse.de>
Thu, 10 Feb 2005 06:40:57 +0000 (22:40 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 10 Feb 2005 06:40:57 +0000 (22:40 -0800)
commita3cc2546a54361b86b73557df5b85c4fc3fc27c3
tree78a3c01cc01bf4b24c216596b5fafaccd23d82d7
parentf7581af4ceb43eed2ec0d081f94d5bcf94af5078
[PATCH] Force read implies exec for all 32bit processes in x86-64

This effectively enables executable stack and executable heap for all 32bit
programs on x86-64, except if noexec32=on is specified.

This does not support changing this with personality right now, this would
need more intrusive changes.  A 64bit process will always turn it off and a
32bit process turn it on.

Also readd the noexec32=on option to turn this off and fix a minor bug in
noexec=...  (would be reported as unknown option)

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/ia32/ia32_binfmt.c
arch/x86_64/kernel/process.c
arch/x86_64/kernel/setup64.c
include/asm-x86_64/pgtable.h