linux-stable/arch/powerpc/kexec
Leonardo Bras af2876b501 powerpc/crash: Use NMI context for printk when starting to crash
Currently, if printk lock (logbuf_lock) is held by other thread during
crash, there is a chance of deadlocking the crash on next printk, and
blocking a possibly desired kdump.

At the start of default_machine_crash_shutdown, make printk enter
NMI context, as it will use per-cpu buffers to store the message,
and avoid locking logbuf_lock.

Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200512214533.93878-1-leobras.c@gmail.com
2020-06-02 20:59:07 +10:00
..
Makefile powerpc: Make setjmp/longjmp signature standard 2020-04-01 14:30:51 +11:00
core.c powerpc/crashkernel: Take "mem=" option into account 2020-06-02 20:59:05 +10:00
core_32.c
core_64.c powerpc: Replace cpu_up/down() with add/remove_cpu() 2020-03-25 12:59:35 +01:00
crash.c powerpc/crash: Use NMI context for printk when starting to crash 2020-06-02 20:59:07 +10:00
elf_64.c
file_load.c
ima.c
relocate_32.S