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

2023-10-23 Thread Raphael Gallais-Pou
Hello Katya, Thanks for your submission. Please see drivers/gpu/drm/cr On 10/20/23 12:29, Katya Orlova wrote: > ltdc_load() calls functions drm_crtc_init_with_planes() and > drm_universal_plane_init(). These functions should not be called with > parameters allocated with devm_kzalloc() to avoi

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

2023-10-20 Thread Katya Orlova
ltdc_load() calls functions drm_crtc_init_with_planes() and drm_universal_plane_init(). These functions should not be called with parameters allocated with devm_kzalloc() to avoid use-after-free issues [1]. The patch replaces managed resource allocations with regular ones. Found by Linux Verifica