Re: [PATCH] KVM: fix memory leak in kvm_io_bus_unregister_dev()

2020-09-01 Thread Rustam Kovhaev
On Tue, Sep 01, 2020 at 06:25:42PM +0200, Vitaly Kuznetsov wrote: > Rustam Kovhaev writes: > > > when kmalloc() fails in kvm_io_bus_unregister_dev(), before removing > > the bus, we should iterate over all other devices linked to it and call > > kvm_iodevice_destructor() for them > > > > Reported

Re: [PATCH] KVM: fix memory leak in kvm_io_bus_unregister_dev()

2020-09-01 Thread Vitaly Kuznetsov
Rustam Kovhaev writes: > when kmalloc() fails in kvm_io_bus_unregister_dev(), before removing > the bus, we should iterate over all other devices linked to it and call > kvm_iodevice_destructor() for them > > Reported-and-tested-by: syzbot+f196caa45793d6374...@syzkaller.appspotmail.com > Link: ht

[PATCH] KVM: fix memory leak in kvm_io_bus_unregister_dev()

2020-08-29 Thread Rustam Kovhaev
when kmalloc() fails in kvm_io_bus_unregister_dev(), before removing the bus, we should iterate over all other devices linked to it and call kvm_iodevice_destructor() for them Reported-and-tested-by: syzbot+f196caa45793d6374...@syzkaller.appspotmail.com Link: https://syzkaller.appspot.com/bug?exti