rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 GPs behind) idle=983c/1/0x4000000000000000 softirq=57395/57396 fqs=0 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P11/1:b..l P15268/1:b..l rcu: (detected by 1, t=10502 jiffies, g=62137, q=188 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 10889 Comm: syz.5.1901 Not tainted 6.11.0-syzkaller-11993-g3efc57369a0c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:trace_hrtimer_expire_exit include/trace/events/timer.h:306 [inline] RIP: 0010:__run_hrtimer kernel/time/hrtimer.c:1694 [inline] RIP: 0010:__hrtimer_run_queues+0x629/0xd50 kernel/time/hrtimer.c:1755 Code: 00 31 db 4c 0f a3 3d 4e a6 9a 0e 41 0f 92 c7 0f 92 c3 bf 02 00 00 00 89 de e8 73 ab 12 00 31 ff 89 de e8 6a ab 12 00 45 84 ff <74> 1a e8 b0 83 f8 ff 84 c0 4c 8b 7c 24 40 48 8b 5c 24 20 74 18 e8 RSP: 0018:ffffc90000007d60 EFLAGS: 00000002 RAX: 0000000000010000 RBX: 0000000000000001 RCX: ffffffff81823d90 RDX: ffff888060873c00 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90000007ea8 R08: ffffffff81823db6 R09: 1ffffffff2039c7d R10: dffffc0000000000 R11: fffffbfff2039c7e R12: 1ffff110170c593b R13: 0000000000000001 R14: ffff88802d5e7340 R15: 0000000000000001 FS: 00007fc96a7116c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007faf65b08178 CR3: 0000000026d3c000 CR4: 0000000000350ef0 Call Trace: hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1817 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1026 [inline] __sysvec_apic_timer_interrupt+0x112/0x3f0 arch/x86/kernel/apic/apic.c:1043 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1037 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1037 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5826 Code: 2b 00 74 08 4c 89 f7 e8 ca 52 8e 00 f6 44 24 61 02 0f 85 85 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:ffffc90019adf900 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff9200335bf2c RCX: a1114e60eca58f00 RDX: dffffc0000000000 RSI: ffffffff8c0adc40 RDI: ffffffff8c60f5a0 RBP: ffffc90019adfa58 R08: ffffffff942758df R09: 1ffffffff284eb1b R10: dffffc0000000000 R11: fffffbfff284eb1c R12: 1ffff9200335bf28 R13: dffffc0000000000 R14: ffffc90019adf960 R15: 0000000000000246 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] io_cq_lock io_uring/io_uring.c:585 [inline] __io_cqring_overflow_flush+0x1d3/0x8a0 io_uring/io_uring.c:623 io_cqring_do_overflow_flush io_uring/io_uring.c:671 [inline] io_cqring_wait io_uring/io_uring.c:2617 [inline] __do_sys_io_uring_enter io_uring/io_uring.c:3384 [inline] __se_sys_io_uring_enter+0x1fe7/0x2bb0 io_uring/io_uring.c:3276 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:0x7fc96997dff9 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:00007fc96a711038 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 00007fc969b35f80 RCX: 00007fc96997dff9 RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007fc9699f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc969b35f80 R15: 00007ffd16867e18 task:syz.2.3527 state:R running task stack:25680 pid:15268 tgid:15267 ppid:5725 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5315 [inline] __schedule+0x1895/0x4b30 kernel/sched/core.c:6675 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6997 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:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5826 Code: 2b 00 74 08 4c 89 f7 e8 ca 52 8e 00 f6 44 24 61 02 0f 85 85 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:ffffc9000417f600 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff9200082fecc RCX: 91dac62566e5af00 RDX: dffffc0000000000 RSI: ffffffff8c0adc40 RDI: ffffffff8c60f5a0 RBP: ffffc9000417f750 R08: ffffffff942757c7 R09: 1ffffffff284eaf8 R10: dffffc0000000000 R11: fffffbfff284eaf9 R12: 1ffff9200082fec8 R13: dffffc0000000000 R14: ffffc9000417f660 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:337 [inline] rcu_read_lock include/linux/rcupdate.h:849 [inline] percpu_ref_put_many include/linux/percpu-refcount.h:330 [inline] percpu_ref_put+0x36/0x180 include/linux/percpu-refcount.h:351 css_put include/linux/cgroup_refcnt.h:79 [inline] __mem_cgroup_charge+0x59/0x80 mm/memcontrol.c:4484 mem_cgroup_charge include/linux/memcontrol.h:694 [inline] shmem_alloc_and_add_folio+0x8a1/0x13d0 mm/shmem.c:1823 shmem_get_folio_gfp+0x5a9/0x20a0 mm/shmem.c:2335 shmem_get_folio mm/shmem.c:2441 [inline] shmem_write_begin+0x17e/0x460 mm/shmem.c:3046 generic_perform_write+0x346/0x6d0 mm/filemap.c:4054 shmem_file_write_iter+0xf9/0x120 mm/shmem.c:3221 new_sync_write fs/read_write.c:590 [inline] vfs_write+0xa6f/0xc90 fs/read_write.c:683 ksys_write+0x183/0x2b0 fs/read_write.c:736 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:0x7fdf5517cadf RSP: 002b:00007fdf55f5bdf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007fdf5517cadf RDX: 0000000001000000 RSI: 00007fdf4a800000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 000000000000604d R10: 00000000200020c2 R11: 0000000000000293 R12: 0000000000000003 R13: 00007fdf55f5bef0 R14: 00007fdf55f5beb0 R15: 00007fdf4a800000 task:kworker/u8:0 state:R running task stack:20024 pid:11 tgid:11 ppid:2 flags:0x00004000 Workqueue: bat_events batadv_nc_worker Call Trace: context_switch kernel/sched/core.c:5315 [inline] __schedule+0x1895/0x4b30 kernel/sched/core.c:6675 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6997 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:lock_release+0x658/0xa30 kernel/locking/lockdep.c:5847 Code: 3c 3b 00 74 08 4c 89 f7 e8 c5 27 8e 00 f6 84 24 91 00 00 00 02 75 77 41 f7 c5 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 27 00 00 00 00 4b c7 44 27 08 00 00 00 00 65 48 8b 04 25 RSP: 0018:ffffc90000107a20 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff92000020f56 RCX: ffffc90000107a03 RDX: 0000000000000002 RSI: ffffffff8c0adc40 RDI: ffffffff8c60f5a0 RBP: ffffc90000107b48 R08: ffffffff901ce3ef R09: 1ffffffff2039c7d R10: dffffc0000000000 R11: fffffbfff2039c7e R12: 1ffff92000020f50 R13: 0000000000000246 R14: ffffc90000107ab0 R15: dffffc0000000000 rcu_lock_release include/linux/rcupdate.h:347 [inline] rcu_read_unlock include/linux/rcupdate.h:880 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x28b/0x610 net/batman-adv/network-coding.c:719 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa65/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 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: rcu_preempt kthread starved for 10502 jiffies! g62137 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:24304 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5315 [inline] __schedule+0x1895/0x4b30 kernel/sched/core.c:6675 __schedule_loop kernel/sched/core.c:6752 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6767 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247 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: CPU: 1 UID: 0 PID: 2542 Comm: kworker/u8:6 Not tainted 6.11.0-syzkaller-11993-g3efc57369a0c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:rep_nop arch/x86/include/asm/vdso/processor.h:13 [inline] RIP: 0010:cpu_relax arch/x86/include/asm/vdso/processor.h:18 [inline] RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline] RIP: 0010:smp_call_function_many_cond+0x19f1/0x2ca0 kernel/smp.c:884 Code: 00 00 45 8b 65 00 44 89 e6 83 e6 01 31 ff e8 46 f9 0b 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 f1 f4 0b 00 eb 38 90 42 0f b6 04 23 84 c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 RSP: 0018:ffffc9000923f6e0 EFLAGS: 00000293 RAX: ffffffff8188f14b RBX: 1ffff110170c8ca1 RCX: ffff88802d5b3c00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000923f8e0 R08: ffffffff8188f11a R09: 1ffffffff284eaf8 R10: dffffc0000000000 R11: fffffbfff284eaf9 R12: dffffc0000000000 R13: ffff8880b8646508 R14: ffff8880b873fc80 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32a0cff8 CR3: 000000000e734000 CR4: 0000000000350ef0 Call Trace: on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1051 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:2085 [inline] text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2295 text_poke_flush arch/x86/kernel/alternative.c:2486 [inline] text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2493 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 static_key_enable_cpuslocked+0x136/0x260 kernel/jump_label.c:210 static_key_enable+0x1a/0x20 kernel/jump_label.c:223 toggle_allocation_gate+0xbc/0x260 mm/kfence/core.c:849 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa65/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 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