[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250312-drm-panel-v1-0-e99cd69f6136@redhat.com>
Date: Wed, 12 Mar 2025 20:54:41 -0400
From: Anusha Srivatsa <asrivats@...hat.com>
To: Neil Armstrong <neil.armstrong@...aro.org>,
Jessica Zhang <quic_jesszhan@...cinc.com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>
Cc: Luca Ceresoli <luca.ceresoli@...tlin.com>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
Anusha Srivatsa <asrivats@...hat.com>
Subject: [PATCH RFC 0/2] drm/panel: Refcounted panel allocation
Primary motivation is to avoid havig a dangling pointer with panels.
In a scenario where panel device no longer exists, the DRM driver
has no idea of it. It can continue to try and access a panel leading
to use-after-free situations.
This is the initial draft more for feedback only. Once the path
forward is clear, further drivers will be converted to using the API.
Suggested-by: Maxime Ripard <mripard@...nel.org>
Signed-off-by: Anusha Srivatsa <asrivats@...hat.com>
---
Anusha Srivatsa (2):
drm/panel: Add new helpers for refcounted panel allocatons
drm/panel/panel-simple: Use the new allocation in place of devm_kzalloc()
drivers/gpu/drm/drm_panel.c | 50 +++++++++++++++++++++++++++++++
drivers/gpu/drm/panel/panel-simple.c | 4 +--
include/drm/drm_panel.h | 58 ++++++++++++++++++++++++++++++++++++
3 files changed, 109 insertions(+), 3 deletions(-)
---
base-commit: 3282422bf251db541fe07c548ca304130d37d754
change-id: 20250311-drm-panel-c327992e932e
Best regards,
--
Anusha Srivatsa <asrivats@...hat.com>
Powered by blists - more mailing lists