Files
linux-stable-mirror/drivers/gpu/drm
Maíra CanalandGreg Kroah-Hartman 46f7a5f914 drm/vc4: Protect madv read in vc4_gem_object_mmap() with madv_lock
[ Upstream commit 338c56050d ]

The mmap callback reads bo->madv without holding madv_lock, racing with
concurrent DRM_IOCTL_VC4_GEM_MADVISE calls that modify the field under
the same lock. Add the missing locking to prevent the data race.

Fixes: b9f19259b8 ("drm/vc4: Add the DRM_IOCTL_VC4_GEM_MADVISE ioctl")
Reviewed-by: Melissa Wen <mwen@igalia.com>
Link: https://patch.msgid.link/20260330-vc4-misc-fixes-v1-4-92defc940a29@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-06-01 17:35:02 +02:00
..
2025-10-19 16:21:28 +02:00
2026-02-06 16:42:05 +01:00
2024-12-14 19:51:36 +01:00
2024-08-19 05:45:02 +02:00
2024-01-25 14:52:41 -08:00