rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=4674/1/0x4000000000000000 softirq=98512/98513 fqs=5 rcu: (detected by 0, t=10502 jiffies, g=140413, q=47 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 26505 Comm: kworker/u4:5 Not tainted 6.5.0-rc7-syzkaller-00104-g4f9e7fabf864 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:check_preemption_disabled+0x2/0x110 lib/smp_processor_id.c:13 Code: ff ff ff 0f 1f 44 00 00 f3 0f 1e fa 48 c7 c7 80 ad 58 8b 48 c7 c6 c0 ad 58 8b eb 0c 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 57 <41> 56 41 54 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 RSP: 0000:ffffc900001e0b30 EFLAGS: 00000046 RAX: 1ffff1100fb40157 RBX: 0000000000000046 RCX: ffffc900001e0b03 RDX: 0000000000000002 RSI: ffffffff8b0aa9e0 RDI: ffffffff8b58ade0 RBP: ffffc900001e0c80 R08: ffffffff8e9878ef R09: 1ffffffff1d30f1d R10: dffffc0000000000 R11: fffffbfff1d30f1e R12: 1ffff9200003c174 R13: 0000000000000046 R14: ffffc900001e0bd0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7cd04c66e4 CR3: 000000005c092000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_finish kernel/locking/lockdep.c:467 [inline] lock_release+0x5c8/0x9d0 kernel/locking/lockdep.c:5783 rcu_read_unlock include/linux/rcupdate.h:782 [inline] advance_sched+0xb23/0xc80 net/sched/sch_taprio.c:998 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x59f/0xd10 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1098 [inline] __sysvec_apic_timer_interrupt+0x13f/0x480 arch/x86/kernel/apic/apic.c:1115 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1109 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:should_resched arch/x86/include/asm/preempt.h:104 [inline] RIP: 0010:__local_bh_enable_ip+0x170/0x1f0 kernel/softirq.c:388 Code: 8b e8 d4 a0 68 09 65 66 8b 05 1c 5a af 7e 66 85 c0 75 57 bf 01 00 00 00 e8 cd 82 0a 00 e8 f8 21 3e 00 fb 65 8b 05 e8 59 af 7e <85> c0 75 05 e8 67 2b ac ff 48 c7 44 24 20 0e 36 e0 45 49 c7 04 1c RSP: 0000:ffffc9001590fa60 EFLAGS: 00000286 RAX: 0000000080000000 RBX: 1ffff92002b21f50 RCX: ffffffff816bdd8a RDX: dffffc0000000000 RSI: ffffffff8b0a9860 RDI: ffffffff8b58ade0 RBP: ffffc9001590fb10 R08: ffffffff907b43df R09: 1ffffffff20f687b R10: dffffc0000000000 R11: fffffbfff20f687c R12: dffffc0000000000 R13: 1ffff92002b21f54 R14: ffffc9001590faa0 R15: 0000000000000201 spin_unlock_bh include/linux/spinlock.h:396 [inline] batadv_nc_purge_paths+0x309/0x3a0 net/batman-adv/network-coding.c:471 batadv_nc_worker+0x30f/0x5c0 net/batman-adv/network-coding.c:722 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2600 worker_thread+0xa63/0x1210 kernel/workqueue.c:2751 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 rcu: rcu_preempt kthread starved for 10492 jiffies! g140413 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:25096 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0x1873/0x48f0 kernel/sched/core.c:6710 schedule+0xc3/0x180 kernel/sched/core.c:6786 schedule_timeout+0x1bd/0x310 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x2c6/0x1010 kernel/rcu/tree.c:1609 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1808 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 PID: 26484 Comm: kworker/u4:2 Not tainted 6.5.0-rc7-syzkaller-00104-g4f9e7fabf864 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:296 [inline] RIP: 0010:smp_call_function_many_cond+0x1856/0x27d0 kernel/smp.c:835 Code: 03 84 c0 75 7e 45 8b 2c 24 44 89 ee 83 e6 01 31 ff e8 de 17 0b 00 41 83 e5 01 4c 8b 6c 24 60 75 07 e8 1e 14 0b 00 eb 41 f3 90 <48> b8 00 00 00 00 00 fc ff df 0f b6 04 03 84 c0 75 11 41 f7 04 24 RSP: 0018:ffffc90015727780 EFLAGS: 00000293 RAX: ffffffff8180a437 RBX: 1ffff1101732857d RCX: ffff888047be3b80 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90015727980 R08: ffffffff8180a402 R09: 1ffffffff20f6860 R10: dffffc0000000000 R11: fffffbfff20f6861 R12: ffff8880b9942be8 R13: ffff8880b983d0c8 R14: ffff8880b983d0c0 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002008a030 CR3: 000000000d130000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1003 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1997 [inline] text_poke_bp_batch+0x2d7/0x960 arch/x86/kernel/alternative.c:2207 text_poke_flush arch/x86/kernel/alternative.c:2398 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2405 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146 static_key_enable_cpuslocked+0x132/0x250 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate+0xb5/0x250 mm/kfence/core.c:831 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2600 worker_thread+0xa63/0x1210 kernel/workqueue.c:2751 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304