rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 GPs behind) idle=14dc/1/0x4000000000000000 softirq=267340/267342 fqs=0 (detected by 1, t=10505 jiffies, g=413577, q=106 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 5122 Comm: syz-executor.0 Not tainted 6.1.0-next-20221220-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:find_held_lock+0x9/0x110 kernel/locking/lockdep.c:5151 Code: 2f 5a 8c e8 b9 6e 6c 00 e9 74 ff ff ff 48 c7 c7 00 2f 5a 8c e8 a8 6e 6c 00 eb 98 66 0f 1f 44 00 00 41 57 44 8d 7a ff 49 63 c7 <41> 56 49 89 ce 48 8d 04 80 41 55 49 89 f5 41 54 4c 8d a4 c7 38 0a RSP: 0018:ffffc90000007968 EFLAGS: 00000006 RAX: 0000000000000005 RBX: 0000000000000007 RCX: ffffc900000079c8 RDX: 0000000000000006 RSI: ffffffff8c792840 RDI: ffff888027bf9d40 RBP: 1ffff92000000f31 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffffff8c792840 R13: 0000000000000006 R14: ffff888027bfa770 R15: 0000000000000005 FS: 0000555556d36400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002300 CR3: 0000000037b10000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_release kernel/locking/lockdep.c:5343 [inline] lock_release+0x22a/0x810 kernel/locking/lockdep.c:5688 rcu_lock_release include/linux/rcupdate.h:330 [inline] rcu_read_unlock include/linux/rcupdate.h:797 [inline] advance_sched+0x50b/0x9b0 net/sched/sch_taprio.c:755 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x600/0xcc0 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x320/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline] __sysvec_apic_timer_interrupt+0x180/0x640 arch/x86/kernel/apic/apic.c:1113 sysvec_apic_timer_interrupt+0x44/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x3c/0x70 kernel/locking/spinlock.c:194 Code: 74 24 10 e8 b6 18 59 f7 48 89 ef e8 ae 83 59 f7 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 3f b3 4b f7 65 8b 05 20 cd f8 75 85 c0 74 0a 5b 5d c3 e8 4c f6 RSP: 0018:ffffc90000007d40 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff226f7d6 RDX: 0000000000000000 RSI: 0000000000000103 RDI: 0000000000000001 RBP: ffffffff91e6b668 R08: 0000000000000001 R09: ffffffff91340b5f R10: 0000000000000001 R11: 0000000000000001 R12: dffffc0000000000 R13: ffffffff8a4dc8c0 R14: 1ffff92000000faf R15: ffff88802b7a4540 debug_object_active_state lib/debugobjects.c:949 [inline] debug_object_active_state+0x264/0x350 lib/debugobjects.c:918 debug_rcu_head_unqueue kernel/rcu/rcu.h:198 [inline] rcu_do_batch kernel/rcu/tree.c:2239 [inline] rcu_core+0x7de/0x1950 kernel/rcu/tree.c:2506 __do_softirq+0x1fb/0xadc kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:__sanitizer_cov_trace_pc+0x3b/0x70 kernel/kcov.c:207 Code: 81 e1 00 01 00 00 65 48 8b 14 25 00 ac 03 00 a9 00 01 ff 00 74 0e 85 c9 74 35 8b 82 6c 15 00 00 85 c0 74 2b 8b 82 48 15 00 00 <83> f8 02 75 20 48 8b 8a 50 15 00 00 8b 92 4c 15 00 00 48 8b 01 48 RSP: 0018:ffffc90003e1f740 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffffea0000dea040 RCX: 0000000000000000 RDX: ffff888027bf9d40 RSI: ffffffff81ba77ac RDI: ffffea0000dea040 RBP: ffff888037b16de0 R08: 0000000000000007 R09: ffffffffffffffff R10: 00fff0000000000a R11: 0000000000000000 R12: ffffea0000dea040 R13: dffffc0000000000 R14: 00fff0000000000a R15: ffffea0000dea040 _compound_head+0xc/0x150 include/linux/page-flags.h:251 PageSwapBacked include/linux/page-flags.h:500 [inline] mm_counter_file include/linux/mm.h:2177 [inline] mm_counter include/linux/mm.h:2186 [inline] copy_present_pte mm/memory.c:919 [inline] copy_pte_range mm/memory.c:1034 [inline] copy_pmd_range mm/memory.c:1120 [inline] copy_pud_range mm/memory.c:1157 [inline] copy_p4d_range mm/memory.c:1181 [inline] copy_page_range+0x160a/0x3b10 mm/memory.c:1279 dup_mmap+0xc10/0x1190 kernel/fork.c:694 dup_mm kernel/fork.c:1548 [inline] copy_mm kernel/fork.c:1597 [inline] copy_process+0x440f/0x75c0 kernel/fork.c:2266 kernel_clone+0xeb/0xa40 kernel/fork.c:2681 __do_sys_clone+0xba/0x100 kernel/fork.c:2822 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 RIP: 0033:0x7feadbc89e0b Code: ed 0f 85 60 01 00 00 64 4c 8b 0c 25 10 00 00 00 45 31 c0 4d 8d 91 d0 02 00 00 31 d2 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 89 00 00 00 41 89 c5 85 c0 0f 85 90 00 00 RSP: 002b:00007fffc2a69180 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007feadbc89e0b RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000555556d36400 R10: 0000555556d366d0 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 00007fffc2a69260 rcu: rcu_preempt kthread timer wakeup didn't happen for 10504 jiffies! g413577 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=1 timer-softirq=179724 rcu: rcu_preempt kthread starved for 10505 jiffies! g413577 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1 rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior. rcu: RCU grace-period kthread stack dump: task:rcu_preempt state:I stack:28240 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x2544/0x53f0 kernel/sched/core.c:6555 schedule+0xde/0x1b0 kernel/sched/core.c:6631 schedule_timeout+0x14e/0x2a0 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1656 rcu_gp_kthread+0x23a/0x360 kernel/rcu/tree.c:1855 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 rcu: Stack dump where RCU GP kthread last ran: CPU: 1 PID: 6256 Comm: kworker/u4:27 Not tainted 6.1.0-next-20221220-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:413 [inline] RIP: 0010:smp_call_function_many_cond+0x4ee/0x1090 kernel/smp.c:987 Code: e6 e8 e6 f7 0a 00 45 85 e4 74 48 48 8b 04 24 49 89 c5 83 e0 07 49 c1 ed 03 49 89 c4 4d 01 fd 41 83 c4 03 e8 14 fb 0a 00 f3 90 <41> 0f b6 45 00 41 38 c4 7c 08 84 c0 0f 85 98 09 00 00 8b 43 08 31 RSP: 0018:ffffc90015947978 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9843ce0 RCX: 0000000000000000 RDX: ffff888023669d40 RSI: ffffffff817659cc RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000003 R13: ffffed101730879d R14: 0000000000000001 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555563eb808 CR3: 000000000c48e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x5a/0xa0 kernel/smp.c:1155 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1772 [inline] text_poke_bp_batch+0x22e/0x6b0 arch/x86/kernel/alternative.c:1963 text_poke_flush arch/x86/kernel/alternative.c:2131 [inline] text_poke_flush arch/x86/kernel/alternative.c:2128 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2138 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:829 static_key_enable_cpuslocked+0x1b5/0x270 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate mm/kfence/core.c:799 [inline] toggle_allocation_gate+0xf8/0x230 mm/kfence/core.c:791 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308