summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2025-07-02 19:21:44 +0300
committerPeter Zijlstra <peterz@infradead.org>2025-07-03 11:33:55 +0300
commitba677dbe77af5ffe6204e0f3f547f3ba059c6302 (patch)
treef3facef8360243e600fd4a4249a2e6cb5382104b /tools/perf/scripts/python/exported-sql-viewer.py
parent7b4c5a37544ba22c6ebe72c0d4ea56c953459fa5 (diff)
downloadlinux-ba677dbe77af5ffe6204e0f3f547f3ba059c6302.tar.xz
perf: Revert to requiring CAP_SYS_ADMIN for uprobes
Jann reports that uprobes can be used destructively when used in the middle of an instruction. The kernel only verifies there is a valid instruction at the requested offset, but due to variable instruction length cannot determine if this is an instruction as seen by the intended execution stream. Additionally, Mark Rutland notes that on architectures that mix data in the text segment (like arm64), a similar things can be done if the data word is 'mistaken' for an instruction. As such, require CAP_SYS_ADMIN for uprobes. Fixes: c9e0924e5c2b ("perf/core: open access to probes for CAP_PERFMON privileged process") Reported-by: Jann Horn <jannh@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/CAG48ez1n4520sq0XrWYDHKiKxE_+WCfAK+qt9qkY4ZiBGmL-5g@mail.gmail.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions