Re: KASAN: slab-out-of-bounds Read in gfn_to_hva

From: Sean Christopherson
Date: Fri Apr 10 2020 - 13:54:15 EST


On Fri, Apr 10, 2020 at 09:39:12AM -0700, syzbot wrote:
> Hello,
>
> syzbot found the following crash on:
>
> HEAD commit: 5d30bcac Merge tag '9p-for-5.7-2' of git://github.com/mart..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=17243a9fe00000
> kernel config: https://syzkaller.appspot.com/x/.config?x=2a7f60f3313b353e
> dashboard link: https://syzkaller.appspot.com/bug?extid=e06e0f40470ee2de4dda
> compiler: gcc (GCC) 9.0.0 20181231 (experimental)
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12b059afe00000
>
> The bug was bisected to:
>
> commit 5c0b4f3d5ccc2ced94b01c3256db1cf79dc95b81
> Author: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
> Date: Tue Feb 18 21:07:26 2020 +0000
>
> KVM: Move memslot deletion to helper function
>
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=13d14de7e00000
> final crash: https://syzkaller.appspot.com/x/report.txt?x=10314de7e00000
> console output: https://syzkaller.appspot.com/x/log.txt?x=17d14de7e00000
>
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+e06e0f40470ee2de4dda@xxxxxxxxxxxxxxxxxxxxxxxxx
> Fixes: 5c0b4f3d5ccc ("KVM: Move memslot deletion to helper function")

#syz dup: KASAN: slab-out-of-bounds Read in __kvm_gfn_to_hva_cache_init