Re: [PATCH v2 1/2] drm/logicvc: Avoid use-after-free with devm_kzalloc()
From: Maxime Ripard
Date: Tue Jun 30 2026 - 08:38:03 EST
On Tue, 30 Jun 2026 11:10:10 +0200, Romain Gantois wrote:
> The logicvc driver calls drm_universal_plane_init(),
> drm_crtc_init_with_planes(), and drm_encoder_alloc(). These functions
> should not be called with structs allocated with devm_kzalloc(), as this
> can lead to use-after-free bugs. In fact, a use-after-free caused by this
> has been observed on a v6.6 kernel.
>
> [ ... ]
Reviewed-by: Maxime Ripard <mripard@xxxxxxxxxx>
Thanks!
Maxime