linux-stable/arch/arm/kernel
Mårten Lindahl 5590ba4560 ARM: 9317/1: kexec: Make smp stop calls asynchronous
[ Upstream commit 8922ba71c9 ]

If a panic is triggered by a hrtimer interrupt all online cpus will be
notified and set offline. But as highlighted by commit 19dbdcb803
("smp: Warn on function calls from softirq context") this call should
not be made synchronous with disabled interrupts:

 softdog: Initiating panic
 Kernel panic - not syncing: Software Watchdog Timer expired
 WARNING: CPU: 1 PID: 0 at kernel/smp.c:753 smp_call_function_many_cond
   unwind_backtrace:
     show_stack
     dump_stack_lvl
     __warn
     warn_slowpath_fmt
     smp_call_function_many_cond
     smp_call_function
     crash_smp_send_stop.part.0
     machine_crash_shutdown
     __crash_kexec
     panic
     softdog_fire
     __hrtimer_run_queues
     hrtimer_interrupt

Make the smp call for machine_crash_nonpanic_core() asynchronous.

Signed-off-by: Mårten Lindahl <marten.lindahl@axis.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 11:14:27 +02:00
..
.gitignore
arch_timer.c
armksyms.c
asm-offsets.c ARM: mm: Make virt_to_pfn() a static inline 2023-05-29 11:27:08 +02:00
atags.h
atags_compat.c
atags_parse.c ARM: 9300/1: Replace all non-returning strlcpy with strscpy 2023-06-19 09:35:49 +01:00
atags_proc.c
bios32.c PCI: Introduce pci_dev_for_each_resource() 2023-04-04 10:43:52 -05:00
bugs.c ARM: cpu: Switch to arch_cpu_finalize_init() 2023-06-16 10:15:59 +02:00
cpuidle.c ARM: cpuidle: Drop of_device.h include 2023-04-13 17:46:34 -05:00
crash_dump.c vmcore: convert copy_oldmem_page() to take an iov_iter 2022-04-29 14:37:59 -07:00
debug.S
devtree.c ARM: make ARCH_MULTIPLATFORM user-visible 2022-08-30 11:18:09 +02:00
dma.c
early_printk.c
efi.c efi: Discover BTI support in runtime services regions 2023-02-04 09:19:02 +01:00
elf.c
entry-armv.S asm-generic updates for 6.5 2023-07-06 10:06:04 -07:00
entry-common.S ARM: ptrace: Restore syscall restart tracing 2023-09-13 09:52:58 +02:00
entry-ftrace.S
entry-header.S context_tracking: Split user tracking Kconfig 2022-06-29 17:04:09 -07:00
entry-v7m.S ARM: mm: Make virt_to_pfn() a static inline 2023-05-29 11:27:08 +02:00
fiq.c ARM: 9315/1: fiq: include asm/mach/irq.h for prototypes 2023-06-19 09:36:00 +01:00
fiqasm.S
ftrace.c ftrace: Remove return value of ftrace_arch_modify_*() 2022-05-26 21:13:00 -04:00
head-common.S
head-inflate-data.c ARM: 9310/1: xip-kernel: add __inflate_kernel_data prototype 2023-06-19 09:35:56 +01:00
head-nommu.S ARM: mm: Make virt_to_pfn() a static inline 2023-05-29 11:27:08 +02:00
head.h ARM: 9310/1: xip-kernel: add __inflate_kernel_data prototype 2023-06-19 09:35:56 +01:00
head.S ARM: mm: Make virt_to_pfn() a static inline 2023-05-29 11:27:08 +02:00
hibernate.c ARM: mm: Make virt_to_pfn() a static inline 2023-05-29 11:27:08 +02:00
hw_breakpoint.c hw_breakpoint: fix single-stepping when using bpf_overflow_handler 2023-09-23 11:14:19 +02:00
hyp-stub.S ARM: 9263/1: use .arch directives instead of assembler command line flags 2022-11-08 18:36:17 +00:00
insn.c
io.c
irq.c asm-generic: Conditionally enable do_softirq_own_stack() via Kconfig. 2022-09-05 17:20:55 +02:00
isa.c arm: simplify two-level sysctl registration for ctl_isa_vars 2023-04-13 11:49:35 -07:00
iwmmxt.h
iwmmxt.S
jump_label.c jump_label: make initial NOP patching the special case 2022-06-24 09:48:55 +02:00
kgdb.c
machine_kexec.c ARM: 9317/1: kexec: Make smp stop calls asynchronous 2023-09-23 11:14:27 +02:00
Makefile ARM updates for 6.2 2022-12-13 15:22:14 -08:00
module-plts.c ARM: module: Use module_init_layout_section() to spot init sections 2023-09-02 09:13:29 +02:00
module.c ARM: 9299/1: module: use sign_extend32() to extend the signedness 2023-06-19 09:35:48 +01:00
opcodes.c
paravirt.c
patch.c
perf_callchain.c ARM: 9258/1: stacktrace: Make stack walk callback consistent with generic code 2022-11-08 18:36:18 +00:00
perf_event_v6.c
perf_event_v7.c
perf_event_xscale.c
perf_regs.c
phys2virt.S
pj4-cp0.c
process.c - Daniel Verkamp has contributed a memfd series ("mm/memfd: add 2023-02-23 17:09:35 -08:00
psci_smp.c
ptrace.c ARM: ptrace: Restore syscall skipping for tracers 2023-09-13 09:52:58 +02:00
reboot.c ARM: 9219/1: fix undeclared soft_restart 2022-07-28 15:09:17 +01:00
reboot.h
relocate_kernel.S
return_address.c ARM: 9258/1: stacktrace: Make stack walk callback consistent with generic code 2022-11-08 18:36:18 +00:00
setup.c ARM: 9308/1: move setup functions to header 2023-06-19 09:35:55 +01:00
signal.c ARM: 9309/1: add missing syscall prototypes 2023-06-19 09:35:55 +01:00
signal.h
sigreturn_codes.S
sleep.S
smccc-call.S
smp.c nmi_backtrace: allow excluding an arbitrary CPU 2023-09-13 09:53:08 +02:00
smp_scu.c
smp_tlb.c
smp_twd.c
spectre.c
stacktrace.c ARM: 9259/1: stacktrace: Convert stacktrace to generic ARCH_STACKWALK 2022-11-14 12:00:57 +00:00
suspend.c ARM: mm: Make virt_to_pfn() a static inline 2023-05-29 11:27:08 +02:00
swp_emulate.c ARM: 9263/1: use .arch directives instead of assembler command line flags 2022-11-08 18:36:17 +00:00
sys_arm.c ARM: 9309/1: add missing syscall prototypes 2023-06-19 09:35:55 +01:00
sys_oabi-compat.c ARM: 9309/1: add missing syscall prototypes 2023-06-19 09:35:55 +01:00
tcm.c ARM: mm: Make virt_to_pfn() a static inline 2023-05-29 11:27:08 +02:00
thumbee.c
time.c
topology.c
traps.c ARM: 9302/1: traps: hide unused functions on NOMMU 2023-06-19 09:35:50 +01:00
unwind.c ARM: 9295/1: unwind:fix unwind abort for uleb128 case 2023-05-05 10:16:40 +01:00
v7m.c
vdso.c ARM: 9300/1: Replace all non-returning strlcpy with strscpy 2023-06-19 09:35:49 +01:00
vmlinux-xip.lds.S ARM: mm: Make virt_to_pfn() a static inline 2023-05-29 11:27:08 +02:00
vmlinux.lds.S ARM: mm: Make virt_to_pfn() a static inline 2023-05-29 11:27:08 +02:00
xscale-cp0.c