summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRavi Bangoria <ravi.bangoria@amd.com>2026-02-16 04:22:15 +0000
committerPeter Zijlstra <peterz@infradead.org>2026-02-27 16:40:23 +0100
commitb0a09142622a994c4f4088c3f61db5da87cfc711 (patch)
tree372277e1c113ed3017a9322bd74566afc04a7244 /tools/perf/scripts/python
parent723a290326e015b07931eabc603d3735999377be (diff)
perf/amd/ibs: Avoid calling perf_allow_kernel() from the IBS NMI handler
Calling perf_allow_kernel() from the NMI context is unsafe and could be fatal. Capture the permission at event-initialization time by storing it in event->hw.flags, and have the NMI handler rely on that cached flag instead of making the call directly. Fixes: 50a53b60e141d ("perf/amd/ibs: Prevent leaking sensitive data to userspace") Reported-by: Sadasivan Shaiju <sadasivan.shaiju2@amd.com> Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Namhyung Kim <namhyung@kernel.org> Link: https://patch.msgid.link/20260216042216.1440-5-ravi.bangoria@amd.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions