Files
linux/drivers
Boris Brezillon 70cc77952e drm/panfrost: Fix a race in panfrost_ioctl_madvise()
If 2 threads change the MADVISE property of the same BO in parallel we
might end up with an shmem->madv value that's inconsistent with the
presence of the BO in the shrinker list.

The easiest solution to fix that is to protect the
drm_gem_shmem_madvise() call with the shrinker lock.

Fixes: 013b651013 ("drm/panfrost: Add madvise and shrinker support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191129135908.2439529-3-boris.brezillon@collabora.com
2019-12-06 11:05:52 -06:00
..
2019-09-28 20:44:12 +02:00
2019-08-27 09:43:59 +02:00
2019-08-16 11:33:56 -07:00
2019-10-23 12:10:05 +02:00
2019-10-23 12:10:05 +02:00
2019-09-23 17:20:40 -04:00
2019-10-15 23:51:36 +02:00
2019-08-18 12:56:10 +02:00
2019-09-24 15:54:08 -07:00