linux/drivers/gpu/drm/panthor
Akash Goel 4492d54d59 drm/panthor: Fix potential memleak of vma structure
This commit addresses a memleak issue of panthor_vma (or drm_gpuva)
structure in Panthor driver, that can happen if the GPU page table
update operation to map the pages fail.
The issue is very unlikely to occur in practice.

v2: Add panthor_vm_op_ctx_return_vma() helper (Boris)

v3: Add WARN_ON_ONCE (Boris)

Fixes: 647810ec24 ("drm/panthor: Add the MMU/VM logical block")
Signed-off-by: Akash Goel <akash.goel@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/20251021081042.1377406-1-akash.goel@arm.com
History 2025-11-10 15:10:33 +00:00
..
Kconfig Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue" 2024-03-11 14:16:10 +02:00
Makefile drm/panthor: Add panthor_hw and move gpu_info initialization into it 2025-08-15 10:50:43 +01:00
panthor_devfreq.c drm/panthor: Use existing OPP table if present 2025-11-03 15:28:39 +00:00
panthor_devfreq.h drm/panthor: call into devfreq for current frequency 2025-11-03 15:27:25 +00:00
panthor_device.c drm/panthor: attach the driver's multiple power domains 2025-11-03 14:25:22 +00:00
panthor_device.h drm/panthor: call into devfreq for current frequency 2025-11-03 15:27:25 +00:00
panthor_drv.c drm/panthor: call into devfreq for current frequency 2025-11-03 15:27:25 +00:00
panthor_fw.c drm/panthor: disable async work during unplug 2025-11-03 14:25:21 +00:00
panthor_fw.h drm/panthor: Update CS_STATUS_ defines to correct values 2025-03-05 11:09:17 +00:00
panthor_gem.c drm/panthor: Fix UAF on kernel BO VA nodes 2025-11-03 14:25:22 +00:00
panthor_gem.h panthor: use drm_gem_object.gpuva.lock instead of gpuva_list_lock 2025-08-28 12:40:43 +02:00
panthor_gpu.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
panthor_gpu.h drm/panthor: Clean up 64-bit register definitions 2025-06-06 12:44:41 +02:00
panthor_heap.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
panthor_heap.h drm/panthor: Expose size of driver internal BO's over fdinfo 2025-02-07 15:23:39 +01:00
panthor_hw.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
panthor_hw.h drm/panthor: Add panthor_hw and move gpu_info initialization into it 2025-08-15 10:50:43 +01:00
panthor_mmu.c drm/panthor: Fix potential memleak of vma structure 2025-11-10 15:10:33 +00:00
panthor_mmu.h drm/panthor: Remove dead VM flushing code 2025-07-14 16:59:21 +01:00
panthor_regs.h drm/panthor: add custom ASN_HASH support for mt8196 2025-10-06 10:50:59 +01:00
panthor_sched.c drm/panthor: disable async work during unplug 2025-11-03 14:25:21 +00:00
panthor_sched.h drm/panthor: assign unique names to queues 2025-09-11 10:39:42 +01:00