ci starts bisection 2023-03-27 08:22:55.578343088 +0000 UTC m=+192659.731054403 bisecting fixing commit since 948ef7bb70c4acaf74d87420ea3a1190862d4548 building syzkaller on 9dfcf09cf38eb123a007af28c5ee2562718893a0 ensuring issue is reproducible on original commit 948ef7bb70c4acaf74d87420ea3a1190862d4548 testing commit 948ef7bb70c4acaf74d87420ea3a1190862d4548 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ef4ca2365c01b063a1287e91021f68352a39dcf46362993ed8e790a1239fd061 all runs: crashed: kernel BUG in workingset_activation testing current HEAD 197b6b60ae7bc51dd0814953c562833143b292aa testing commit 197b6b60ae7bc51dd0814953c562833143b292aa gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 068d942d4da61662519124661915c594da7fa72d4f3faf88b6c80918b064d301 all runs: crashed: kernel BUG in workingset_activation revisions tested: 2, total time: 28m26.242575087s (build: 20m52.600322714s, test: 6m17.783320954s) the crash still happens on HEAD commit msg: Linux 6.3-rc4 crash: kernel BUG in workingset_activation free_unref_page_prepare mm/page_alloc.c:3388 [inline] free_unref_page+0x1d/0x490 mm/page_alloc.c:3483 __unfreeze_partials+0x17c/0x1a0 mm/slub.c:2637 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x192/0x220 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x63/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:769 [inline] slab_alloc_node mm/slub.c:3452 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc+0x17c/0x3b0 mm/slub.c:3476 getname_flags.part.0+0x4a/0x440 fs/namei.c:140 do_sys_openat2+0xd2/0x3f0 fs/open.c:1342 do_sys_open fs/open.c:1364 [inline] __do_sys_openat fs/open.c:1380 [inline] __se_sys_openat fs/open.c:1375 [inline] __x64_sys_openat+0x11f/0x1d0 fs/open.c:1375 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd ------------[ cut here ]------------ kernel BUG at include/linux/memcontrol.h:455! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5567 Comm: syz-executor.0 Not tainted 6.3.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:folio_memcg_rcu include/linux/memcontrol.h:455 [inline] RIP: 0010:workingset_activation+0x3ae/0x480 mm/workingset.c:523 Code: 48 89 04 24 e8 d3 0e 00 00 c6 05 5e cc a7 0b 01 0f 0b 48 8b 04 24 e9 ab fd ff ff 48 c7 c6 80 7a 76 89 48 89 ef e8 b2 0e 00 00 <0f> 0b 0f 0b e9 fa fc ff ff 48 c7 c6 40 7b 76 89 48 89 ef e8 9a 0e RSP: 0018:ffffc90004c6f710 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffffea0001f7e000 RCX: ffffc90004c6f5e8 RDX: 1ffff11003b11145 RSI: ffffffff896b9220 RDI: ffffffff89c247a0 RBP: ffffea0001f7e000 R08: 0000000000000001 R09: ffffffff8d654697 R10: fffffbfff1aca8d2 R11: 0000000000000000 R12: 0000000000000000 R13: ffff8880b9a36cc0 R14: 0000000000000003 R15: ffff8880b9a36cf0 FS: 000055555593a400(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa7ad5a23a4 CR3: 000000001f676000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: folio_mark_accessed+0x498/0x6b0 mm/swap.c:485 handle_changed_spte arch/x86/kvm/mmu/tdp_mmu.c:616 [inline] handle_removed_pt arch/x86/kvm/mmu/tdp_mmu.c:500 [inline] __handle_changed_spte+0x6f5/0xfe0 arch/x86/kvm/mmu/tdp_mmu.c:607 handle_changed_spte arch/x86/kvm/mmu/tdp_mmu.c:614 [inline] handle_removed_pt arch/x86/kvm/mmu/tdp_mmu.c:500 [inline] __handle_changed_spte+0x6e5/0xfe0 arch/x86/kvm/mmu/tdp_mmu.c:607 __tdp_mmu_set_spte+0x14a/0x7a0 arch/x86/kvm/mmu/tdp_mmu.c:738 _tdp_mmu_set_spte arch/x86/kvm/mmu/tdp_mmu.c:754 [inline] tdp_mmu_set_spte arch/x86/kvm/mmu/tdp_mmu.c:763 [inline] __tdp_mmu_zap_root+0x40d/0x470 arch/x86/kvm/mmu/tdp_mmu.c:869 tdp_mmu_zap_root+0xe2/0x250 arch/x86/kvm/mmu/tdp_mmu.c:905 kvm_tdp_mmu_zap_all+0xe4/0x120 arch/x86/kvm/mmu/tdp_mmu.c:1009 kvm_mmu_zap_all+0x1c2/0x210 arch/x86/kvm/mmu/mmu.c:6636 kvm_flush_shadow_all arch/x86/kvm/../../../virt/kvm/kvm_main.c:375 [inline] kvm_mmu_notifier_release+0x5c/0xa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:887 mmu_notifier_unregister+0x116/0x350 mm/mmu_notifier.c:838 kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:1296 [inline] kvm_put_kvm+0x385/0xa60 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1344 kvm_vcpu_release+0x4d/0x70 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3843 __fput+0x1fa/0x9a0 fs/file_table.c:321 task_work_run+0x12f/0x220 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f63c8c3df7b 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:00007ffe3ec0f2d0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f63c8c3df7b RDX: 00007f63c8800688 RSI: ffffffffffffffff RDI: 0000000000000006 RBP: 00007f63c8dad980 R08: 0000000000000000 R09: 00007f63c8800000 R10: 00007f63c8800690 R11: 0000000000000293 R12: 0000000000010928 R13: 00007ffe3ec0f3d0 R14: 00007f63c8dabf80 R15: 0000000000000032 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_memcg_rcu include/linux/memcontrol.h:455 [inline] RIP: 0010:workingset_activation+0x3ae/0x480 mm/workingset.c:523 Code: 48 89 04 24 e8 d3 0e 00 00 c6 05 5e cc a7 0b 01 0f 0b 48 8b 04 24 e9 ab fd ff ff 48 c7 c6 80 7a 76 89 48 89 ef e8 b2 0e 00 00 <0f> 0b 0f 0b e9 fa fc ff ff 48 c7 c6 40 7b 76 89 48 89 ef e8 9a 0e RSP: 0018:ffffc90004c6f710 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffffea0001f7e000 RCX: ffffc90004c6f5e8 RDX: 1ffff11003b11145 RSI: ffffffff896b9220 RDI: ffffffff89c247a0 RBP: ffffea0001f7e000 R08: 0000000000000001 R09: ffffffff8d654697 R10: fffffbfff1aca8d2 R11: 0000000000000000 R12: 0000000000000000 R13: ffff8880b9a36cc0 R14: 0000000000000003 R15: ffff8880b9a36cf0 FS: 000055555593a400(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa7ad5a23a4 CR3: 000000001f676000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400