rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P14024/1:b..l P14039/1:b..l P12/1:b..l rcu: (detected by 0, t=10502 jiffies, g=64605, q=10 ncpus=2) task:kworker/u4:1 state:R running task stack:25616 pid:12 tgid:12 ppid:2 flags:0x00004000 Workqueue: netns cleanup_net Call Trace: context_switch kernel/sched/core.c:5399 [inline] __schedule+0xf15/0x5c80 kernel/sched/core.c:6726 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7046 irqentry_exit+0x36/0x80 kernel/entry/common.c:432 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:lock_acquire+0x1f2/0x530 kernel/locking/lockdep.c:5722 Code: c1 05 da 06 9a 7e 83 f8 01 0f 85 c4 02 00 00 9c 58 f6 c4 02 0f 85 af 02 00 00 48 85 ed 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24 RSP: 0018:ffffc900001179f8 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92000022f41 RCX: 00000000e1453e6b RDX: 0000000000000001 RSI: ffffffff8accb7a0 RDI: ffffffff8b2f7d40 RBP: 0000000000000200 R08: 0000000000000000 R09: fffffbfff2427fe8 R10: ffffffff9213ff47 R11: 0000000000000003 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff8d1ac360 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:298 [inline] rcu_read_lock include/linux/rcupdate.h:750 [inline] inet_twsk_purge+0x12f/0x900 net/ipv4/inet_timewait_sock.c:292 ops_exit_list+0x125/0x170 net/core/net_namespace.c:175 cleanup_net+0x505/0xb20 net/core/net_namespace.c:614 process_one_work+0x8a4/0x15f0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b6/0x1290 kernel/workqueue.c:2787 kthread+0x2c1/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 task:syz-executor.1 state:R running task stack:25984 pid:14039 tgid:14032 ppid:5107 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5399 [inline] __schedule+0xf15/0x5c80 kernel/sched/core.c:6726 preempt_schedule_common+0x44/0xc0 kernel/sched/core.c:6903 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk_64.S:45 __local_bh_enable_ip+0x103/0x120 kernel/softirq.c:388 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:820 [inline] __dev_queue_xmit+0x879/0x3d40 net/core/dev.c:4372 dev_queue_xmit include/linux/netdevice.h:3165 [inline] neigh_hh_output include/net/neighbour.h:526 [inline] neigh_output include/net/neighbour.h:540 [inline] ip_finish_output2+0x1698/0x2540 net/ipv4/ip_output.c:235 __ip_finish_output net/ipv4/ip_output.c:313 [inline] __ip_finish_output+0x38b/0x650 net/ipv4/ip_output.c:295 ip_finish_output+0x31/0x310 net/ipv4/ip_output.c:323 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip_output+0x13b/0x2a0 net/ipv4/ip_output.c:433 dst_output include/net/dst.h:451 [inline] ip_local_out net/ipv4/ip_output.c:129 [inline] ip_send_skb+0xd3/0x250 net/ipv4/ip_output.c:1489 udp_send_skb+0x73f/0x1530 net/ipv4/udp.c:963 udp_sendmsg+0x1a17/0x2b20 net/ipv4/udp.c:1250 inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:847 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0xd5/0x180 net/socket.c:745 ____sys_sendmsg+0x2ac/0x940 net/socket.c:2582 ___sys_sendmsg+0x135/0x1d0 net/socket.c:2636 __sys_sendmmsg+0x1a1/0x450 net/socket.c:2722 __do_sys_sendmmsg net/socket.c:2751 [inline] __se_sys_sendmmsg net/socket.c:2748 [inline] __x64_sys_sendmmsg+0x9c/0x100 net/socket.c:2748 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7fbca827cba9 RSP: 002b:00007fbca907e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fbca839c120 RCX: 00007fbca827cba9 RDX: 0000000000000300 RSI: 0000000020002080 RDI: 0000000000000008 RBP: 00007fbca82c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fbca839c120 R15: 00007ffd19150c18 task:syz-executor.5 state:R running task stack:26080 pid:14024 tgid:14023 ppid:5110 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5399 [inline] __schedule+0xf15/0x5c80 kernel/sched/core.c:6726 preempt_schedule_common+0x44/0xc0 kernel/sched/core.c:6903 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk_64.S:45 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_unlock+0x3a/0x40 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] zap_pte_range mm/memory.c:1544 [inline] zap_pmd_range mm/memory.c:1592 [inline] zap_pud_range mm/memory.c:1621 [inline] zap_p4d_range mm/memory.c:1642 [inline] unmap_page_range+0x13ef/0x2b60 mm/memory.c:1663 unmap_single_vma+0x194/0x2b0 mm/memory.c:1709 unmap_vmas+0x22f/0x490 mm/memory.c:1753 exit_mmap+0x1c1/0xb60 mm/mmap.c:3274 __mmput+0x12a/0x4d0 kernel/fork.c:1341 mmput+0x62/0x70 kernel/fork.c:1363 exit_mm kernel/exit.c:567 [inline] do_exit+0x9a1/0x2ad0 kernel/exit.c:858 do_group_exit+0xd3/0x2a0 kernel/exit.c:1021 get_signal+0x2395/0x2770 kernel/signal.c:2893 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11e/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1e/0x60 kernel/entry/common.c:296 do_syscall_64+0x4d/0x110 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7f7a28e7cba9 RSP: 002b:00007f7a29b830c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000136 RAX: 0000000000bffb80 RBX: 00007f7a28f9bf80 RCX: 00007f7a28e7cba9 RDX: 0000000000000002 RSI: 0000000020008400 RDI: 000000000000049c RBP: 00007f7a28ec847a R08: 0000000000000286 R09: 0000000000000000 R10: 0000000020008640 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f7a28f9bf80 R15: 00007ffeb6faf978 rcu: rcu_preempt kthread starved for 10582 jiffies! g64605 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0 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:R running task stack:27792 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5399 [inline] __schedule+0xf15/0x5c80 kernel/sched/core.c:6726 __schedule_loop kernel/sched/core.c:6801 [inline] schedule+0xe7/0x270 kernel/sched/core.c:6816 schedule_timeout+0x136/0x290 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:1631 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:1830 kthread+0x2c1/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.7.0-rc5-next-20231215-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:37 [inline] RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:72 [inline] RIP: 0010:acpi_safe_halt+0x1a/0x20 drivers/acpi/processor_idle.c:113 Code: 08 ed c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 65 48 8b 05 48 f3 77 75 48 8b 00 a8 08 75 0c 66 90 0f 00 2d 98 0a af 00 fb f4 c3 0f 1f 40 00 0f b6 47 08 3c 01 74 0b 3c 02 74 05 8b 7f 04 eb RSP: 0018:ffffffff8ce07d68 EFLAGS: 00000246 RAX: 0000000000004000 RBX: 0000000000000001 RCX: ffffffff8a8baf35 RDX: 0000000000000001 RSI: ffff88801928f800 RDI: ffff88801928f864 RBP: ffff88801928f864 R08: 0000000000000001 R09: ffffed1017306d2d R10: ffff8880b983696b R11: 0000000000000000 R12: ffff8881472fe000 R13: ffffffff8dd25e00 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002001c030 CR3: 0000000077dbf000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: acpi_idle_enter+0xc5/0x160 drivers/acpi/processor_idle.c:707 cpuidle_enter_state+0x83/0x500 drivers/cpuidle/cpuidle.c:267 cpuidle_enter+0x4e/0xa0 drivers/cpuidle/cpuidle.c:388 cpuidle_idle_call kernel/sched/idle.c:215 [inline] do_idle+0x314/0x3f0 kernel/sched/idle.c:312 cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:410 rest_init+0x16f/0x2b0 init/main.c:730 arch_call_rest_init+0x13/0x30 init/main.c:827 start_kernel+0x39e/0x480 init/main.c:1072 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:555 x86_64_start_kernel+0xb2/0xc0 arch/x86/kernel/head64.c:536 secondary_startup_64_no_verify+0x15e/0x16b