summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorNam Cao <namcao@linutronix.de>2025-06-25 10:56:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-24 08:58:36 +0200
commit7162e32462c8d4627b847b1b555d325fd44a48b2 (patch)
tree95c29cff57f1aba7245b2fc5a8a1926062559411 /tools/perf/scripts/python/stackcollapse.py
parent932cdb4b61d49b4002f814e5315191ef6d79218c (diff)
downloadkernel-7162e32462c8d4627b847b1b555d325fd44a48b2.tar.gz
riscv: Enable interrupt during exception handling
[ Upstream commit 969f028bf2c40573ef18061f702ede3ebfe12b42 ] force_sig_fault() takes a spinlock, which is a sleeping lock with CONFIG_PREEMPT_RT=y. However, exception handling calls force_sig_fault() with interrupt disabled, causing a sleeping in atomic context warning. This can be reproduced using userspace programs such as: int main() { asm ("ebreak"); } or int main() { asm ("unimp"); } There is no reason that interrupt must be disabled while handling exceptions from userspace. Enable interrupt while handling user exceptions. This also has the added benefit of avoiding unnecessary delays in interrupt handling. Fixes: f0bddf50586d ("riscv: entry: Convert to generic entry") Suggested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Nam Cao <namcao@linutronix.de> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20250625085630.3649485-1-namcao@linutronix.de Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions