[PATCH] drm/panfrost: Fix a deadlock between the shrinker and madvise path

Boris Brezillon boris.brezillon at collabora.com
Tue Nov 3 08:45:43 UTC 2020


On Mon, 2 Nov 2020 08:42:49 +0000
Steven Price <steven.price at arm.com> wrote:

> On 01/11/2020 17:40, Boris Brezillon wrote:
> > panfrost_ioctl_madvise() and panfrost_gem_purge() acquire the mappings
> > and shmem locks in different orders, thus leading to a potential
> > the mappings lock first.
> > 
> > Fixes: bdefca2d8dc0 ("drm/panfrost: Add the panfrost_gem_mapping concept")
> > Cc: <stable at vger.kernel.org>
> > Cc: Christian Hewitt <christianshewitt at gmail.com>
> > Reported-by: Christian Hewitt <christianshewitt at gmail.com>
> > Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>  
> 
> Reviewed-by: Steven Price <steven.price at arm.com>

Queued to drm-misc-fixes.

Thanks,

Boris


More information about the dri-devel mailing list