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

From: syzbot
Date: Mon Apr 13 2020 - 07:03:07 EST


syzbot has bisected this bug to:

commit 36947254e5f981aeeedab1c7dfa35fc34d330e80
Author: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
Date: Tue Feb 18 21:07:32 2020 +0000

KVM: Dynamically size memslot array based on number of used slots

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1099775de00000
start commit: 4f8a3cc1 Merge tag 'x86-urgent-2020-04-12' of git://git.ke..
git tree: upstream
final crash: https://syzkaller.appspot.com/x/report.txt?x=1299775de00000
console output: https://syzkaller.appspot.com/x/log.txt?x=1499775de00000
kernel config: https://syzkaller.appspot.com/x/.config?x=3bfbde87e8e65624
dashboard link: https://syzkaller.appspot.com/bug?extid=2e0179e5185bcd5b9440
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13e78c7de00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14cf613fe00000

Reported-by: syzbot+2e0179e5185bcd5b9440@xxxxxxxxxxxxxxxxxxxxxxxxx
Fixes: 36947254e5f9 ("KVM: Dynamically size memslot array based on number of used slots")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection