mirror-linux/drivers/gpu/drm/vc4
Maíra Canal 338c56050d
drm/vc4: Protect madv read in vc4_gem_object_mmap() with madv_lock
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>
2026-04-02 07:53:23 -03:00
..
tests
Kconfig
Makefile
vc4_bo.c drm/vc4: Protect madv read in vc4_gem_object_mmap() with madv_lock 2026-04-02 07:53:23 -03:00
vc4_crtc.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vc4_debugfs.c
vc4_dpi.c
vc4_drv.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vc4_drv.h
vc4_dsi.c
vc4_fence.c
vc4_gem.c drm/vc4: Fix a memory leak in hang state error path 2026-04-02 07:53:22 -03:00
vc4_hdmi.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vc4_hdmi.h
vc4_hdmi_phy.c
vc4_hdmi_regs.h
vc4_hvs.c
vc4_irq.c
vc4_kms.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vc4_packet.h
vc4_perfmon.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vc4_plane.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vc4_qpu_defines.h
vc4_regs.h
vc4_render_cl.c
vc4_trace.h
vc4_trace_points.c
vc4_txp.c
vc4_v3d.c drm/vc4: Release runtime PM reference after binding V3D 2026-04-02 07:53:16 -03:00
vc4_validate.c
vc4_validate_shaders.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vc4_vec.c drm: Discard pm_runtime_put() return value 2026-01-16 20:28:05 +01:00