Re: [PATCH 2/4] drm/panthor: Keep a ref to the VM at the panthor_kernel_bo level

2024-05-03 Thread Liviu Dudau
On Thu, May 02, 2024 at 08:38:10PM +0200, Boris Brezillon wrote: > Avoids use-after-free situations when panthor_fw_unplug() is called > and the kernel BO was mapped to the FW VM. > > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Dudau > --- > drivers/gpu/drm/panthor/panthor_fw.c| 4

Re: [PATCH 2/4] drm/panthor: Keep a ref to the VM at the panthor_kernel_bo level

2024-05-03 Thread Steven Price
On 02/05/2024 19:38, Boris Brezillon wrote: > Avoids use-after-free situations when panthor_fw_unplug() is called > and the kernel BO was mapped to the FW VM. > > Signed-off-by: Boris Brezillon It makes the code more readable too - I like it. Reviewed-by: Steven Price > --- > drivers/gpu/drm

[PATCH 2/4] drm/panthor: Keep a ref to the VM at the panthor_kernel_bo level

2024-05-02 Thread Boris Brezillon
Avoids use-after-free situations when panthor_fw_unplug() is called and the kernel BO was mapped to the FW VM. Signed-off-by: Boris Brezillon --- drivers/gpu/drm/panthor/panthor_fw.c| 4 ++-- drivers/gpu/drm/panthor/panthor_gem.c | 8 +--- drivers/gpu/drm/panthor/panthor_gem.h | 8