Re: [PATCH] tty: fix memory leak in vc_deallocate
From: Greg KH
Date: Sun Mar 28 2021 - 04:46:28 EST
On Sun, Mar 28, 2021 at 12:44:43AM +0300, Pavel Skripkin wrote:
> syzbot reported memory leak in tty/vt.
> The problem was in VT_DISALLOCATE ioctl cmd.
> After allocating unimap with PIO_UNIMAP it wasn't
> freed via VT_DISALLOCATE, but vc_cons[currcons].d was
> zeroed.
>
> Signed-off-by: Pavel Skripkin <paskripkin@xxxxxxxxx>
> Reported-by: syzbot+bcc922b19ccc64240b42@xxxxxxxxxxxxxxxxxxxxxxxxx
> ---
> drivers/tty/vt/vt.c | 1 +
> 1 file changed, 1 insertion(+)
Is this patch tested by syzbot to fix the problem?
thanks,
greg k-h