rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P10395/1:b..l P30/1:b..l rcu: (detected by 1, t=10502 jiffies, g=49437, q=837 ncpus=2) task:khungtaskd state:R running task stack:27984 pid:30 tgid:30 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a20 kernel/sched/core.c:6745 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7067 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] RIP: 0010:watchdog+0x772/0x1020 kernel/hung_task.c:379 Code: 00 48 8b 05 d0 9e 6a 0c 48 89 44 24 40 44 8b 7c 24 04 48 8b 44 24 08 4c 8d a0 a0 f9 ff ff 4c 89 e3 48 c1 eb 03 42 0f b6 04 33 <84> c0 0f 85 88 05 00 00 41 8b 2c 24 b8 02 05 00 00 21 c5 bf 02 00 RSP: 0018:ffffc90000a67e40 EFLAGS: 00000216 RAX: 0000000000000000 RBX: 1ffff11002dd3003 RCX: ffff8880182c9e00 RDX: 0000000000000000 RSI: 000000000000000a RDI: 0000000000000000 RBP: 00000001000034e8 R08: ffffffff81964f87 R09: 1ffffffff25f50b0 R10: dffffc0000000000 R11: fffffbfff25f50b1 R12: ffff888016e98018 R13: 1ffffffff1c01e40 R14: dffffc0000000000 R15: 0000000000400000 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 task:syz.5.1547 state:R running task stack:23840 pid:10395 tgid:10395 ppid:7098 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a20 kernel/sched/core.c:6745 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6924 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6948 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_unlock+0x3e/0x50 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] zap_pte_range mm/memory.c:1676 [inline] zap_pmd_range mm/memory.c:1724 [inline] zap_pud_range mm/memory.c:1753 [inline] zap_p4d_range mm/memory.c:1774 [inline] unmap_page_range+0x3631/0x40f0 mm/memory.c:1795 unmap_vmas+0x3cc/0x5f0 mm/memory.c:1885 exit_mmap+0x264/0xc80 mm/mmap.c:3341 __mmput+0x115/0x3c0 kernel/fork.c:1346 exit_mm+0x220/0x310 kernel/exit.c:565 do_exit+0x9aa/0x27e0 kernel/exit.c:861 do_group_exit+0x207/0x2c0 kernel/exit.c:1023 __do_sys_exit_group kernel/exit.c:1034 [inline] __se_sys_exit_group kernel/exit.c:1032 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1032 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f09f9f75b99 RSP: 002b:00007ffcbb9a49a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f09f9f75b99 RDX: 0000000000000064 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000006 R09: 0000000000001388 R10: 00000000003ffd68 R11: 0000000000000246 R12: 0000000000000032 R13: 0000000000001388 R14: 00007ffcbb9a4a80 R15: 00007ffcbb9a4a80 rcu: rcu_preempt kthread starved for 10537 jiffies! g49437 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:25776 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a20 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2000 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2202 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 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: 10324 Comm: syz.0.1518 Not tainted 6.10.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:get_current arch/x86/include/asm/current.h:49 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x8/0x70 kernel/kcov.c:206 Code: 8b 3d 7c 8b 45 0c 48 89 de 5b e9 63 40 5a 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 <65> 48 8b 0c 25 c0 d4 03 00 65 8b 15 60 ad 6d 7e f7 c2 00 01 ff 00 RSP: 0018:ffffc90000006b60 EFLAGS: 00000083 RAX: ffffffff814100c8 RBX: 0000000000000002 RCX: ffffc90000000000 RDX: ffff88802b59da00 RSI: 0000000000000002 RDI: 0000000000000000 RBP: 1ffff92000000d8a R08: ffffffff8141008d R09: ffffffff8140ffe6 R10: 0000000000000003 R11: ffff88802b59da00 R12: ffffc90000007608 R13: ffffc90000008000 R14: 1ffff92000000d89 R15: dffffc0000000000 FS: 00007f0d13db76c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f211ff8 CR3: 000000007b44e000 CR4: 0000000000350ef0 Call Trace: stack_access_ok arch/x86/kernel/unwind_orc.c:393 [inline] deref_stack_reg arch/x86/kernel/unwind_orc.c:403 [inline] unwind_next_frame+0x10d8/0x2a00 arch/x86/kernel/unwind_orc.c:585 arch_stack_walk+0x151/0x1b0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:579 poison_slab_object+0xe0/0x150 mm/kasan/common.c:240 __kasan_slab_free+0x37/0x60 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2196 [inline] slab_free mm/slub.c:4438 [inline] kfree+0x149/0x360 mm/slub.c:4559 dummy_timer+0x7ce/0x45d0 drivers/usb/gadget/udc/dummy_hcd.c:1981 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x59d/0xd50 kernel/time/hrtimer.c:1753 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1815 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x112/0x3f0 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x52/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:430 [inline] RIP: 0010:__pv_queued_spin_lock_slowpath+0x784/0xdc0 kernel/locking/qspinlock.c:508 Code: b6 04 2b 84 c0 75 6c 66 c7 84 24 b0 00 00 00 00 01 48 8b 44 24 40 42 0f b6 04 28 84 c0 75 77 41 80 3e 00 74 0c f3 90 41 ff c4 <75> d2 e9 a0 00 00 00 4c 89 f7 be 02 00 00 00 e8 c8 f2 6a f6 48 8d RSP: 0018:ffffc90000007700 EFLAGS: 00000282 RAX: 0000000000000000 RBX: 1ffff92000000ef6 RCX: ffffc90000007701 RDX: 0000000000000102 RSI: ffffffff8bcabb20 RDI: ffffffff8c1feac0 RBP: ffffc90000007838 R08: ffffffff92fa85ef R09: 1ffffffff25f50bd R10: dffffc0000000000 R11: fffffbfff25f50be R12: 00000000ffff8b04 R13: dffffc0000000000 R14: ffffffff8eeba120 R15: ffffc900000077c0 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:584 [inline] queued_spin_lock_slowpath+0x42/0x50 arch/x86/include/asm/qspinlock.h:51 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x272/0x370 kernel/locking/spinlock_debug.c:116 spin_lock include/linux/spinlock.h:351 [inline] mac80211_hwsim_tx_frame_no_nl+0x97f/0x18d0 drivers/net/wireless/virtual/mac80211_hwsim.c:1808 mac80211_hwsim_tx_frame+0x1cc/0x220 drivers/net/wireless/virtual/mac80211_hwsim.c:2206 mac80211_hwsim_beacon_tx+0x3bf/0x850 drivers/net/wireless/virtual/mac80211_hwsim.c:2306 __iterate_interfaces+0x225/0x4c0 net/mac80211/util.c:772 ieee80211_iterate_active_interfaces_atomic+0xd8/0x170 net/mac80211/util.c:808 mac80211_hwsim_beacon+0xd4/0x1f0 drivers/net/wireless/virtual/mac80211_hwsim.c:2336 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x59d/0xd50 kernel/time/hrtimer.c:1753 hrtimer_run_softirq+0x19a/0x2c0 kernel/time/hrtimer.c:1770 handle_softirqs+0x2c6/0x970 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xd8/0x140 kernel/locking/spinlock.c:194 Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 7e 17 6b f6 f6 44 24 21 02 75 52 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 03 d8 d4 f5 65 8b 05 74 0f 73 74 85 c0 74 43 48 c7 04 24 0e 36 RSP: 0018:ffffc9000b6c6fa0 EFLAGS: 00000206 RAX: c8df2acb41f1c800 RBX: 1ffff920016d8df8 RCX: ffffffff8172da0a RDX: dffffc0000000000 RSI: ffffffff8bcabb20 RDI: 0000000000000001 RBP: ffffc9000b6c7030 R08: ffffffff92fa8587 R09: 1ffffffff25f50b0 R10: dffffc0000000000 R11: fffffbfff25f50b1 R12: dffffc0000000000 R13: 1ffff920016d8df4 R14: ffffc9000b6c6fc0 R15: 0000000000000246 fill_pool lib/debugobjects.c:181 [inline] debug_objects_fill_pool+0x3a7/0x9b0 lib/debugobjects.c:615 debug_object_activate+0x135/0x510 lib/debugobjects.c:704 debug_rcu_head_queue kernel/rcu/rcu.h:227 [inline] __call_rcu_common kernel/rcu/tree.c:3057 [inline] call_rcu+0x97/0xa70 kernel/rcu/tree.c:3176 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4009 vma_lock_alloc kernel/fork.c:441 [inline] vm_area_dup+0x61/0x290 kernel/fork.c:494 __split_vma+0x1a9/0xc30 mm/mmap.c:2394 do_vmi_align_munmap+0x388/0x18c0 mm/mmap.c:2592 do_vmi_munmap+0x261/0x2f0 mm/mmap.c:2759 move_vma+0xeca/0x19a0 mm/mremap.c:785 mremap_to mm/mremap.c:965 [inline] __do_sys_mremap mm/mremap.c:1076 [inline] __se_sys_mremap+0x134b/0x1980 mm/mremap.c:993 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0d12f75b99 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0d13db7048 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007f0d13103fa0 RCX: 00007f0d12f75b99 RDX: 0000000000004000 RSI: 0000000000001000 RDI: 00000000205ab000 RBP: 00007f0d12ff677e R08: 0000000020290000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f0d13103fa0 R15: 00007ffdd1bf3978