summaryrefslogtreecommitdiff
path: root/arch/nds32/kernel/git@git.tavy.me:linux.git
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:53:58 -0400
commit3b347d011773d147b62f84ec60a7824629148be2 (patch)
tree0a28f828eea4839874d9a8d13e73baa985ff3548 /arch/nds32/kernel/git@git.tavy.me:linux.git
parent03b70e0d8aa26bab89a0f1394c1c80a871925e42 (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> (cherry picked from commit 92a8dba246d371fe268280e5fd74b0955688e6df)
Diffstat (limited to 'arch/nds32/kernel/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions