rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P10692/1:b..l P7372/1:b..l rcu: (detected by 0, t=10503 jiffies, g=51097, q=191 ncpus=2) task:kworker/u4:9 state:R running task stack:25296 pid:7372 ppid:2 flags:0x00004000 Workqueue: netns cleanup_net Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xee1/0x59f0 kernel/sched/core.c:6710 preempt_schedule_irq+0x52/0x90 kernel/sched/core.c:7022 irqentry_exit+0x35/0x80 kernel/entry/common.c:433 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:rcu_is_watching+0x0/0xb0 kernel/rcu/tree.c:691 Code: 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 c7 c7 c0 fc 6d 8a e8 50 b2 c2 08 65 8a 05 05 89 95 7e 0f b6 c0 c3 0f 1f 44 00 00 0f 1e fa 55 53 65 ff 05 4b 6e 95 7e e8 0e b2 c2 08 48 c7 c3 e8 RSP: 0018:ffffc9000417faf0 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff88807ad9a140 RSI: ffffffff88aa9c97 RDI: 0000000000000005 RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 1ffffffff1935c01 R12: 0000000000000000 R13: 00000000000703f2 R14: ffffffff924f3f20 R15: 00000000000703f2 rcu_read_unlock include/linux/rcupdate.h:778 [inline] inet_twsk_purge+0x7ec/0x920 net/ipv4/inet_timewait_sock.c:336 ops_exit_list+0x125/0x170 net/core/net_namespace.c:175 cleanup_net+0x505/0xb20 net/core/net_namespace.c:614 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597 worker_thread+0x687/0x1110 kernel/workqueue.c:2748 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296 RIP: 0000:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 task:syz-executor.2 state:R running task stack:28016 pid:10692 ppid:9403 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xee1/0x59f0 kernel/sched/core.c:6710 preempt_schedule_irq+0x52/0x90 kernel/sched/core.c:7022 irqentry_exit+0x35/0x80 kernel/entry/common.c:433 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:650 RIP: 0010:lock_is_held_type+0x104/0x140 kernel/locking/lockdep.c:5837 Code: 00 00 b8 ff ff ff ff 65 0f c1 05 67 9b d1 75 83 f8 01 75 29 9c 58 f6 c4 02 75 3d 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 <44> 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 45 31 ed eb b9 0f 0b 48 RSP: 0018:ffffc900039ef948 EFLAGS: 00000286 RAX: 0000000000000046 RBX: ffff888041294cb0 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffffffff8a6c6b20 RDI: ffffffff8ac7e3e0 RBP: ffffffff8c9a3140 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880412941c0 R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000002 lock_is_held include/linux/lockdep.h:288 [inline] rcu_read_lock_sched_held kernel/rcu/update.c:125 [inline] rcu_read_lock_sched_held+0x3a/0x70 kernel/rcu/update.c:119 task_css include/linux/cgroup.h:436 [inline] mem_cgroup_from_task+0x6f/0x140 mm/memcontrol.c:1012 count_memcg_event_mm.part.0+0xa5/0x340 include/linux/memcontrol.h:1106 count_memcg_event_mm include/linux/memcontrol.h:570 [inline] mm_account_fault mm/memory.c:5113 [inline] handle_mm_fault+0x401/0x9d0 mm/memory.c:5249 do_user_addr_fault+0x446/0xfc0 arch/x86/mm/fault.c:1392 handle_page_fault arch/x86/mm/fault.c:1486 [inline] exc_page_fault+0x5c/0xd0 arch/x86/mm/fault.c:1542 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:rep_movs_alternative+0x4a/0xb0 arch/x86/lib/copy_user_64.S:71 Code: 75 f1 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 a4 c3 0f 1f 00 4c 8b 06 4c 8b 4e 08 4c 8b 56 10 4c 8b 5e 18 4c RSP: 0018:ffffc900039efb50 EFLAGS: 00050206 RAX: 0000000000000001 RBX: 0000000020522000 RCX: 0000000000001000 RDX: 0000000000000000 RSI: 0000000020522000 RDI: ffff88803708e000 RBP: 0000000000001000 R08: 0000000000000001 R09: ffffed1006e11dff R10: ffff88803708efff R11: 0000000000000000 R12: 0000000020523000 R13: ffff88803708e000 R14: 0000000000000000 R15: 0000000020522000 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:127 [inline] _copy_from_user+0xc2/0xf0 lib/usercopy.c:23 copy_from_user include/linux/uaccess.h:183 [inline] snd_rawmidi_kernel_write1+0x360/0x860 sound/core/rawmidi.c:1618 snd_rawmidi_write+0x278/0xc10 sound/core/rawmidi.c:1687 vfs_write+0x2a4/0xe40 fs/read_write.c:582 ksys_write+0x1f0/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd3d0c7cb29 RSP: 002b:00007fd3d1a470c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd3d0d9bf80 RCX: 00007fd3d0c7cb29 RDX: 00000000fffffd2c RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007fd3d0cc847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd3d0d9bf80 R15: 00007ffc7d257b58 rcu: rcu_preempt kthread timer wakeup didn't happen for 10573 jiffies! g51097 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=1 timer-softirq=55952 rcu: rcu_preempt kthread starved for 10576 jiffies! g51097 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:28232 pid:15 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xee1/0x59f0 kernel/sched/core.c:6710 schedule+0xe7/0x1b0 kernel/sched/core.c:6786 schedule_timeout+0x157/0x2c0 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x1ec/0xa50 kernel/rcu/tree.c:1609 rcu_gp_kthread+0x249/0x380 kernel/rcu/tree.c:1808 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296 RIP: 0000:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 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: 5102 Comm: kworker/1:6 Not tainted 6.5.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Workqueue: mld mld_ifc_work RIP: 0010:__sanitizer_cov_trace_cmp8+0x8/0x20 kernel/kcov.c:283 Code: 00 00 f3 0f 1e fa 48 8b 0c 24 89 f2 89 fe bf 04 00 00 00 e9 1a ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 8b 0c 24 <48> 89 f2 48 89 fe bf 06 00 00 00 e9 f8 fe ff ff 0f 1f 84 00 00 00 RSP: 0018:ffffc9000386f2e8 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 000000000000003f RCX: ffffffff88588752 RDX: ffff888036bb00c0 RSI: 000000000000002c RDI: 000000000000003f RBP: ffff88801ead4400 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000000004e R12: 21c5f7029d047681 R13: 0000000000000000 R14: dffffc0000000000 R15: 21c5f7029d0476c0 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000204f7000 CR3: 00000000765e9000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: find_entry_to_transmit+0x4c2/0x9f0 net/sched/sch_taprio.c:356 get_packet_txtime net/sched/sch_taprio.c:508 [inline] taprio_enqueue_one+0x881/0x1640 net/sched/sch_taprio.c:577 taprio_enqueue+0x239/0x7e0 net/sched/sch_taprio.c:658 dev_qdisc_enqueue+0x3f/0x230 net/core/dev.c:3732 __dev_xmit_skb net/core/dev.c:3821 [inline] __dev_queue_xmit+0x2202/0x3f20 net/core/dev.c:4169 dev_queue_xmit include/linux/netdevice.h:3088 [inline] neigh_hh_output include/net/neighbour.h:528 [inline] neigh_output include/net/neighbour.h:542 [inline] ip6_finish_output2+0x1083/0x1b20 net/ipv6/ip6_output.c:135 __ip6_finish_output net/ipv6/ip6_output.c:196 [inline] ip6_finish_output+0x485/0x11d0 net/ipv6/ip6_output.c:207 NF_HOOK_COND include/linux/netfilter.h:292 [inline] ip6_output+0x243/0x890 net/ipv6/ip6_output.c:228 dst_output include/net/dst.h:458 [inline] NF_HOOK.constprop.0+0xfd/0x540 include/linux/netfilter.h:303 mld_sendpack+0x715/0xd60 net/ipv6/mcast.c:1820 mld_send_cr net/ipv6/mcast.c:2121 [inline] mld_ifc_work+0x756/0xcd0 net/ipv6/mcast.c:2653 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597 worker_thread+0x687/0x1110 kernel/workqueue.c:2748 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296 RIP: 0000:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000