Skip to content

Commit

Permalink
[PATCH] x86_64: Change default setting for noexec32 to match i386 kernel
Browse files Browse the repository at this point in the history
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 <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Mar 25, 2006
1 parent df92004 commit 7682968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/setup64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7682968

Please sign in to comment.