rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (0 ticks this GP) idle=df3/1/0x4000000000000000 softirq=137175/137175 fqs=0 (detected by 0, t=10502 jiffies, g=160085, q=122 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 52 Comm: kworker/u4:3 Not tainted 5.18.0-syzkaller-11972-gd1dc87763f40 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net RIP: 0010:hlock_class kernel/locking/lockdep.c:222 [inline] RIP: 0010:check_wait_context kernel/locking/lockdep.c:4728 [inline] RIP: 0010:__lock_acquire+0x450/0x5660 kernel/locking/lockdep.c:5003 Code: c0 74 06 0f 8e 10 11 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 54 24 38 44 0f b6 bd b8 00 00 00 48 c1 ea 03 0f b6 04 02 84 c0 <74> 08 3c 03 0f 8e f9 10 00 00 41 0f b7 6c 24 20 66 81 e5 ff 1f 0f RSP: 0018:ffffc900001f0ac0 EFLAGS: 00000046 RAX: 0000000000000000 RBX: ffffffff9082b338 RCX: ffffffff815e051b RDX: 1ffff11002d63c74 RSI: 0000000000000008 RDI: ffffffff900b2d98 RBP: ffffffff900b2ce0 R08: 0000000000000000 R09: ffffffff900b28c7 R10: fffffbfff2016518 R11: 0000000000000001 R12: ffff888016b1e380 R13: ffff888016b1d880 R14: 0000000000044000 R15: 0000000000000002 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e721000 CR3: 000000000ba8e000 CR4: 0000000000350ee0 Call Trace: lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 debug_object_activate+0x12e/0x3e0 lib/debugobjects.c:658 debug_hrtimer_activate kernel/time/hrtimer.c:420 [inline] debug_activate kernel/time/hrtimer.c:475 [inline] enqueue_hrtimer+0x27/0x3e0 kernel/time/hrtimer.c:1084 __run_hrtimer kernel/time/hrtimer.c:1702 [inline] __hrtimer_run_queues+0xb02/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:rcu_preempt_read_enter kernel/rcu/tree_plugin.h:377 [inline] RIP: 0010:__rcu_read_lock+0x27/0xf0 kernel/rcu/tree_plugin.h:400 Code: 1f 40 00 48 b8 00 00 00 00 00 fc ff df 55 53 65 48 8b 1c 25 80 6f 02 00 48 8d bb 3c 04 00 00 48 89 fa 48 c1 ea 03 0f b6 14 02 <48> 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 9e 00 00 00 65 RSP: 0018:ffffc90000bd7b28 EFLAGS: 00000213 RAX: dffffc0000000000 RBX: ffff888016b1d880 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888016b1dcbc RBP: 00000000000611b3 R08: 0000000000000004 R09: 000000000007ffff R10: 00000000000611b3 R11: 0000000000000001 R12: ffffffff8d87cca0 R13: ffffc90000bd7ca0 R14: 000000000000000a R15: dffffc0000000000 rcu_read_lock include/linux/rcupdate.h:693 [inline] inet_twsk_purge+0xf2/0x850 net/ipv4/inet_timewait_sock.c:269 ops_exit_list+0x125/0x170 net/core/net_namespace.c:167 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:594 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g160085 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=1 timer-softirq=88814 rcu: rcu_preempt kthread starved for 10502 jiffies! g160085 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:28656 pid: 17 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0xa00/0x4b30 kernel/sched/core.c:6431 schedule+0xd2/0x1f0 kernel/sched/core.c:6503 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935 rcu_gp_fqs_loop+0x186/0x810 kernel/rcu/tree.c:1999 rcu_gp_kthread+0x1de/0x320 kernel/rcu/tree.c:2187 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 52 Comm: kworker/u4:3 Not tainted 5.18.0-syzkaller-11972-gd1dc87763f40 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net RIP: 0010:check_wait_context kernel/locking/lockdep.c:4727 [inline] RIP: 0010:__lock_acquire+0x425/0x5660 kernel/locking/lockdep.c:5003 Code: 6c 6d 00 48 c1 e5 06 48 81 c5 e0 2c 0b 90 48 8d bd b8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 <84> c0 74 06 0f 8e 10 11 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b RSP: 0018:ffffc900001f0b70 EFLAGS: 00000012 RAX: 0000000000000000 RBX: ffff888073c64300 RCX: ffffffff815e051b RDX: 1ffffffff202aa43 RSI: 0000000000000008 RDI: ffffffff90155218 RBP: ffffffff90155160 R08: 0000000000000000 R09: ffffffff900b2a77 R10: fffffbfff201654e R11: 0000000000000001 R12: ffff888016b1e358 R13: ffff888016b1d880 R14: 0000000000044000 R15: 00000000000c4d86 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e721000 CR3: 000000000ba8e000 CR4: 0000000000350ee0 Call Trace: lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] advance_sched+0x53/0x9a0 net/sched/sch_taprio.c:715 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:rcu_preempt_read_enter kernel/rcu/tree_plugin.h:377 [inline] RIP: 0010:__rcu_read_lock+0x27/0xf0 kernel/rcu/tree_plugin.h:400 Code: 1f 40 00 48 b8 00 00 00 00 00 fc ff df 55 53 65 48 8b 1c 25 80 6f 02 00 48 8d bb 3c 04 00 00 48 89 fa 48 c1 ea 03 0f b6 14 02 <48> 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 9e 00 00 00 65 RSP: 0018:ffffc90000bd7b28 EFLAGS: 00000213 RAX: dffffc0000000000 RBX: ffff888016b1d880 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888016b1dcbc RBP: 00000000000611b3 R08: 0000000000000004 R09: 000000000007ffff R10: 00000000000611b3 R11: 0000000000000001 R12: ffffffff8d87cca0 R13: ffffc90000bd7ca0 R14: 000000000000000a R15: dffffc0000000000 rcu_read_lock include/linux/rcupdate.h:693 [inline] inet_twsk_purge+0xf2/0x850 net/ipv4/inet_timewait_sock.c:269 ops_exit_list+0x125/0x170 net/core/net_namespace.c:167 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:594 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 watchdog: BUG: soft lockup - CPU#0 stuck for 246s! [kworker/u4:0:8] Modules linked in: irq event stamp: 30593168 hardirqs last enabled at (30593167): [] asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 hardirqs last disabled at (30593168): [] sysvec_apic_timer_interrupt+0xb/0xc0 arch/x86/kernel/apic/apic.c:1106 softirqs last enabled at (30542984): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last enabled at (30542984): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 softirqs last disabled at (30542911): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (30542911): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 CPU: 0 PID: 8 Comm: kworker/u4:0 Not tainted 5.18.0-syzkaller-11972-gd1dc87763f40 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:414 [inline] RIP: 0010:smp_call_function_many_cond+0x499/0x1110 kernel/smp.c:988 Code: 01 89 ee e8 a9 94 0a 00 85 ed 74 47 48 8b 04 24 49 89 c4 83 e0 07 49 c1 ec 03 48 89 c5 4d 01 fc 83 c5 03 e8 49 98 0a 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 21 0a 00 00 8b 43 08 31 RSP: 0018:ffffc900000d7950 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9d401a0 RCX: 0000000000000000 RDX: ffff888010f0d880 RSI: ffffffff816fec07 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffed10173a8035 R13: 0000000000000001 R14: 0000000000000001 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f49a27a0000 CR3: 000000000ba8e000 CR4: 0000000000350ef0 Call Trace: on_each_cpu_cond_mask+0x56/0xa0 kernel/smp.c:1154 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1231 [inline] text_poke_bp_batch+0x233/0x6c0 arch/x86/kernel/alternative.c:1419 text_poke_flush arch/x86/kernel/alternative.c:1589 [inline] text_poke_flush arch/x86/kernel/alternative.c:1586 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1596 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:830 static_key_enable_cpuslocked+0x1b1/0x260 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate mm/kfence/core.c:808 [inline] toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:800 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 52 Comm: kworker/u4:3 Not tainted 5.18.0-syzkaller-11972-gd1dc87763f40 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:29 [inline] RIP: 0010:rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:341 [inline] RIP: 0010:rcu_is_watching+0x65/0xb0 kernel/rcu/tree.c:1138 Code: 48 03 1c ed e0 58 7f 8b 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 0f b6 14 02 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 <84> d2 75 19 8b 03 83 e0 01 65 ff 0d 3b 4a 9d 7e 74 03 5b 5d c3 e8 RSP: 0018:ffffc900001f0bf8 EFLAGS: 00000006 RAX: 0000000000000003 RBX: ffff8880b9d3aed0 RCX: ffffffff815e6b88 RDX: 0000000000000000 RSI: 0000000000010004 RDI: ffffffff8b7f58e8 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8dbbba57 R10: fffffbfff1b7774a R11: 0000000000000001 R12: 0000000000000001 R13: 0000000000000000 R14: ffffffff9082b338 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e721000 CR3: 000000000ba8e000 CR4: 0000000000350ee0 Call Trace: rcu_read_lock_held_common kernel/rcu/update.c:108 [inline] rcu_read_lock_sched_held+0x1c/0x70 kernel/rcu/update.c:123 trace_lock_acquire include/trace/events/lock.h:24 [inline] lock_acquire+0x480/0x570 kernel/locking/lockdep.c:5636 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 debug_object_activate+0x12e/0x3e0 lib/debugobjects.c:658 debug_hrtimer_activate kernel/time/hrtimer.c:420 [inline] debug_activate kernel/time/hrtimer.c:475 [inline] enqueue_hrtimer+0x27/0x3e0 kernel/time/hrtimer.c:1084 __run_hrtimer kernel/time/hrtimer.c:1702 [inline] __hrtimer_run_queues+0xb02/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:rcu_preempt_read_enter kernel/rcu/tree_plugin.h:377 [inline] RIP: 0010:__rcu_read_lock+0x27/0xf0 kernel/rcu/tree_plugin.h:400 Code: 1f 40 00 48 b8 00 00 00 00 00 fc ff df 55 53 65 48 8b 1c 25 80 6f 02 00 48 8d bb 3c 04 00 00 48 89 fa 48 c1 ea 03 0f b6 14 02 <48> 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 9e 00 00 00 65 RSP: 0018:ffffc90000bd7b28 EFLAGS: 00000213 RAX: dffffc0000000000 RBX: ffff888016b1d880 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888016b1dcbc RBP: 00000000000611b3 R08: 0000000000000004 R09: 000000000007ffff R10: 00000000000611b3 R11: 0000000000000001 R12: ffffffff8d87cca0 R13: ffffc90000bd7ca0 R14: 000000000000000a R15: dffffc0000000000 rcu_read_lock include/linux/rcupdate.h:693 [inline] inet_twsk_purge+0xf2/0x850 net/ipv4/inet_timewait_sock.c:269 ops_exit_list+0x125/0x170 net/core/net_namespace.c:167 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:594 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 ---------------- Code disassembly (best guess): 0: c0 74 06 0f 8e shlb $0x8e,0xf(%rsi,%rax,1) 5: 10 11 adc %dl,(%rcx) 7: 00 00 add %al,(%rax) 9: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 10: fc ff df 13: 48 8b 54 24 38 mov 0x38(%rsp),%rdx 18: 44 0f b6 bd b8 00 00 movzbl 0xb8(%rbp),%r15d 1f: 00 20: 48 c1 ea 03 shr $0x3,%rdx 24: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax 28: 84 c0 test %al,%al * 2a: 74 08 je 0x34 <-- trapping instruction 2c: 3c 03 cmp $0x3,%al 2e: 0f 8e f9 10 00 00 jle 0x112d 34: 41 0f b7 6c 24 20 movzwl 0x20(%r12),%ebp 3a: 66 81 e5 ff 1f and $0x1fff,%bp 3f: 0f .byte 0xf