alistair23-linux/arch/x86/ia32
Michal Hocko 864778b154 mm, aout: handle vm_brk failures
vm_brk is allowed to fail but load_aout_binary simply ignores the error
and happily continues.  I haven't noticed any problem from that in real
life but later patches will make the failure more likely because vm_brk
will become killable (resp.  mmap_sem for write waiting will become
killable) so we should be more careful now.

The error handling should be quite straightforward because there are
calls to vm_mmap which check the error properly already.  The only
notable exception is set_brk which is called after beyond_if label.  But
nothing indicates that we cannot move it above set_binfmt as the two do
not depend on each other and fail before we do set_binfmt and alter
reference counting.

Signed-off-by: Michal Hocko <mhocko@suse.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-05-23 17:04:14 -07:00
..
audit.c x86: hook up execveat system call 2014-12-13 12:42:51 -08:00
ia32_aout.c mm, aout: handle vm_brk failures 2016-05-23 17:04:14 -07:00
ia32_signal.c x86/cpufeature: Replace cpu_has_xsave with boot_cpu_has() usage 2016-04-13 11:37:41 +02:00
Makefile x86/asm/entry: Move the compat syscall entry code to arch/x86/entry/ 2015-06-03 18:51:32 +02:00
sys_ia32.c x86/compat: Remove sys32_vm86_warning 2015-03-04 06:16:21 +01:00