syzbot


kernel BUG in __pagevec_lru_add
Status: upstream: reported on 2022/03/28 09:03
Reported-by: syzbot+e2771c7f4aa80a94a9d4@syzkaller.appspotmail.com
First crash: 64d, last: 64d

Sample crash report:
 __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
 get_signal+0x4b0/0x28c0 kernel/signal.c:2903
------------[ cut here ]------------
kernel BUG at mm/swap.c:1012!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7754 Comm: syz-executor.1 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:__pagevec_lru_add_fn mm/swap.c:1012 [inline]
RIP: 0010:__pagevec_lru_add+0xead/0x11e0 mm/swap.c:1062
Code: 48 c7 c6 00 0d b6 89 48 89 ef e8 de f1 09 00 0f 0b 45 31 e4 eb b3 e8 62 3e d4 ff 48 c7 c6 80 12 b6 89 48 89 ef e8 c3 f1 09 00 <0f> 0b e8 4c 3e d4 ff 48 89 ef e8 94 71 fe ff be 08 00 00 00 49 89
RSP: 0000:ffffc90008587bc8 EFLAGS: 00010046
RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc9000c3e9000
RDX: 0000000000040000 RSI: ffffffff81a4822d RDI: 0000000000000003
RBP: ffffea0001162680 R08: 0000000000000018 R09: 00000000ffffffff
R10: ffffffff89186e92 R11: 00000000ffffffff R12: 0000000000000010
R13: 0000000000000000 R14: ffff88805ad67000 R15: ffff888021768000
FS:  00007f5c0fffe700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5c0fffd0e8 CR3: 0000000057caa000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 00000000e08e0077 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 folio_add_lru+0x467/0x6a0 mm/swap.c:469
 lru_cache_add_inactive_or_unevictable+0x192/0x520 mm/swap.c:490
 do_anonymous_page mm/memory.c:3811 [inline]
 handle_pte_fault mm/memory.c:4566 [inline]
 __handle_mm_fault+0x3190/0x4150 mm/memory.c:4704
 handle_mm_fault+0x1c8/0x790 mm/memory.c:4802
 do_user_addr_fault+0x489/0x11c0 arch/x86/mm/fault.c:1397
 handle_page_fault arch/x86/mm/fault.c:1484 [inline]
 exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1540
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568
RIP: 0033:0x7f5c1162f1dc
Code: c0 e8 28 66 ff ff b8 ff ff ff ff e9 33 ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 41 54 31 c0 55 48 81 ec 68 10 00 00 <48> 89 7c 24 08 48 8d 3d 38 48 0a 00 48 89 34 24 48 8b 14 24 48 8b
RSP: 002b:00007f5c0fffd0e0 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 00007f5c1179c030 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000020000080
RBP: 00007f5c116e308d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000080 R11: 0000000000000000 R12: 0000000000000000
R13: 00007f5c11ccfb1f R14: 00007f5c0fffe300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__pagevec_lru_add_fn mm/swap.c:1012 [inline]
RIP: 0010:__pagevec_lru_add+0xead/0x11e0 mm/swap.c:1062
Code: 48 c7 c6 00 0d b6 89 48 89 ef e8 de f1 09 00 0f 0b 45 31 e4 eb b3 e8 62 3e d4 ff 48 c7 c6 80 12 b6 89 48 89 ef e8 c3 f1 09 00 <0f> 0b e8 4c 3e d4 ff 48 89 ef e8 94 71 fe ff be 08 00 00 00 49 89
RSP: 0000:ffffc90008587bc8 EFLAGS: 00010046
RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc9000c3e9000
RDX: 0000000000040000 RSI: ffffffff81a4822d RDI: 0000000000000003
RBP: ffffea0001162680 R08: 0000000000000018 R09: 00000000ffffffff
R10: ffffffff89186e92 R11: 00000000ffffffff R12: 0000000000000010
R13: 0000000000000000 R14: ffff88805ad67000 R15: ffff888021768000
FS:  00007f5c0fffe700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5c0fffd0e8 CR3: 0000000057caa000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 00000000e08e0077 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/03/24 07:25 upstream 1bc191051dca 5ff41e94 .config log report info kernel BUG in __pagevec_lru_add