Re: [PATCH] drm/vkms: Fix use after free and double free on init error

2025-02-14 Thread Louis Chauvet
Le 14/02/2025 à 16:44, José Expósito a écrit : On Thu, Feb 13, 2025 at 04:11:20PM +0100, Louis Chauvet wrote: On 12/02/25 - 15:06, Louis Chauvet wrote: Le 12/02/2025 à 09:53, Thomas Zimmermann a écrit : Am 12.02.25 um 09:49 schrieb José Expósito: If the driver initialization fails, the

Re: [PATCH] drm/vkms: Fix use after free and double free on init error

2025-02-14 Thread José Expósito
On Thu, Feb 13, 2025 at 04:11:20PM +0100, Louis Chauvet wrote: > On 12/02/25 - 15:06, Louis Chauvet wrote: > > > > > > Le 12/02/2025 à 09:53, Thomas Zimmermann a écrit : > > > > > > > > > Am 12.02.25 um 09:49 schrieb José Expósito: > > > > If the driver initialization fails, the vkms_exit() fun

Re: [PATCH] drm/vkms: Fix use after free and double free on init error

2025-02-13 Thread Louis Chauvet
On 12/02/25 - 15:06, Louis Chauvet wrote: > > > Le 12/02/2025 à 09:53, Thomas Zimmermann a écrit : > > > > > > Am 12.02.25 um 09:49 schrieb José Expósito: > > > If the driver initialization fails, the vkms_exit() function might > > > access an uninitialized or freed default_config pointer and i

Re: [PATCH] drm/vkms: Fix use after free and double free on init error

2025-02-12 Thread Louis Chauvet
Le 12/02/2025 à 09:53, Thomas Zimmermann a écrit : Am 12.02.25 um 09:49 schrieb José Expósito: If the driver initialization fails, the vkms_exit() function might access an uninitialized or freed default_config pointer and it might double free it. Fix both possible errors by initializing de

Re: [PATCH] drm/vkms: Fix use after free and double free on init error

2025-02-12 Thread Thomas Zimmermann
Am 12.02.25 um 09:49 schrieb José Expósito: If the driver initialization fails, the vkms_exit() function might access an uninitialized or freed default_config pointer and it might double free it. Fix both possible errors by initializing default_config only when the driver initialization succe

[PATCH] drm/vkms: Fix use after free and double free on init error

2025-02-12 Thread José Expósito
If the driver initialization fails, the vkms_exit() function might access an uninitialized or freed default_config pointer and it might double free it. Fix both possible errors by initializing default_config only when the driver initialization succeeded. Reported-by: Louis Chauvet Link: https://