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 drm/vc4: tests: Retry pv-muxing tests when EDEADLK 2025-04-07 10:29:45 +02:00
Kconfig drm/vc4: hdmi: switch to generic CEC helpers 2025-09-15 21:42:55 +03:00
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 drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
vc4_dpi.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
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 drm/vc4: Remove BOs seqnos 2025-01-19 15:31:00 -03:00
vc4_dsi.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
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 drm/vc4: hdmi: switch to generic CEC helpers 2025-09-15 21:42:55 +03:00
vc4_hdmi_phy.c drm/vc4: hdmi: Add support for BCM2712 HDMI controllers 2024-11-27 14:37:20 +00:00
vc4_hdmi_regs.h drm/vc4: hdmi: Add support for BCM2712 HDMI controllers 2024-11-27 14:37:20 +00:00
vc4_hvs.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
vc4_irq.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
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 drm/vc4: hdmi: Support 2712 D-step register map 2024-11-27 14:37:21 +00:00
vc4_render_cl.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
vc4_trace.h
vc4_trace_points.c
vc4_txp.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
vc4_v3d.c drm/vc4: Release runtime PM reference after binding V3D 2026-04-02 07:53:16 -03:00
vc4_validate.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
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