aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorJann Horn <[email protected]>2018-08-28 15:49:01 +0000
committerThomas Gleixner <[email protected]>2018-08-31 15:08:22 +0000
commit342db04ae71273322f0011384a9ed414df8bdae4 (patch)
treef33e103e7d44f50f47cd4358189862a2e2381a37 /arch/powerpc/lib/code-patching.c
parentx86/asm: Use CC_SET()/CC_OUT() in __gen_sigismember() (diff)
downloadkernel-342db04ae71273322f0011384a9ed414df8bdae4.tar.gz
kernel-342db04ae71273322f0011384a9ed414df8bdae4.zip
x86/dumpstack: Don't dump kernel memory based on usermode RIP
show_opcodes() is used both for dumping kernel instructions and for dumping user instructions. If userspace causes #PF by jumping to a kernel address, show_opcodes() can be reached with regs->ip controlled by the user, pointing to kernel code. Make sure that userspace can't trick us into dumping kernel memory into dmesg. Fixes: 7cccf0725cf7 ("x86/dumpstack: Add a show_ip() function") Signed-off-by: Jann Horn <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Borislav Petkov <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions