syzbot


kernel BUG in workingset_activation

Status: auto-closed as invalid on 2021/07/30 16:23
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+6c56a9929c29f6853a17@syzkaller.appspotmail.com
First crash: 1145d, last: 1145d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in workingset_activation (2) kernel C inconclusive done 40 390d 582d 22/27 fixed on 2023/07/01 16:05

Sample crash report:
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 ffffea00020c7a08 ffff888011041c50 ffff888011040b00
raw: 0000000000000000 ffff88807cc58000 0000000100000001 0000000000000000
page dumped because: VM_BUG_ON_PAGE(PageSlab(page))
------------[ cut here ]------------
kernel BUG at include/linux/memcontrol.h:397!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 14665 Comm: syz-executor.0 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:page_memcg_rcu include/linux/memcontrol.h:397 [inline]
RIP: 0010:workingset_activation+0x67b/0x8d0 mm/workingset.c:408
Code: 80 3c 10 00 0f 85 51 02 00 00 48 8b 1d 76 04 22 0c e9 02 fd ff ff e8 14 b9 ce ff 48 c7 c6 00 93 75 89 48 89 ef e8 d5 11 00 00 <0f> 0b e8 fe b8 ce ff 49 8d 5e ff e9 8e fa ff ff e8 f0 b8 ce ff 0f
RSP: 0018:ffffc90001e179b0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff88802bfe4080 RSI: ffffffff88c93695 RDI: fffff520003c2ed0
RBP: ffffea0001f31600 R08: 0000000000000033 R09: 0000000000000000
R10: ffffffff815b4eae R11: 0000000000000000 R12: ffffea0001f31608
R13: 0000000000000000 R14: ffffea00020c7a08 R15: ffffea0001f31601
FS:  00000000025b3400(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31b2e000 CR3: 0000000015c02000 CR4: 00000000001526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 mark_page_accessed+0x92d/0x1bd0 mm/swap.c:435
 kvm_set_pfn_accessed arch/x86/kvm/../../../virt/kvm/kvm_main.c:2350 [inline]
 kvm_set_pfn_accessed+0x1b5/0x200 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2347
 mmu_spte_clear_track_bits+0x353/0x3d0 arch/x86/kvm/mmu/mmu.c:567
 drop_spte+0x26/0x7d0 arch/x86/kvm/mmu/mmu.c:1070
 mmu_page_zap_pte+0x362/0x3d0 arch/x86/kvm/mmu/mmu.c:2208
 kvm_mmu_page_unlink_children arch/x86/kvm/mmu/mmu.c:2239 [inline]
 __kvm_mmu_prepare_zap_page+0x19f/0x14e0 arch/x86/kvm/mmu/mmu.c:2287
 kvm_mmu_zap_all+0x107/0x2c0 arch/x86/kvm/mmu/mmu.c:5588
 kvm_mmu_notifier_release+0x5f/0xa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:617
 mmu_notifier_unregister+0x124/0x3b0 mm/mmu_notifier.c:838
 kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:895 [inline]
 kvm_put_kvm+0x5b2/0xb10 arch/x86/kvm/../../../virt/kvm/kvm_main.c:920
 kvm_vcpu_release+0x4d/0x70 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3120
 __fput+0x288/0x920 fs/file_table.c:280
 task_work_run+0xdd/0x1a0 kernel/task_work.c:161
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x272/0x280 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:301
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x41940b
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffff9a14380 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 000000000041940b
RDX: 0000000000000000 RSI: 000000000d14a3a8 RDI: 0000000000000005
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b31b27220
R10: 0000000000000000 R11: 0000000000000293 R12: 000000000056c9e0
R13: 000000000056c9e0 R14: 000000000056bf60 R15: 0000000000058a4d
Modules linked in:
---[ end trace 937e406084ece6ad ]---
RIP: 0010:page_memcg_rcu include/linux/memcontrol.h:397 [inline]
RIP: 0010:workingset_activation+0x67b/0x8d0 mm/workingset.c:408
Code: 80 3c 10 00 0f 85 51 02 00 00 48 8b 1d 76 04 22 0c e9 02 fd ff ff e8 14 b9 ce ff 48 c7 c6 00 93 75 89 48 89 ef e8 d5 11 00 00 <0f> 0b e8 fe b8 ce ff 49 8d 5e ff e9 8e fa ff ff e8 f0 b8 ce ff 0f
RSP: 0018:ffffc90001e179b0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff88802bfe4080 RSI: ffffffff88c93695 RDI: fffff520003c2ed0
RBP: ffffea0001f31600 R08: 0000000000000033 R09: 0000000000000000
R10: ffffffff815b4eae R11: 0000000000000000 R12: ffffea0001f31608
R13: 0000000000000000 R14: ffffea00020c7a08 R15: ffffea0001f31601
FS:  00000000025b3400(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31b2e000 CR3: 0000000015c02000 CR4: 00000000001526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/01 16:22 upstream d2b6f8a17919 77e2b668 .config console log report info ci-upstream-kasan-gce-selinux-root kernel BUG in workingset_activation
* Struck through repros no longer work on HEAD.