diff options
author | Maíra Canal <mcanal@igalia.com> | 2025-08-26 11:19:03 -0300 |
---|---|---|
committer | Maíra Canal <mcanal@igalia.com> | 2025-08-29 10:28:11 -0300 |
commit | 7d9bc9bee2778e2da7147aeb3a81427487598493 (patch) | |
tree | db5bc2693dec2e7e043276f8feae7252c61cda5f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 78fe02d090d38393cc00de9d1929e59426f202a4 (diff) |
drm/v3d: Protect per-fd reset counter against fd release
The per-fd reset counter tracks GPU resets caused by jobs submitted
through a specific file descriptor. However, there's a race condition
where the file descriptor can be closed while jobs are still running,
leading to potential access to freed memory when updating the reset
counter.
Ensure that the per-fd reset counter is only updated when the file
descriptor is still valid, preventing use-after-free scenarios during
GPU reset handling.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://lore.kernel.org/r/20250826-v3d-queue-lock-v3-6-979efc43e490@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions