Hugh Dickins 96a8e13ed4 exec: fix stack excutability without PT_GNU_STACK
Kernel Bugzilla #11063 points out that on some architectures (e.g. x86_32)
exec'ing an ELF without a PT_GNU_STACK program header should default to an
executable stack; but this got broken by the unlimited argv feature because
stack vma is now created before the right personality has been established:
so breaking old binaries using nested function trampolines.

Therefore re-evaluate VM_STACK_FLAGS in setup_arg_pages, where stack
vm_flags used to be set, before the mprotect_fixup.  Checking through
our existing VM_flags, none would have changed since insert_vm_struct:
so this seems safer than finding a way through the personality labyrinth.

Reported-by: pageexec@freemail.hu
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-10 13:25:43 -07:00
..
2008-07-03 09:59:03 -05:00
2008-02-08 09:22:40 -08:00
2008-05-01 08:04:01 -07:00
2008-04-29 08:06:04 -07:00
2008-05-19 15:37:27 -05:00
2008-04-29 08:06:00 -07:00
2008-04-30 08:29:52 -07:00
2008-02-08 09:22:40 -08:00
2008-05-21 16:55:58 -07:00
2008-04-29 08:06:18 -07:00
2008-07-08 15:22:40 -04:00
2007-10-18 14:37:31 -07:00
2008-05-24 09:56:08 -07:00
2008-07-10 09:25:39 -07:00
2008-04-30 08:29:52 -07:00
2008-06-06 11:29:13 -07:00
2008-06-06 11:29:13 -07:00
2008-05-07 18:35:03 +02:00
2008-01-30 13:31:46 +01:00
2008-04-30 08:29:47 -07:00
2008-06-23 13:07:00 -04:00
2008-05-01 13:08:16 -04:00
2008-05-01 13:08:50 -04:00
2008-05-01 13:08:16 -04:00
2007-05-21 09:18:19 -07:00
2008-05-01 13:08:16 -04:00
2007-05-08 11:15:01 -07:00
2008-05-06 13:13:37 -07:00
2008-02-06 10:41:07 -08:00
2008-04-29 08:06:00 -07:00
2008-07-04 10:40:07 -07:00
2008-06-06 11:29:08 -07:00
2008-01-30 13:31:46 +01:00
2008-02-14 21:13:33 -08:00
2008-04-30 08:29:51 -07:00
2008-05-01 13:08:50 -04:00
2008-02-14 21:13:33 -08:00
2008-04-29 08:06:00 -07:00
2008-05-01 13:08:50 -04:00