summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYifan Feng <evanfengff@gmail.com>2026-11-17 16:32:05 -0800
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-11-23 00:01:57 +0900
commit49276f7c85ba1c140b2605b816a2596d02b36ba4 (patch)
tree6e5c983a5b40bfd0a62d4983d3ce7521dfba0f5f /tools/perf/scripts/python
parentc15120853eebbda98f3fe1f1e59370439c6c4447 (diff)
tracing/fprobe: Do not let KASAN check the $stackN read
ftrace_regs_get_kernel_stack_nth() reads the Nth entry of the kernel stack for the $stackN argument of fprobe and tracepoint probe events. That entry can be in the redzone of another stack frame, so with CONFIG_KASAN_STACK every hit of such an event is reported: # echo 'f:fp_read vfs_read $stack10' >> dynamic_events # echo 1 > events/fprobes/fp_read/enable BUG: KASAN: stack-out-of-bounds in process_fetch_insn+0xac9/0xcb0 Use READ_ONCE_NOCHECK(), as arm64 does in regs_get_kernel_stack_nth() for kprobe events. Link: https://lore.kernel.org/all/20261118003205.59804-1-evanfengff@gmail.com/ Fixes: 0566cefe73b9 ("tracing/fprobe: Enable fprobe events with CONFIG_DYNAMIC_FTRACE_WITH_ARGS") Signed-off-by: Yifan Feng <evanfengff@gmail.com> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions