From: Andi Kleen Date: Sat, 25 Mar 2006 15:31:04 +0000 (+0100) Subject: [PATCH] x86_64: Change default setting for noexec32 to match i386 kernel X-Git-Tag: v2.6.17-rc1~687 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7682968b7d4d42bb076051b962c3926b4c98539a;p=linux-2.6-omap-h63xx.git [PATCH] x86_64: Change default setting for noexec32 to match i386 kernel This means i386 processes compiled with a recent compiler will get non executable heap by default now. This is the same default as a 32bit PAE kernel would use on a NX enabled CPU. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/setup64.c b/arch/x86_64/kernel/setup64.c index 356b462cb0e..eabdb63fec3 100644 --- a/arch/x86_64/kernel/setup64.c +++ b/arch/x86_64/kernel/setup64.c @@ -59,7 +59,7 @@ int __init nonx_setup(char *str) } __setup("noexec=", nonx_setup); /* parsed early actually */ -int force_personality32 = READ_IMPLIES_EXEC; +int force_personality32 = 0; /* noexec32=on|off Control non executable heap for 32bit processes.