linux/arch
Nicholas Piggin 5d5e4522a7 printk: restore flushing of NMI buffers on remote CPUs after NMI backtraces
printk from NMI context relies on irq work being raised on the local CPU
to print to console. This can be a problem if the NMI was raised by a
lockup detector to print lockup stack and regs, because the CPU may not
enable irqs (because it is locked up).

Introduce printk_trigger_flush() that can be called another CPU to try
to get those messages to the console, call that where printk_safe_flush
was previously called.

Fixes: 93d102f094 ("printk: remove safe buffers")
Cc: stable@vger.kernel.org # 5.15
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20211107045116.1754411-1-npiggin@gmail.com
2021-11-10 16:12:00 +01:00
..
alpha Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
arc Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
arm printk: remove NMI tracking 2021-07-26 15:09:44 +02:00
arm64 Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
csky Scheduler udpates for this cycle: 2021-06-28 12:14:19 -07:00
h8300 Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
hexagon Scheduler udpates for this cycle: 2021-06-28 12:14:19 -07:00
ia64 Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
m68k Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
microblaze Scheduler udpates for this cycle: 2021-06-28 12:14:19 -07:00
mips Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
nds32 Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
nios2 Updates for the interrupt subsystem: 2021-06-29 12:25:04 -07:00
openrisc Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
parisc Scheduler udpates for this cycle: 2021-06-28 12:14:19 -07:00
powerpc printk: restore flushing of NMI buffers on remote CPUs after NMI backtraces 2021-11-10 16:12:00 +01:00
riscv Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
s390 Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
sh Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
sparc Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
um X86 entry code related updates: 2021-06-29 12:44:51 -07:00
x86 Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
xtensa Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig locking/atomic: delete !ARCH_ATOMIC remnants 2021-05-26 13:20:52 +02:00