]> git.hungrycats.org Git - linux/commit
[PATCH] mmap PROT_NONE fix for NX patch
authorDaniel McNeil <daniel@osdl.org>
Fri, 16 Jul 2004 04:52:43 +0000 (21:52 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 16 Jul 2004 04:52:43 +0000 (21:52 -0700)
commitbf39d18e640909b8b88318158bec1450bd178ebd
tree9ef98491501bc874e5de8335f7224fe053885ddf
parentd313a47f5bb40a5add4447a9ec46986e82b024de
[PATCH] mmap PROT_NONE fix for NX patch

This works around the current PROT_NONE problem from elf binaries that
do not have the PT_GNU_STACK so that the do not have execute permission.

The problem was that setting "def_flags" to include the VM_EXEC bit for
compatibility reasons would also make PROT_NONE pages executable, which
is obviously not correct.

Signed-off-by: Daniel McNeil <daniel@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mmap.c