diff options
author | Chia-I Wu | 2023-03-08 13:37:24 -0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-04-06 12:10:39 +0200 |
commit | 5045360f3bb62ccd4f87202e33489f71f8bbc3fc (patch) | |
tree | 871ab9302b91daa5dcae2646b4ea3e1d9ed9659c /net | |
parent | b861f0e62ae148eb5f0a48c4d6fcd5dc03b4e252 (diff) |
drm/amdkfd: fix potential kgd_mem UAFs
[ Upstream commit 9da050b0d9e04439d225a2ec3044af70cdfb3933 ]
kgd_mem pointers returned by kfd_process_device_translate_handle are
only guaranteed to be valid while p->mutex is held. As soon as the mutex
is unlocked, another thread can free the BO.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions