Hi everyone, this is version two of my series which fixes some memory management issues in the logicvc-drm driver.
Patch 1/2 migrates the driver to drmm to avoid accessing DRM objects after they have been freed by devm. Patch 2/2 uses the unplug mechanism to ensure that DRM objects aren't accessed after the DRM device is removed. Best Regards, Romain Signed-off-by: Romain Gantois <[email protected]> --- Changes in v2: - Added protection of DRM device resources after removal using drm_dev_enter() - Link to v1: https://patch.msgid.link/[email protected] To: Paul Kocialkowski <[email protected]> To: Maarten Lankhorst <[email protected]> To: Maxime Ripard <[email protected]> To: Thomas Zimmermann <[email protected]> To: David Airlie <[email protected]> To: Simona Vetter <[email protected]> Cc: Jason Xiang <[email protected]> Cc: Thomas Petazzoni <[email protected]> Cc: Paul Kocialkowski <[email protected]> Cc: [email protected] Cc: [email protected] --- Romain Gantois (2): drm/logicvc: Avoid use-after-free with devm_kzalloc() drm/logicvc: Avoid using DRM resources after device is unplugged drivers/gpu/drm/logicvc/logicvc_crtc.c | 52 ++++++---- drivers/gpu/drm/logicvc/logicvc_drm.c | 9 +- drivers/gpu/drm/logicvc/logicvc_interface.c | 61 +++++------ drivers/gpu/drm/logicvc/logicvc_layer.c | 153 +++++++++++++++------------- 4 files changed, 156 insertions(+), 119 deletions(-) --- base-commit: 44e151be23deb788d9f6124de93823faf6e04e99 change-id: 20260526-logicvc-uaf-eab103f0d0de Best regards, -- Romain Gantois <[email protected]>
