Re: [PATCH 2/2] drm: Protect drm_master pointers in drm_lease.c

2021-06-14 Thread Desmond Cheong Zhi Xi
On 15/6/21 3:41 am, Emil Velikov wrote: On Sat, 12 Jun 2021 at 13:55, Desmond Cheong Zhi Xi wrote: This patch ensures that the device's master mutex is acquired before accessing pointers to struct drm_master that are subsequently dereferenced. Without the mutex, the struct drm_master may be fr

Re: [PATCH 2/2] drm: Protect drm_master pointers in drm_lease.c

2021-06-14 Thread Emil Velikov
On Sat, 12 Jun 2021 at 13:55, Desmond Cheong Zhi Xi wrote: > > This patch ensures that the device's master mutex is acquired before > accessing pointers to struct drm_master that are subsequently > dereferenced. Without the mutex, the struct drm_master may be freed > concurrently by another proces

[PATCH 2/2] drm: Protect drm_master pointers in drm_lease.c

2021-06-12 Thread Desmond Cheong Zhi Xi
This patch ensures that the device's master mutex is acquired before accessing pointers to struct drm_master that are subsequently dereferenced. Without the mutex, the struct drm_master may be freed concurrently by another process calling drm_setmaster_ioctl(). This could then lead to use-after-fre