The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/2] drm/logicvc: Avoid UAF in DRM object management
@ 2026-06-30  9:10 Romain Gantois
  2026-06-30  9:10 ` [PATCH v2 1/2] drm/logicvc: Avoid use-after-free with devm_kzalloc() Romain Gantois
  2026-06-30  9:10 ` [PATCH v2 2/2] drm/logicvc: Avoid using DRM resources after device is unplugged Romain Gantois
  0 siblings, 2 replies; 5+ messages in thread
From: Romain Gantois @ 2026-06-30  9:10 UTC (permalink / raw)
  To: Paul Kocialkowski, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: Thomas Petazzoni, Paul Kocialkowski, dri-devel, linux-kernel,
	Romain Gantois, Jason Xiang, stable

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 <romain.gantois@bootlin.com>
---
Changes in v2:
- Added protection of DRM device resources after removal using drm_dev_enter()
- Link to v1: https://patch.msgid.link/20260601-logicvc-uaf-v1-1-8c9ca5b3429c@bootlin.com

To: Paul Kocialkowski <paulk@sys-base.io>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: Maxime Ripard <mripard@kernel.org>
To: Thomas Zimmermann <tzimmermann@suse.de>
To: David Airlie <airlied@gmail.com>
To: Simona Vetter <simona@ffwll.ch>
Cc: Jason Xiang <jx@jasonxiang.net>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-kernel@vger.kernel.org

---
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 <romain.gantois@bootlin.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-30 12:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-30  9:10 [PATCH v2 0/2] drm/logicvc: Avoid UAF in DRM object management Romain Gantois
2026-06-30  9:10 ` [PATCH v2 1/2] drm/logicvc: Avoid use-after-free with devm_kzalloc() Romain Gantois
2026-06-30 12:37   ` Maxime Ripard
2026-06-30  9:10 ` [PATCH v2 2/2] drm/logicvc: Avoid using DRM resources after device is unplugged Romain Gantois
2026-06-30 12:44   ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox