syzbot


kernel BUG at include/linux/mm.h:LINE! (6)

Status: upstream: reported C repro on 2020/04/19 15:28
Reported-by: syzbot+a923008018a2d298247b@syzkaller.appspotmail.com
First crash: 805d, last: 97d

Cause bisection: failed (bisect log)

Fix bisection: failed (bisect log)
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at include/linux/mm.h:LINE! (3) C 14 1219d 1218d 0/22 closed as invalid on 2019/02/27 20:54
linux-4.19 kernel BUG at include/linux/mm.h:LINE! C error 304 23d 1169d 0/1 upstream: reported C repro on 2019/04/17 12:33
upstream kernel BUG at include/linux/mm.h:LINE! syz 68 1483d 1520d 6/22 fixed on 2018/06/07 13:52
upstream kernel BUG at include/linux/mm.h:LINE! (2) C 1009 1219d 1482d 12/22 fixed on 2019/02/26 22:09
upstream kernel BUG at include/linux/mm.h:LINE! (5) C done done 129 1143d 1213d 16/22 fixed on 2020/01/08 01:07
linux-4.14 kernel BUG at include/linux/mm.h:LINE! 1 932d 932d 0/1 auto-closed as invalid on 2020/04/08 20:20
upstream kernel BUG at include/linux/mm.h:LINE! (4) 2 1216d 1215d 0/22 closed as invalid on 2019/03/02 20:05

