Thread (8 messages) 8 messages, 2 authors, 2024-07-15

Re: [PATCH v4] drm/stm: Avoid use-after-free issues with crtc and plane

From: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Date: 2024-02-26 13:52:12
Also in: dri-devel, lkml

On 2/16/24 13:50, Katya Orlova wrote:
ltdc_load() calls functions drm_crtc_init_with_planes(),
drm_universal_plane_init() and drm_encoder_init(). These functions
should not be called with parameters allocated with devm_kzalloc()
to avoid use-after-free issues [1].

Use allocations managed by the DRM framework.

Found by Linux Verification Center (linuxtesting.org).

[1]
https://lore.kernel.org/lkml/u366i76e3qhh3ra5oxrtngjtm2u5lterkekcz6y2jkndhuxzli@diujon4h7qwb/ (local)

Signed-off-by: Katya Orlova <redacted>
Hi Katya,


Thanks for this submission.

Acked-by: Raphaël Gallais-Pou <raphael.gallais-pou@foss.st.com>


Regards,
Raphaël


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help