linux-stable/arch/x86/ia32
Borislav Petkov b2778ef8b9 x86/a.out: Clear the dump structure initially
commit 10970e1b4b upstream.

dump_thread32() in aout_core_dump() does not clear the user32 structure
allocated on the stack as the first thing on function entry.

As a result, the dump.u_comm, dump.u_ar0 and dump.signal which get
assigned before the clearing, get overwritten.

Rename that function to fill_dump() to make it clear what it does and
call it first thing.

This was caught while staring at a patch by Derek Robson
<robsonde@gmail.com>.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Derek Robson <robsonde@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Michael Matz <matz@suse.de>
Cc: x86@kernel.org
Cc: <stable@vger.kernel.org>
Link: https://lkml.kernel.org/r/20190202005512.3144-1-robsonde@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-20 10:25:49 +01:00
..
audit.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ia32_aout.c x86/a.out: Clear the dump structure initially 2019-02-20 10:25:49 +01:00
ia32_signal.c syscalls/x86: auto-create compat_sys_*() prototypes 2018-04-02 20:16:18 +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 syscalls/x86: auto-create compat_sys_*() prototypes 2018-04-02 20:16:18 +02:00