summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMickaël Salaün <mic@digikod.net>2026-09-18 20:50:28 +0200
committerMickaël Salaün <mic@digikod.net>2026-09-20 11:08:03 +0200
commit7ad69ac63315506e2091bf46d5c96c49f6ce439e (patch)
tree755aa6be72b9fd53deee8454860324abbab3e025 /tools/perf/scripts/python/stackcollapse.py
parent98b04ab00f0e738d69bd718228db55483a911b7a (diff)
downloadlinux-next-7ad69ac63315506e2091bf46d5c96c49f6ce439e.tar.gz
linux-next-7ad69ac63315506e2091bf46d5c96c49f6ce439e.zip
landlock: Report the actual ptrace tracer
The ptrace denial callback identifies only the tracee. Current is the tracer during hook_ptrace_access_check(), but it is the tracee during PTRACE_TRACEME, where the parent is the actual tracer. A consumer therefore cannot infer both parties from the existing arguments. Append the actual tracer task to the typed-BPF callback: current for hook_ptrace_access_check() and parent for hook_ptrace_traceme(). Carry it with the tracee domain ID in a private ptrace context. Both hooks keep the selected tasks alive through synchronous dispatch, so no extra task reference is needed. Keep the tracefs record unchanged. The new context is available only to typed BPF, while same_exec continues to describe the tracer that owns the denying policy. Cc: Günther Noack <gnoack@google.com> Cc: Steven Rostedt <rostedt@goodmis.org> Fixes: bb91730f16c0 ("landlock: Add tracepoints for ptrace and scope denials") Link: https://patch.msgid.link/20260918185036.608651-6-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions