rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P4530/1:b..l P4221/1:b..l (detected by 1, t=10502 jiffies, g=34581, q=69 ncpus=2) task:kworker/u4:13 state:R running task stack:21152 pid:4221 ppid:2 flags:0x00004000 Workqueue: netns cleanup_net Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870 irqentry_exit+0x53/0x80 kernel/entry/common.c:439 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:lock_acquire+0x26f/0x5a0 kernel/locking/lockdep.c:5666 Code: 2b 00 74 08 4c 89 f7 e8 8f a6 77 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc900033ef8a0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff9200067df20 RCX: 1ffff9200067dec0 RDX: dffffc0000000000 RSI: ffffffff8b0c13e0 RDI: ffffffff8b5d5ec0 RBP: ffffc900033ef9e8 R08: dffffc0000000000 R09: fffffbfff20e7445 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200067df1c R13: dffffc0000000000 R14: ffffc900033ef900 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:350 [inline] rcu_read_lock include/linux/rcupdate.h:791 [inline] inet_twsk_purge+0x150/0xa40 net/ipv4/inet_timewait_sock.c:295 tcp_twsk_purge+0xd6/0x140 net/ipv4/tcp_minisocks.c:360 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x763/0xb60 net/core/net_namespace.c:604 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 task:syz-executor state:R running task stack:20472 pid:4530 ppid:4511 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870 irqentry_exit+0x53/0x80 kernel/entry/common.c:439 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x0/0x80 kernel/kcov.c:321 Code: 39 c8 77 22 89 f8 89 f6 49 ff c2 4c 89 11 48 c7 44 0a 08 05 00 00 00 48 89 44 0a 10 48 89 74 0a 18 4c 89 44 0a 20 c3 0f 1f 00 <4c> 8b 04 24 65 48 8b 0d 44 cb 77 7e 65 8b 05 45 cb 77 7e 25 00 01 RSP: 0018:ffffc9000423f620 EFLAGS: 00000206 RAX: 0000000000000000 RBX: 0000000000000003 RCX: ffff888023a08000 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000002 RBP: 0000000000000003 R08: ffffffff8aa16a89 R09: ffffffff8aa1e6dc R10: 0000000000000002 R11: ffff888023a08000 R12: ffffc9000423f780 R13: 0000000000000003 R14: ffffc9000423f798 R15: 1ffff92000847ef3 xa_is_internal include/linux/xarray.h:171 [inline] xa_is_err include/linux/xarray.h:203 [inline] xa_err include/linux/xarray.h:222 [inline] xas_error include/linux/xarray.h:1409 [inline] xas_start+0x5f/0x7b0 lib/xarray.c:185 xas_load lib/xarray.c:235 [inline] xas_find+0x173/0xaa0 lib/xarray.c:1252 find_get_entry mm/filemap.c:2003 [inline] find_lock_entries+0x24a/0xda0 mm/filemap.c:2095 shmem_undo_range+0x294/0x2390 mm/shmem.c:925 shmem_truncate_range mm/shmem.c:1062 [inline] shmem_evict_inode+0x265/0xa60 mm/shmem.c:1171 evict+0x2a4/0x620 fs/inode.c:666 __dentry_kill+0x436/0x650 fs/dcache.c:611 dentry_kill+0xbb/0x290 dput+0xfb/0x1d0 fs/dcache.c:918 __fput+0x62e/0x8d0 fs/file_table.c:328 task_work_run+0x246/0x300 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc12c579a7b RSP: 002b:00007ffd7bda8f60 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007fc12c579a7b RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000003 RBP: 00007ffd7bda8fec R08: 0000000000000000 R09: 00007ffd7bda8d07 R10: 0000000000000000 R11: 0000000000000246 R12: 0000555556fce5eb R13: 0000555556fce590 R14: 0000000000067b3c R15: 00007ffd7bda9040 rcu: rcu_preempt kthread starved for 10561 jiffies! g34581 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R running task stack:26400 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 preempt_schedule_common+0x83/0xd0 kernel/sched/core.c:6727 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6751 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:34 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x128/0x130 kernel/locking/spinlock.c:194 __mod_timer+0x956/0xee0 kernel/time/timer.c:1118 schedule_timeout+0x1b4/0x300 kernel/time/timer.c:1964 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 rcu: Stack dump where RCU GP kthread last ran: CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.1.105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:22 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline] RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline] RIP: 0010:acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:567 Code: 00 db f6 48 83 e3 08 0f 85 0b 01 00 00 4c 8d 74 24 20 e8 e4 be e1 f6 0f 1f 44 00 00 e8 0a fc da f6 0f 00 2d 13 e0 b7 00 fb f4 <4c> 89 f3 48 c1 eb 03 42 80 3c 3b 00 74 08 4c 89 f7 e8 7b 77 32 f7 RSP: 0018:ffffc90000177b80 EFLAGS: 000002d3 RAX: ffffffff8aafa406 RBX: 0000000000000000 RCX: ffff888012ad1dc0 RDX: 0000000000000000 RSI: ffffffff8b0c0260 RDI: ffffffff8b5d5ec0 RBP: ffffc90000177c10 R08: ffffffff8aafa3e8 R09: ffffed100255a3b9 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200002ef70 R13: ffff88801b28d004 R14: ffffc90000177ba0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002006b000 CR3: 0000000068635000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: acpi_idle_enter+0x352/0x4f0 drivers/acpi/processor_idle.c:704 cpuidle_enter_state+0x516/0xf80 drivers/cpuidle/cpuidle.c:239 cpuidle_enter+0x59/0x90 drivers/cpuidle/cpuidle.c:356 call_cpuidle kernel/sched/idle.c:155 [inline] cpuidle_idle_call kernel/sched/idle.c:236 [inline] do_idle+0x3ce/0x680 kernel/sched/idle.c:303 cpu_startup_entry+0x3d/0x60 kernel/sched/idle.c:401 start_secondary+0xe4/0xf0 arch/x86/kernel/smpboot.c:281 secondary_startup_64_no_verify+0xcf/0xdb