rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P9811/1:b..l (detected by 1, t=10502 jiffies, g=59277, q=581) task:kworker/u4:4 state:R running task stack:24200 pid: 418 ppid: 2 flags:0x00004000 Workqueue: netns cleanup_net Call Trace: context_switch kernel/sched/core.c:4339 [inline] __schedule+0x916/0x23e0 kernel/sched/core.c:5147 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:5535 irqentry_exit+0x31/0x80 kernel/entry/common.c:426 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 RIP: 0010:lock_acquire+0x1ef/0x740 kernel/locking/lockdep.c:5480 Code: 46 a8 7e 83 f8 01 0f 85 ee 03 00 00 9c 58 f6 c4 02 0f 85 d9 03 00 00 48 83 7c 24 08 00 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:ffffc90002337a58 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92000466f4d RCX: 00000000ce912f43 RDX: 1ffff110024f3946 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff9022a8a7 R10: fffffbfff2045514 R11: 0000000000000000 R12: 0000000000000002 R13: ffffffff8bf767e0 R14: 0000000000000000 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:267 [inline] rcu_read_lock include/linux/rcupdate.h:657 [inline] inet_twsk_purge+0x117/0x7c0 net/ipv4/inet_timewait_sock.c:268 ops_exit_list+0x10d/0x160 net/core/net_namespace.c:178 cleanup_net+0x4ea/0xb10 net/core/net_namespace.c:595 process_one_work+0x98d/0x1600 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x3b1/0x4a0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 task:kworker/u4:6 state:R running task stack:24504 pid: 9811 ppid: 2 flags:0x00004000 Workqueue: bat_events batadv_nc_worker Call Trace: context_switch kernel/sched/core.c:4339 [inline] __schedule+0x916/0x23e0 kernel/sched/core.c:5147 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:5535 irqentry_exit+0x31/0x80 kernel/entry/common.c:426 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 RIP: 0010:lock_acquire+0x1ef/0x740 kernel/locking/lockdep.c:5480 Code: 46 a8 7e 83 f8 01 0f 85 ee 03 00 00 9c 58 f6 c4 02 0f 85 d9 03 00 00 48 83 7c 24 08 00 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:ffffc9000cb2fb30 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92001965f68 RCX: 00000000dcd9e2ad RDX: 1ffff1100f5d498e RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff9022a8a7 R10: fffffbfff2045514 R11: 0000000000000000 R12: 0000000000000002 R13: ffffffff8bf767e0 R14: 0000000000000000 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:267 [inline] rcu_read_lock include/linux/rcupdate.h:657 [inline] batadv_nc_process_nc_paths.part.0+0xec/0x3b0 net/batman-adv/network-coding.c:683 batadv_nc_process_nc_paths net/batman-adv/network-coding.c:675 [inline] batadv_nc_worker+0xaf2/0xe50 net/batman-adv/network-coding.c:724 process_one_work+0x98d/0x1600 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x3b1/0x4a0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 rcu: rcu_preempt kthread starved for 10502 jiffies! g59277 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:28784 pid: 14 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4339 [inline] __schedule+0x916/0x23e0 kernel/sched/core.c:5147 schedule+0xcf/0x270 kernel/sched/core.c:5226 schedule_timeout+0x14a/0x250 kernel/time/timer.c:1892 rcu_gp_fqs_loop kernel/rcu/tree.c:2004 [inline] rcu_gp_kthread+0xd07/0x2300 kernel/rcu/tree.c:2177 kthread+0x3b1/0x4a0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 15014 Comm: syz-executor.3 Not tainted 5.13.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rdtsc_ordered arch/x86/include/asm/msr.h:234 [inline] RIP: 0010:pvclock_clocksource_read+0xc2/0x530 arch/x86/kernel/pvclock.c:76 Code: 03 48 89 14 24 49 01 ed 4c 8d 43 18 48 01 e8 4c 8d 7b 10 48 89 44 24 20 4c 8d 53 17 4c 8d 73 1d 83 e1 fe 89 4c 24 08 0f 01 f9 <66> 90 48 c1 e2 20 48 8b 74 24 10 4c 89 c9 48 09 d0 41 0f b6 55 00 RSP: 0018:ffffc90000007838 EFLAGS: 00000006 RAX: 00000000ff53424c RBX: ffffffff8f423000 RCX: 0000000000000000 RDX: 00000000000001c1 RSI: 0000000000010103 RDI: ffffffff8f42301c RBP: dffffc0000000000 R08: ffffffff8f423018 R09: ffffffff8f42300f R10: ffffffff8f423017 R11: 0000000000000000 R12: ffffffff8f423003 R13: fffffbfff1e84601 R14: ffffffff8f42301d R15: ffffffff8f423010 FS: 00007f51bd5a9700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000541198 CR3: 0000000021b8b000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kvm_clock_read arch/x86/kernel/kvmclock.c:88 [inline] kvm_sched_clock_read+0x14/0x40 arch/x86/kernel/kvmclock.c:100 sched_clock_cpu+0x18/0x1f0 kernel/sched/clock.c:371 irqtime_account_irq+0x73/0x2d0 kernel/sched/cputime.c:61 account_hardirq_exit include/linux/vtime.h:159 [inline] __irq_exit_rcu+0x1a/0x200 kernel/softirq.c:634 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x45/0xc0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 RIP: 0010:trylock_clear_pending kernel/locking/qspinlock_paravirt.h:121 [inline] RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline] RIP: 0010:__pv_queued_spin_lock_slowpath+0x3c9/0xb40 kernel/locking/qspinlock.c:508 Code: 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 41 83 ec 01 0f 84 72 04 00 00 41 0f b6 45 00 <38> d8 7f 08 84 c0 0f 85 91 05 00 00 0f b6 45 00 84 c0 75 db be 02 RSP: 0018:ffffc90000007a30 EFLAGS: 00000202 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff19ac400 RDX: 0000000000000001 RSI: ffffffff817a18a1 RDI: ffffffff8132b581 RBP: ffffffff8cd62000 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff817a1869 R11: 0000000000000080 R12: 0000000000007364 R13: fffffbfff19ac400 R14: 0000000000000001 R15: ffff8880b9c36100 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline] queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x200/0x2b0 kernel/locking/spinlock_debug.c:113 spin_lock include/linux/spinlock.h:354 [inline] mac80211_hwsim_tx_frame_no_nl.isra.0+0x68f/0x1330 drivers/net/wireless/mac80211_hwsim.c:1514 mac80211_hwsim_tx_frame+0x14f/0x1e0 drivers/net/wireless/mac80211_hwsim.c:1775 mac80211_hwsim_beacon_tx+0x4ba/0x910 drivers/net/wireless/mac80211_hwsim.c:1829 __iterate_interfaces+0x1e5/0x520 net/mac80211/util.c:793 ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:829 mac80211_hwsim_beacon+0xd5/0x1a0 drivers/net/wireless/mac80211_hwsim.c:1852 __run_hrtimer kernel/time/hrtimer.c:1537 [inline] __hrtimer_run_queues+0x609/0xe40 kernel/time/hrtimer.c:1601 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1618 __do_softirq+0x29b/0x9f6 kernel/softirq.c:559 invoke_softirq kernel/softirq.c:433 [inline] __irq_exit_rcu+0x136/0x200 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 RIP: 0010:debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline] RIP: 0010:do_raw_spin_lock+0x6d/0x2b0 kernel/locking/spinlock_debug.c:112 Code: 14 03 c7 02 f1 f1 f1 f1 c7 42 04 04 f3 f3 f3 48 89 fa 65 48 8b 0c 25 28 00 00 00 48 89 4c 24 60 31 c9 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 db 01 00 00 8b RSP: 0018:ffffc90001d3ed30 EFLAGS: 00000a03 RAX: dffffc0000000000 RBX: 1ffff920003a7da7 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88801902ea64 RBP: ffff88801902ea60 R08: 0000000000000000 R09: ffffffff9022a8ff R10: fffffbfff204551f R11: 0000000000000000 R12: ffff88801902eae0 R13: ffff888018645120 R14: dffffc0000000000 R15: ffffc90001d3ee78 spin_lock include/linux/spinlock.h:354 [inline] dd_dispatch_request+0x98/0x880 block/mq-deadline.c:388 __blk_mq_do_dispatch_sched+0x56c/0x910 block/blk-mq-sched.c:149 blk_mq_do_dispatch_sched block/blk-mq-sched.c:204 [inline] __blk_mq_sched_dispatch_requests+0x361/0x490 block/blk-mq-sched.c:325 blk_mq_sched_dispatch_requests+0xfb/0x180 block/blk-mq-sched.c:351 __blk_mq_run_hw_queue+0xd8/0x150 block/blk-mq.c:1499 __blk_mq_delay_run_hw_queue+0x547/0x640 block/blk-mq.c:1576 blk_mq_run_hw_queue+0x16c/0x2f0 block/blk-mq.c:1629 blk_mq_sched_insert_requests+0x274/0x670 block/blk-mq-sched.c:503 blk_mq_flush_plug_list+0x3d8/0x560 block/blk-mq.c:1954 blk_flush_plug_list+0x4d/0x60 block/blk-core.c:1747 blk_mq_submit_bio+0xbc8/0x1850 block/blk-mq.c:2255 __submit_bio_noacct_mq block/blk-core.c:1014 [inline] submit_bio_noacct block/blk-core.c:1047 [inline] submit_bio_noacct+0xad2/0xf20 block/blk-core.c:1030 submit_bio+0x263/0x5e0 block/blk-core.c:1118 submit_bh_wbc+0x5eb/0x7f0 fs/buffer.c:3075 __block_write_full_page+0x86c/0x1340 fs/buffer.c:1830 block_write_full_page+0x14d/0x190 fs/buffer.c:3001 __writepage+0x60/0x180 mm/page-writeback.c:2311 write_cache_pages+0x759/0x11a0 mm/page-writeback.c:2246 generic_writepages mm/page-writeback.c:2337 [inline] generic_writepages+0xe2/0x150 mm/page-writeback.c:2326 do_writepages+0xec/0x290 mm/page-writeback.c:2352 __filemap_fdatawrite_range+0x2a5/0x390 mm/filemap.c:413 filemap_write_and_wait_range mm/filemap.c:686 [inline] filemap_write_and_wait_range+0x65/0x100 mm/filemap.c:680 __generic_file_write_iter+0x4d2/0x610 mm/filemap.c:3775 blkdev_write_iter+0x298/0x550 fs/block_dev.c:1705 call_write_iter include/linux/fs.h:2114 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x796/0xa30 fs/read_write.c:605 ksys_write+0x12d/0x250 fs/read_write.c:658 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f51bd5a9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056c0b0 RCX: 00000000004665d9 RDX: 0000000052698b34 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0b0 R13: 00007ffc12a33eaf R14: 00007f51bd5a9300 R15: 0000000000022000