diff options
author | Philip Yang <Philip.Yang@amd.com> | 2025-05-27 11:09:53 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-10-07 14:09:06 -0400 |
commit | 58e6fc2fb94f0f409447e5d46cf6a417b6397fbc (patch) | |
tree | 72e0cf238e68fdb3591790fc2c4521272a0bdec2 /include/linux/overflow.h | |
parent | 0c6734288566f9642037882c4cb1684d5ecc6b57 (diff) |
drm/amdkfd: Fix kfd process ref leaking when userptr unmapping
kfd_lookup_process_by_pid hold the kfd process reference to ensure it
doesn't get destroyed while sending the segfault event to user space.
Calling kfd_lookup_process_by_pid as function parameter leaks the kfd
process refcount and miss the NULL pointer check if app process is
already destroyed.
Fixes: 2d274bf7099b ("amd/amdkfd: Trigger segfault for early userptr unmmapping")
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions