summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorYongqiang Sun <Yongqiang.Sun@amd.com>2026-05-27 16:50:47 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-06-04 22:53:58 +0300
commit3b347d011773d147b62f84ec60a7824629148be2 (patch)
tree0a28f828eea4839874d9a8d13e73baa985ff3548 /include/linux/timerqueue.h
parent03b70e0d8aa26bab89a0f1394c1c80a871925e42 (diff)
downloadlinux-3b347d011773d147b62f84ec60a7824629148be2.tar.xz
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> (cherry picked from commit 92a8dba246d371fe268280e5fd74b0955688e6df)
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions