linux-uconsole/arch/x86
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
..
boot x86/efi: Allocate e820 buffer before calling efi_exit_boot_service 2018-12-13 09:16:22 +01:00
configs
crypto crypto: aesni - don't use GFP_ATOMIC allocation if the request doesn't cross a page in gcm 2018-11-13 11:08:45 -08:00
entry x86/entry/64/compat: Fix stack switching for XEN PV 2019-01-31 08:14:39 +01:00
events perf/x86: Add check_period PMU callback 2019-02-20 10:25:45 +01:00
hyperv x86/hyper-v: rename ipi_arg_{ex,non_ex} structures 2018-09-20 00:51:42 +02:00
ia32 x86/a.out: Clear the dump structure initially 2019-02-20 10:25:49 +01:00
include x86/platform/UV: Use efi_runtime_lock to serialise BIOS calls 2019-02-20 10:25:48 +01:00
kernel x86/MCE: Initialize mce.bank in the case of a fatal error in mce_no_way_out() 2019-02-12 19:47:26 +01:00
kvm kvm: vmx: Fix entry number check for add_atomic_switch_msr() 2019-02-20 10:25:46 +01:00
lib x86/kaslr: Fix incorrect i8254 outb() parameters 2019-01-31 08:14:39 +01:00
math-emu
mm x86/dump_pagetables: Fix LDT remap address marker 2019-01-13 09:50:58 +01:00
net bpf, x32: Fix regression caused by commit 24dea04767 2018-07-26 02:51:12 +02:00
oprofile
pci x86/PCI: Fix Broadcom CNB20LE unintended sign extension (redux) 2019-02-12 19:46:58 +01:00
platform x86/platform/UV: Use efi_runtime_lock to serialise BIOS calls 2019-02-20 10:25:48 +01:00
power Power management updates for 4.19-rc1 2018-08-14 13:12:24 -07:00
purgatory kbuild: move bin2c back to scripts/ from scripts/basic/ 2018-07-18 01:18:05 +09:00
ras
realmode
tools x86/relocs: Add __end_rodata_aligned to S_REL 2018-08-09 20:42:07 +02:00
um um: Drop own definition of PTRACE_SYSEMU/_SINGLESTEP 2018-11-21 09:19:16 +01:00
video
xen xen: Fix x86 sched_clock() interface for xen 2019-01-22 21:40:32 +01:00
.gitignore
Kbuild
Kconfig x86/Kconfig: Select SCHED_SMT if SMP enabled 2018-12-05 19:32:02 +01:00
Kconfig.cpu
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile x86/build: Fix compiler support check for CONFIG_RETPOLINE 2018-12-19 19:19:54 +01:00
Makefile.um kbuild: rename LDFLAGS to KBUILD_LDFLAGS 2018-08-24 08:22:08 +09:00
Makefile_32.cpu