ci starts bisection 2023-04-26 11:49:41.981338316 +0000 UTC m=+39313.243145985 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: 5370d982076a4d349c576ebff15a46cc67f29fa5cb9012bfc3422a5b0e639fe9 all runs: crashed: kernel BUG in workingset_activation testing current HEAD 0cfd8703e7da687924371e9bc77a025bdeba9637 testing commit 0cfd8703e7da687924371e9bc77a025bdeba9637 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 29f04a9f5a14f6c3c4967226a662f7ea45b5b3a0a5f632f3d3f6347adcf36103 all runs: crashed: kernel BUG in workingset_activation revisions tested: 2, total time: 33m31.211509618s (build: 26m15.979798811s, test: 6m30.978606568s) the crash still happens on HEAD commit msg: Merge tag 'pm-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm crash: kernel BUG in workingset_activation bprm_change_interp+0x69/0xc0 fs/exec.c:1547 load_script+0x37b/0x5e0 fs/binfmt_script.c:125 search_binary_handler fs/exec.c:1736 [inline] exec_binprm fs/exec.c:1778 [inline] bprm_execve fs/exec.c:1853 [inline] bprm_execve+0x677/0x14f0 fs/exec.c:1809 do_execveat_common+0x602/0x800 fs/exec.c:1960 do_execve fs/exec.c:2034 [inline] __do_sys_execve fs/exec.c:2110 [inline] __se_sys_execve fs/exec.c:2105 [inline] __x64_sys_execve+0x8e/0xc0 fs/exec.c:2105 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: 1 PID: 5463 Comm: syz-executor.0 Not tainted 6.3.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/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 c2 70 a7 0b 01 0f 0b 48 8b 04 24 e9 ab fd ff ff 48 c7 c6 c0 7e 76 89 48 89 ef e8 b2 0e 00 00 <0f> 0b 0f 0b e9 fa fc ff ff 48 c7 c6 80 7f 76 89 48 89 ef e8 9a 0e RSP: 0018:ffffc90004be7710 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffffea000083e800 RCX: ffffc90004be75e8 RDX: 1ffff11004a3d157 RSI: ffffffff896b92a0 RDI: ffffffff89c25620 RBP: ffffea000083e800 R08: 0000000000000001 R09: ffffffff8d653657 R10: fffffbfff1aca6ca R11: 0000000000000001 R12: 0000000000000000 R13: ffff8880b9b36d00 R14: 0000000000000003 R15: ffff8880b9b36d30 FS: 0000555555f38400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000029326000 CR4: 00000000003526e0 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+0x5f/0xa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:887 mmu_notifier_unregister+0x119/0x360 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:0x7f76acc3df7b 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:00007fff88f04f50 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f76acc3df7b RDX: 00007f76ac800688 RSI: ffffffffffffffff RDI: 0000000000000006 RBP: 00007f76acdad980 R08: 0000000000000000 R09: 00007f76ac800000 R10: 00007f76ac800690 R11: 0000000000000293 R12: 000000000001190c R13: 00007fff88f05050 R14: 00007f76acdabf80 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 c2 70 a7 0b 01 0f 0b 48 8b 04 24 e9 ab fd ff ff 48 c7 c6 c0 7e 76 89 48 89 ef e8 b2 0e 00 00 <0f> 0b 0f 0b e9 fa fc ff ff 48 c7 c6 80 7f 76 89 48 89 ef e8 9a 0e RSP: 0018:ffffc90004be7710 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffffea000083e800 RCX: ffffc90004be75e8 RDX: 1ffff11004a3d157 RSI: ffffffff896b92a0 RDI: ffffffff89c25620 RBP: ffffea000083e800 R08: 0000000000000001 R09: ffffffff8d653657 R10: fffffbfff1aca6ca R11: 0000000000000001 R12: 0000000000000000 R13: ffff8880b9b36d00 R14: 0000000000000003 R15: ffff8880b9b36d30 FS: 0000555555f38400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000029326000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400