summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorYongqiang Sun <Yongqiang.Sun@amd.com>2026-05-27 09:50:47 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-06-04 15:24:19 -0400
commit92a8dba246d371fe268280e5fd74b0955688e6df (patch)
treef7a0b3c5f68436481ee02bf4d9d02445f5d82e61 /include/linux/debugobjects.h
parentbadcb0896bdb4c6148564331c4b24ba7635efa94 (diff)
drm/amdkfd: fix SMI event cross-process information leak
kfd_smi_ev_enabled() skips the suser privilege check when pid=0. PROCESS_START, PROCESS_END, and VMFAULT events are emitted with pid=0 while carrying another process's PID and command name, so any /dev/kfd user in the render group can monitor all GPU workloads. Pass the target process PID into kfd_smi_event_add() for these events so the existing per-client filter restricts delivery to the owning process or CAP_SYS_ADMIN subscribers. Signed-off-by: Yongqiang Sun <Yongqiang.Sun@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions