Files
linux/drivers
Philip Yang 58e6fc2fb9 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: 2d274bf709 ("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>
2025-10-07 14:09:06 -04:00
..
2025-09-02 11:29:43 +02:00
2025-09-15 17:51:07 +10:00
2025-09-02 12:21:42 -07:00
2025-09-15 17:51:07 +10:00
2025-07-01 12:29:29 +02:00
2025-08-20 16:37:27 +02:00
2025-09-12 13:41:55 +02:00