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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Katya,

thanks for the patch.

Tested-by: Yannick Fertre <yannick.fertre@xxxxxxxxxxx>

BR

Le 19/03/2024 à 14:47, Philippe CORNU - foss a écrit :
zut, déjà un acked-by de RGA...
tu confirmes que je prends?
Philippe
________________________________________
De : Raphael GALLAIS-POU - foss
Envoyé : lundi 26 février 2024 14:50
À : Katya Orlova
Cc : Yannick FERTRE - foss; Philippe CORNU - foss; David Airlie; Daniel Vetter; Maxime Coquelin; Alexandre TORGUE - foss; Philipp Zabel; dri-devel@xxxxxxxxxxxxxxxxxxxxx; linux-stm32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx; linux-arm-kernel@xxxxxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; lvc-project@xxxxxxxxxxxxxxxx
Objet : Re: [PATCH v4] drm/stm: Avoid use-after-free issues with crtc and plane

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/

Signed-off-by: Katya Orlova <e.orlova@xxxxxxxxx>
Hi Katya,


Thanks for this submission.

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


Regards,
Raphaël




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux