diff options
| author | Rui Qi <qirui.001@bytedance.com> | 2026-08-07 19:24:33 -0600 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-08-07 19:24:33 -0600 |
| commit | e7d8ea6c6d1bc685a8943ffad2d3679be92d164f (patch) | |
| tree | b89a0f819f57fbfef538202895eefa2da79d6360 /scripts/stackusage | |
| parent | 76555252981eefa209ba2a16544c4f1704ca330b (diff) | |
| download | linux-e7d8ea6c6d1bc685a8943ffad2d3679be92d164f.tar.gz linux-e7d8ea6c6d1bc685a8943ffad2d3679be92d164f.zip | |
riscv: kprobes: Prevent probes in breakpoint handlers
The ftrace selftest multiple_kprobes.tc registers kprobe events on
the first 256 text symbols from /proc/kallsyms. If handle_break() is
selected as a probe target on RISC-V, the breakpoint exception path
can trap again before it reaches the kprobe breakpoint handler. That
recursively enters do_trap_break() and can make the system
unresponsive.
Mark handle_break() and its local probe dispatch helpers as nokprobe
symbols so they are added to the kprobe blacklist, matching other
low-level breakpoint exception paths.
Signed-off-by: Rui Qi <qirui.001@bytedance.com>
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://patch.msgid.link/20260806043807.2583001-1-qirui.001@bytedance.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
