linux/arch/hexagon/kernel
Lin Yujun 03410e8756 hexagon: Fix unbalanced spinlock in die()
die executes holding the spinlock of &die.lock and unlock
it after printing the oops message.
However in the code if the notify_die() returns NOTIFY_STOP
, die() exit with returning 1 but never unlocked the spinlock.

Fix this by adding spin_unlock_irq(&die.lock) before returning.

Fixes: cf9750bae2 ("Hexagon: Provide basic debugging and system trap support.")
Signed-off-by: Lin Yujun <linyujun809@huawei.com>
Link: https://lore.kernel.org/r/20230522025608.2515558-1-linyujun809@huawei.com
Signed-off-by: Brian Cain <bcain@quicinc.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
2025-01-30 18:46:06 -08:00
..
.gitignore hexagon: ignore vmlinux.lds 2021-11-20 10:35:54 -08:00
Makefile vgacon, arch/*: remove unused screen_info definitions 2023-10-17 10:17:02 +02:00
Makefile.syscalls hexagon: use new system call table 2024-07-10 14:23:38 +02:00
asm-offsets.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 267 2019-06-05 17:30:29 +02:00
dma.c hexagon: use the generic global coherent pool 2021-08-19 09:02:40 +02:00
head.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 267 2019-06-05 17:30:29 +02:00
hexagon_ksyms.c hexagon: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:32 -07:00
irq_cpu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 267 2019-06-05 17:30:29 +02:00
kgdb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 267 2019-06-05 17:30:29 +02:00
module.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
process.c hexagon: process: add internal prototype for do_work_pending() 2023-12-10 17:21:36 -08:00
ptrace.c hexagon: Remove CONFIG_HEXAGON_ARCH_VERSION from uapi header 2023-11-23 10:38:58 +01:00
reset.c hexagon: reset: include linux/reboot.h for prototypes 2023-12-10 17:21:36 -08:00
setup.c Hexagon: Replace all non-returning strlcpy with strscpy 2023-06-14 11:18:05 -07:00
signal.c hexagon: signal: switch to SYSCALL_DEFINE0 for sys_rt_sigreturn() 2023-12-10 17:21:35 -08:00
smp.c smp: Consolidate smp_prepare_boot_cpu() 2024-03-04 12:01:54 +01:00
stacktrace.c hexagon: work around compiler crash 2020-01-04 13:55:09 -08:00
syscalltab.c hexagon: use new system call table 2024-07-10 14:23:38 +02:00
time.c hexagon: time: Remove redundant null check for resource 2025-01-30 18:45:32 -08:00
trampoline.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 267 2019-06-05 17:30:29 +02:00
traps.c hexagon: Fix unbalanced spinlock in die() 2025-01-30 18:46:06 -08:00
vdso.c hexagon: vdso: Fix build failure 2024-09-23 08:17:50 -07:00
vm_entry.S Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2020-01-28 10:07:09 -08:00
vm_events.c hexagon: vm_events: remove unused dummy_handler() 2023-12-10 17:21:37 -08:00
vm_init_segtable.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 267 2019-06-05 17:30:29 +02:00
vm_ops.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 267 2019-06-05 17:30:29 +02:00
vm_switch.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 267 2019-06-05 17:30:29 +02:00
vm_vectors.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 267 2019-06-05 17:30:29 +02:00
vmlinux.lds.S hexagon: vmlinux.lds.S: handle attributes section 2024-03-26 11:07:23 -07:00