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

2024-07-15 Thread Raphael Gallais-Pou
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 mana

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

2024-02-26 Thread Raphael Gallais-Pou
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 mana