linux/drivers/gpu/drm/amd
Thomas Zimmermann 3eb61d7cb7 Revert "drm/amdgpu: Use dma_buf from GEM object instance"
This reverts commit 515986100d.

The dma_buf field in struct drm_gem_object is not stable over the
object instance's lifetime. The field becomes NULL when user space
releases the final GEM handle on the buffer object. This resulted
in a NULL-pointer deref.

Workarounds in commit 5307dce878 ("drm/gem: Acquire references on
GEM handles for framebuffers") and commit f6bfc9afc7 ("drm/framebuffer:
Acquire internal references on GEM handles") only solved the problem
partially. They especially don't work for buffer objects without a DRM
framebuffer associated.

Hence, this revert to going back to using .import_attach->dmabuf.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://lore.kernel.org/r/20250715082635.34974-1-tzimmermann@suse.de
2025-08-13 11:14:17 +02:00
..
acp drivers/gpu: Fix misalignment in comment block 2024-05-29 14:48:30 -04:00
amdgpu Revert "drm/amdgpu: Use dma_buf from GEM object instance" 2025-08-13 11:14:17 +02:00
amdkfd drm/amdkfd: Destroy KFD debugfs after destroy KFD wq 2025-08-06 16:52:08 -04:00
amdxcp drm/amd: Include <linux/export.h> when needed 2025-06-30 11:53:51 -04:00
display drm fixes for 6.17-rc1 2025-08-08 06:48:14 +03:00
include drm/amd/pm: Add support to set min ISP clocks 2025-06-24 10:02:44 -04:00
pm drm/amd: Restore cached manual clock settings during resume 2025-08-04 15:37:26 -04:00