OpenCloudOS-Kernel/arch/hexagon
Lin Yujun aa420dee33 hexagon: Fix unbalanced spinlock in die()
[ Upstream commit 03410e87563a122075c3721acc7d5510e41d8332 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-02-08 09:52:34 +01:00
..
configs treewide: drop CONFIG_EMBEDDED 2023-08-21 13:46:25 -07:00
include hexagon: fix using plain integer as NULL pointer warning in cmpxchg 2025-02-08 09:52:34 +01:00
kernel hexagon: Fix unbalanced spinlock in die() 2025-02-08 09:52:34 +01:00
lib hexagon: export raw I/O routines for modules 2021-11-20 10:35:54 -08:00
mm hexagon: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:32 -07:00
Kbuild hexagon: move core-y in arch/hexagon/Makefile to arch/hexagon/Kbuild 2021-05-26 23:11:47 +09:00
Kconfig hexagon: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:32 -07:00
Kconfig.debug treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile hexagon: Disable constant extender optimization for LLVM prior to 19.1.0 2024-12-27 13:58:50 +01:00