Re: [syzbot] memory leak in kvm_vcpu_ioctl_set_cpuid2

From: Sean Christopherson
Date: Wed Jan 26 2022 - 15:07:41 EST


On Wed, Jan 26, 2022, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 0809edbae347 Merge tag 'devicetree-fixes-for-5.17-1' of gi..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=17982967b00000
> kernel config: https://syzkaller.appspot.com/x/.config?x=cc8d6c95ce1d56de
> dashboard link: https://syzkaller.appspot.com/bug?extid=ead0473557070d5432cd
> compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1402f91fb00000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17ba591fb00000
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+ead0473557070d5432cd@xxxxxxxxxxxxxxxxxxxxxxxxx

#syz fix: KVM: x86: Free kvm_cpuid_entry2 array on post-KVM_RUN KVM_SET_CPUID{,2}