aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/str_error.c
diff options
context:
space:
mode:
authorJann Horn <[email protected]>2018-08-31 19:41:51 +0000
committerThomas Gleixner <[email protected]>2018-09-06 12:33:12 +0000
commit9fe6299dde587788f245e9f7a5a1b296fad4e8c7 (patch)
tree45fd4582b522ebfe51c990470f409ba66ba22f17 /tools/lib/bpf/str_error.c
parentx86/tsc: Prevent result truncation on 32bit (diff)
downloadkernel-9fe6299dde587788f245e9f7a5a1b296fad4e8c7.tar.gz
kernel-9fe6299dde587788f245e9f7a5a1b296fad4e8c7.zip
x86/process: Don't mix user/kernel regs in 64bit __show_regs()
When the kernel.print-fatal-signals sysctl has been enabled, a simple userspace crash will cause the kernel to write a crash dump that contains, among other things, the kernel gsbase into dmesg. As suggested by Andy, limit output to pt_regs, FS_BASE and KERNEL_GS_BASE in this case. This also moves the bitness-specific logic from show_regs() into process_{32,64}.c. Fixes: 45807a1df9f5 ("vdso: print fatal signals") Signed-off-by: Jann Horn <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/lib/bpf/str_error.c')
0 files changed, 0 insertions, 0 deletions