diff options
| author | Yongqiang Sun <Yongqiang.Sun@amd.com> | 2026-05-27 09:50:47 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-06-04 15:24:19 -0400 |
| commit | 92a8dba246d371fe268280e5fd74b0955688e6df (patch) | |
| tree | f7a0b3c5f68436481ee02bf4d9d02445f5d82e61 /include/linux/timerqueue_types.h | |
| parent | badcb0896bdb4c6148564331c4b24ba7635efa94 (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/timerqueue_types.h')
0 files changed, 0 insertions, 0 deletions
