syzbot


kernel BUG in kvm_mmu_notifier_invalidate_range_end

Status: fixed on 2022/02/23 11:01
Reported-by: syzbot+c4705b85b4493f667df5@syzkaller.appspotmail.com
Fix commit: 2fc2c66b9ce4 ANDROID: percpu-rwsem: enable percpu_sem destruction in atomic context
First crash: 1127d, last: 1040d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit b3b7f831a49b56c258ab8ef08d04045fcfb9b4a7
Author: Helge Deller <deller@gmx.de>
Date: Wed Sep 1 20:18:18 2021 +0000

  parisc: math-emu: Fix fall-through warnings

  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in kvm_read_guest_offset_cached kvm 11 1090d 1096d 20/28 fixed on 2022/03/08 16:11

Sample crash report:
------------[ cut here ]------------
kernel BUG at arch/x86/kvm/../../../virt/kvm/kvm_main.c:516!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 761 Comm: syz-executor006 Not tainted 5.10.75-syzkaller-01082-g234d53d2bb60 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kvm_mmu_notifier_invalidate_range_end+0xb2/0xc0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:516
Code: 49 8b 1e 48 c7 c7 ff ff ff ff 48 89 de e8 46 96 64 00 48 85 db 78 0e e8 7c 91 64 00 5b 41 5c 41 5e 41 5f 5d c3 e8 6e 91 64 00 <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 55 48 89 e5 41 57 41 56
RSP: 0000:ffffc90001c8f7d0 EFLAGS: 00010293
RAX: ffffffff81086782 RBX: ffffffffffffffff RCX: ffff88810ee1a780
RDX: 0000000000000000 RSI: ffffffffffffffff RDI: ffffffffffffffff
RBP: ffffc90001c8f7f0 R08: ffffffff8108676a R09: 0000000000000003
R10: fffff52000391ee9 R11: 0000000000000004 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffffc90001cea160 R15: ffffc90001ce1000
FS:  00007fb9de8d3700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb9de8d32f8 CR3: 00000001209ce000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 mn_hlist_invalidate_end mm/mmu_notifier.c:583 [inline]
 __mmu_notifier_invalidate_range_end+0x246/0x300 mm/mmu_notifier.c:603
 mmu_notifier_invalidate_range_only_end include/linux/mmu_notifier.h:495 [inline]
 wp_page_copy+0xe51/0x1750 mm/memory.c:3235
 do_wp_page+0x73b/0xc80 mm/memory.c:3436
 handle_pte_fault+0x575/0xac0 mm/memory.c:4719
 ___handle_speculative_fault+0xd97/0x17d0 mm/memory.c:5086
 __handle_speculative_fault+0xc3/0x2a0 mm/memory.c:5129
 handle_speculative_fault include/linux/mm.h:1815 [inline]
 do_user_addr_fault+0x8c9/0xd70 arch/x86/mm/fault.c:1319
 handle_page_fault arch/x86/mm/fault.c:1462 [inline]
 exc_page_fault+0x98/0x2d0 arch/x86/mm/fault.c:1518
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571
RIP: 0033:0x7fb9de900b1f
Code: 0d 00 01 8b 43 0c 85 c0 0f 85 78 02 00 00 48 8d 73 0c b9 40 42 0f 00 ba 81 00 00 00 c7 43 0c 01 00 00 00 bf ca 00 00 00 31 c0 <e8> 5c 6c 04 00 eb 83 66 2e 0f 1f 84 00 00 00 00 00 48 8b 35 01 d6
RSP: 002b:00007fb9de8d3300 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00007fb9de9d6290 RCX: 00000000000f4240
RDX: 0000000000000081 RSI: 00007fb9de9d629c RDI: 00000000000000ca
RBP: 00007fb9de99d648 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 7275632e616d6472
R13: 0030656c69662f2e R14: 6d766b2f7665642f R15: 00007fb9de9d6298
Modules linked in:
---[ end trace 494f3a9482caeb1a ]---
RIP: 0010:kvm_mmu_notifier_invalidate_range_end+0xb2/0xc0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:516
Code: 49 8b 1e 48 c7 c7 ff ff ff ff 48 89 de e8 46 96 64 00 48 85 db 78 0e e8 7c 91 64 00 5b 41 5c 41 5e 41 5f 5d c3 e8 6e 91 64 00 <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 55 48 89 e5 41 57 41 56
RSP: 0000:ffffc90001c8f7d0 EFLAGS: 00010293
RAX: ffffffff81086782 RBX: ffffffffffffffff RCX: ffff88810ee1a780
RDX: 0000000000000000 RSI: ffffffffffffffff RDI: ffffffffffffffff
RBP: ffffc90001c8f7f0 R08: ffffffff8108676a R09: 0000000000000003
R10: fffff52000391ee9 R11: 0000000000000004 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffffc90001cea160 R15: ffffc90001ce1000
FS:  00007fb9de8d3700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f0f3bed018 CR3: 00000001209ce000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (167):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/26 20:04 android12-5.10-lts 234d53d2bb60 d50eb50a .config console log report syz C ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/24 04:57 android12-5.10-lts c4d08791d941 6caa12e4 .config console log report syz ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/10/26 09:31 android12-5.10-lts 234d53d2bb60 c1132b49 .config console log report syz ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/10/26 09:20 android12-5.10-lts 234d53d2bb60 c1132b49 .config console log report syz ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/10/25 22:27 android12-5.10-lts 234d53d2bb60 c1132b49 .config console log report syz ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/10/25 01:01 android12-5.10-lts 234d53d2bb60 4f0000ee .config console log report syz ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/10/24 22:09 android12-5.10-lts 234d53d2bb60 282f03fb .config console log report syz ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/10/24 21:14 android12-5.10-lts 234d53d2bb60 282f03fb .config console log report syz ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/17 20:37 android12-5.10-lts 7dd0d263fe9f 731a2d23 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/17 13:40 android12-5.10-lts 7dd0d263fe9f 731a2d23 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/17 06:21 android12-5.10-lts d605f2f30d54 723cfaf0 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/17 03:00 android12-5.10-lts d605f2f30d54 723cfaf0 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/16 17:12 android12-5.10-lts d605f2f30d54 723cfaf0 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/16 12:32 android12-5.10-lts d605f2f30d54 723cfaf0 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/16 11:21 android12-5.10-lts d605f2f30d54 723cfaf0 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/15 17:09 android12-5.10-lts d605f2f30d54 723cfaf0 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/15 12:05 android12-5.10-lts d605f2f30d54 723cfaf0 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/15 08:30 android12-5.10-lts d605f2f30d54 723cfaf0 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/14 01:34 android12-5.10-lts d605f2f30d54 b8d780ab .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/13 12:28 android12-5.10-lts d605f2f30d54 44d1319a .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/13 06:34 android12-5.10-lts d605f2f30d54 44d1319a .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/12 21:26 android12-5.10-lts d605f2f30d54 44d1319a .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/11 11:47 android12-5.10-lts a1bb21475ef8 1884f55a .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/11 03:19 android12-5.10-lts a1bb21475ef8 ddb0ab8c .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/10 13:01 android12-5.10-lts a1bb21475ef8 2ca0d385 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/10 11:18 android12-5.10-lts a1bb21475ef8 2ca0d385 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/08 23:21 android12-5.10-lts a1bb21475ef8 2ca0d385 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/08 21:04 android12-5.10-lts a1bb21475ef8 2ca0d385 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/07 23:57 android12-5.10-lts a1bb21475ef8 2ca0d385 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/07 05:12 android12-5.10-lts a1bb21475ef8 6acc789a .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/07 03:31 android12-5.10-lts a1bb21475ef8 6acc789a .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/06 21:18 android12-5.10-lts a1bb21475ef8 6acc789a .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/06 12:32 android12-5.10-lts a1bb21475ef8 6acc789a .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/06 03:22 android12-5.10-lts a1bb21475ef8 6acc789a .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/06 00:58 android12-5.10-lts a1bb21475ef8 6acc789a .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/05 21:43 android12-5.10-lts a1bb21475ef8 6acc789a .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/04 00:52 android12-5.10-lts 9b28b48fb343 4a3f34f2 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/02 16:13 android12-5.10-lts 9b28b48fb343 e1768e9c .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2022/01/01 16:55 android12-5.10-lts 9b28b48fb343 e1768e9c .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/31 04:50 android12-5.10-lts 9b28b48fb343 36bd2e48 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/30 20:07 android12-5.10-lts 9b28b48fb343 2e49f10d .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/30 00:20 android12-5.10-lts 9b28b48fb343 6cc879d4 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/29 10:49 android12-5.10-lts c4d08791d941 76c8cf06 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/29 07:28 android12-5.10-lts c4d08791d941 76c8cf06 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/25 08:35 android12-5.10-lts c4d08791d941 6caa12e4 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/25 04:46 android12-5.10-lts c4d08791d941 6caa12e4 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/24 19:31 android12-5.10-lts c4d08791d941 6caa12e4 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/24 15:35 android12-5.10-lts c4d08791d941 6caa12e4 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/24 02:47 android12-5.10-lts c4d08791d941 6caa12e4 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/23 01:17 android12-5.10-lts c4d08791d941 6caa12e4 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/22 15:24 android12-5.10-lts c4d08791d941 6caa12e4 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/22 03:55 android12-5.10-lts c4d08791d941 6caa12e4 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/20 22:43 android12-5.10-lts c4d08791d941 62bd192b .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/19 19:18 android12-5.10-lts afc997898ece 44068e19 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/16 16:18 android12-5.10-lts afc997898ece 8dd6a5e3 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/12/16 03:36 android12-5.10-lts afc997898ece 572bcb40 .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
2021/10/22 15:56 android12-5.10-lts 234d53d2bb60 282f03fb .config console log report info ci2-android-5-10 kernel BUG in kvm_mmu_notifier_invalidate_range_end
* Struck through repros no longer work on HEAD.