Skip to content

Commit fcc18e8

Browse files
pepsimanLinus Torvalds
authored andcommitted
[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>
1 parent 0914877 commit fcc18e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/binfmt_flat.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ static int load_flat_file(struct linux_binprm * bprm,
510510
}
511511

512512
/* OK, This is the point of no return */
513-
set_personality(PER_LINUX);
513+
set_personality(PER_LINUX_32BIT);
514514
}
515515

516516
/*

0 commit comments

Comments
 (0)