Skip to content
Snippets Groups Projects
Commit 67cf6190 authored by Pavel Skripkin's avatar Pavel Skripkin Committed by Yang Yingliang
Browse files

tty: fix memory leak in vc_deallocate


stable inclusion
from linux-4.19.191
commit 3ce3062bcf01de94815605f1b6fd916cb84ff08b

--------------------------------

commit 211b4d42b70f1c1660feaa968dac0efc2a96ac4d upstream.

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.

Reported-by: default avatar <syzbot+bcc922b19ccc64240b42@syzkaller.appspotmail.com>
Signed-off-by: default avatarPavel Skripkin <paskripkin@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210327214443.21548-1-paskripkin@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 13b15778
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment