Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] uclinux: use PER_LINUX_32BIT in binfmt_flat

binfmt_flat.c calls set_personality with PER_LINUX as the personality.
On the arm architecture this results in the program running in 26bit
usermode. PER_LINUX_32BIT should be used instead. This doesn't affect
other architectures that use binfmt_flat.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Malcolm Parsons and committed by
Linus Torvalds
fcc18e83 09148777

+1 -1
+1 -1
fs/binfmt_flat.c
··· 510 510 } 511 511 512 512 /* OK, This is the point of no return */ 513 - set_personality(PER_LINUX); 513 + set_personality(PER_LINUX_32BIT); 514 514 } 515 515 516 516 /*