diff options
| author | Maíra Canal <mcanal@igalia.com> | 2026-03-30 14:51:46 -0300 |
|---|---|---|
| committer | Maíra Canal <mcanal@igalia.com> | 2026-04-02 07:53:23 -0300 |
| commit | 338c56050d8e892604da97f67bfa8cc4015a955f (patch) | |
| tree | 2949d6a92201b2b65bf679bd969d14a50f2c900e /tools/lib/python | |
| parent | 9525d169e5fd481538cf8c663cc5839e54f2e481 (diff) | |
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: b9f19259b84d ("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>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