Sample crash report:
 exit_mm kernel/exit.c:507 [inline]
 do_exit+0xa12/0x2a30 kernel/exit.c:793
 do_group_exit+0xd2/0x2f0 kernel/exit.c:936
 __do_sys_exit_group kernel/exit.c:947 [inline]
 __se_sys_exit_group kernel/exit.c:945 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:945
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
------------[ cut here ]------------
kernel BUG at include/linux/mm.h:720!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3591 Comm: syz-executor359 Tainted: G        W         5.17.0-syzkaller-02237-g1bc191051dca #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:put_page_testzero include/linux/mm.h:720 [inline]
RIP: 0010:folio_put_testzero include/linux/mm.h:726 [inline]
RIP: 0010:folio_put include/linux/mm.h:1204 [inline]
RIP: 0010:put_page include/linux/mm.h:1238 [inline]
RIP: 0010:kvm_release_pfn_clean.part.0+0x245/0x290 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2792
Code: e8 80 8b 70 00 48 89 ef e8 88 86 9b 00 5b 5d 41 5c e9 6f 8b 70 00 e8 6a 8b 70 00 48 c7 c6 40 12 a2 89 48 89 ef e8 cb 3e a6 00 <0f> 0b e8 54 c6 bb 00 e9 eb fd ff ff 48 89 ef e8 47 c6 bb 00 e9 78
RSP: 0018:ffffc90002c5fb40 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffea0001ca7974 RCX: 0000000000000000
RDX: ffff888076db8000 RSI: ffffffff81083525 RDI: 0000000000000003
RBP: ffffea0001ca7940 R08: 0000000000000029 R09: 00000000ffffffff
R10: ffffffff89186e92 R11: 00000000ffffffff R12: 0000000000000000
R13: ffff8880729e5000 R14: 0000600000000000 R15: ffff88813fff91c0
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd71251dc0 CR3: 0000000022e53000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kvm_release_pfn_clean arch/x86/kvm/../../../virt/kvm/kvm_main.c:2806 [inline]
 kvm_release_pfn_dirty arch/x86/kvm/../../../virt/kvm/kvm_main.c:2807 [inline]
 kvm_release_pfn arch/x86/kvm/../../../virt/kvm/kvm_main.c:2707 [inline]
 kvm_release_pfn+0x91/0xa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2701
 __release_gpc arch/x86/kvm/../../../virt/kvm/pfncache.c:121 [inline]
 __release_gpc arch/x86/kvm/../../../virt/kvm/pfncache.c:107 [inline]
 kvm_gfn_to_pfn_cache_unmap+0x2df/0x3a0 arch/x86/kvm/../../../virt/kvm/pfncache.c:296
 kvm_gfn_to_pfn_cache_destroy arch/x86/kvm/../../../virt/kvm/pfncache.c:333 [inline]
 kvm_gfn_to_pfn_cache_destroy+0x199/0x260 arch/x86/kvm/../../../virt/kvm/pfncache.c:326
 kvm_xen_destroy_vm+0x18/0x90 arch/x86/kvm/xen.c:811
 kvm_arch_destroy_vm+0x360/0x470 arch/x86/kvm/x86.c:11774
 kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:1217 [inline]
 kvm_put_kvm+0x4fa/0xb60 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1250
 kvm_vm_release+0x3f/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1273
 __fput+0x286/0x9f0 fs/file_table.c:317
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xaff/0x2a30 kernel/exit.c:806
 do_group_exit+0xd2/0x2f0 kernel/exit.c:936
 __do_sys_exit_group kernel/exit.c:947 [inline]
 __se_sys_exit_group kernel/exit.c:945 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:945
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fc40e85fc09
Code: Unable to access opcode bytes at RIP 0x7fc40e85fbdf.
RSP: 002b:00007fff3320ca18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007fc40e8d3270 RCX: 00007fc40e85fc09
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc40e8d3270
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:put_page_testzero include/linux/mm.h:720 [inline]
RIP: 0010:folio_put_testzero include/linux/mm.h:726 [inline]
RIP: 0010:folio_put include/linux/mm.h:1204 [inline]
RIP: 0010:put_page include/linux/mm.h:1238 [inline]
RIP: 0010:kvm_release_pfn_clean.part.0+0x245/0x290 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2792
Code: e8 80 8b 70 00 48 89 ef e8 88 86 9b 00 5b 5d 41 5c e9 6f 8b 70 00 e8 6a 8b 70 00 48 c7 c6 40 12 a2 89 48 89 ef e8 cb 3e a6 00 <0f> 0b e8 54 c6 bb 00 e9 eb fd ff ff 48 89 ef e8 47 c6 bb 00 e9 78
RSP: 0018:ffffc90002c5fb40 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffea0001ca7974 RCX: 0000000000000000
RDX: ffff888076db8000 RSI: ffffffff81083525 RDI: 0000000000000003
RBP: ffffea0001ca7940 R08: 0000000000000029 R09: 00000000ffffffff
R10: ffffffff89186e92 R11: 00000000ffffffff R12: 0000000000000000
R13: ffff8880729e5000 R14: 0000600000000000 R15: ffff88813fff91c0
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd71251dc0 CR3: 0000000022e53000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (18):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/03/24 08:14 upstream 1bc191051dca 5ff41e94 .config log report syz C kernel BUG in kvm_release_pfn_clean
ci-upstream-kasan-gce-selinux-root 2020/12/07 17:28 upstream 0477e9288185 1190297f .config log report syz C
ci-upstream-kasan-gce 2020/09/28 07:38 upstream 16bc1d5432eb 5dd8aee8 .config log report syz C
ci-upstream-kasan-gce-386 2020/09/28 07:28 upstream 16bc1d5432eb 5dd8aee8 .config log report syz C
ci-upstream-kasan-gce-386 2020/09/26 03:20 upstream 171d4ff79f96 4a006f63 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/12/01 00:15 linux-next c6b11acc5f85 78d50c1d .config log report syz C
ci-upstream-kasan-gce 2022/03/21 07:08 upstream f443e374ae13 e2d91b1d .config log report info kernel BUG in kvm_release_pfn_clean
ci-upstream-kasan-gce 2022/03/20 12:16 upstream 14702b3b2438 e2d91b1d .config log report info kernel BUG in kvm_release_pfn_clean
ci-upstream-kasan-gce 2022/03/16 21:31 upstream 56e337f2cf13 dfa9a8ed .config log report info kernel BUG in kvm_release_pfn_clean
ci-upstream-kasan-gce 2022/03/16 01:25 upstream 56e337f2cf13 9e8eaa75 .config log report info kernel BUG in kvm_release_pfn_clean
ci-upstream-kasan-gce 2022/03/02 03:58 upstream 575115360652 45a13a73 .config log report info kernel BUG in kvm_release_pfn_clean
ci-upstream-kasan-gce 2022/02/05 13:43 upstream 0457e5153e0e a7dab638 .config log report info kernel BUG in kvm_release_pfn_clean
ci-upstream-kasan-gce-root 2021/11/03 10:29 upstream cc0356d6a02e 17f3edd2 .config log report info kernel BUG in release_pages
ci-upstream-kasan-gce-selinux-root 2020/07/02 18:18 upstream cd77006e01b3 bed10395 .config log report
ci-upstream-kasan-gce-root 2020/05/31 08:14 upstream ffeb595d8481 6f3e1c7c .config log report
ci-upstream-kasan-gce 2020/04/15 15:13 upstream 8632e9b5645b 3f3c5574 .config log report
ci-upstream-kasan-gce-386 2021/11/11 11:30 upstream debe436e77c7 75b04091 .config log report info kernel BUG in release_pages
ci-upstream-linux-next-kasan-gce-root 2022/03/18 15:58 linux-next 91265a6da44d e2d91b1d .config log report info kernel BUG in kvm_release_pfn_clean