rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=3474/1/0x4000000000000000 softirq=176411/176413 fqs=2 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P9433/1:b..l rcu: (detected by 0, t=10506 jiffies, g=216169, q=119 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 14773 Comm: syz-executor.5 Not tainted 6.4.0-rc1-syzkaller-00001-gba0ad6ed89fd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:mark_lock.part.0+0x6f/0x1970 kernel/locking/lockdep.c:4610 Code: c7 44 24 48 40 5f 65 81 c7 00 f1 f1 f1 f1 c7 40 04 f1 f1 04 f2 c7 40 08 00 f2 f2 f2 c7 40 0c 00 f2 f2 f2 c7 40 14 00 00 00 f3 40 18 f3 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 84 24 30 01 RSP: 0018:ffffc900001e0970 EFLAGS: 00000016 RAX: fffff5200003c135 RBX: 1ffff9200003c135 RCX: 1ffffffff22a502e RDX: dffffc0000000000 RSI: ffff888036f16458 RDI: ffff888036f15940 RBP: 0000000000000040 R08: 0000000000000000 R09: ffffffff91527d07 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888036f16458 R13: 0000000000000008 R14: 0000000000000001 R15: dffffc0000000000 FS: 00007fe907696700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe9069ad988 CR3: 0000000051fff000 CR4: 0000000000350ee0 Call Trace: mark_lock kernel/locking/lockdep.c:4615 [inline] mark_usage kernel/locking/lockdep.c:4572 [inline] __lock_acquire+0x8c4/0x5df0 kernel/locking/lockdep.c:5028 lock_acquire kernel/locking/lockdep.c:5691 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5656 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162 debug_object_deactivate lib/debugobjects.c:763 [inline] debug_object_deactivate+0x105/0x300 lib/debugobjects.c:751 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline] debug_deactivate kernel/time/hrtimer.c:481 [inline] __run_hrtimer kernel/time/hrtimer.c:1653 [inline] __hrtimer_run_queues+0x3f3/0xbe0 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x320/0x7b0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x14a/0x430 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x92/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x3c/0x70 kernel/locking/spinlock.c:194 Code: 74 24 10 e8 96 34 53 f7 48 89 ef e8 be a2 53 f7 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 0f 77 45 f7 65 8b 05 30 09 f1 75 85 c0 74 0a 5b 5d c3 e8 ac 2e RSP: 0018:ffffc90006327cb0 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff22a50be RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff8880b982b840 R08: 0000000000000001 R09: ffffffff91527d07 R10: 0000000000000001 R11: 0000000000000002 R12: 0000000000000004 R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000 clock_was_set+0x610/0x810 kernel/time/hrtimer.c:970 do_settimeofday64 kernel/time/timekeeping.c:1345 [inline] do_settimeofday64+0x3c4/0x5d0 kernel/time/timekeeping.c:1312 do_sys_settimeofday64 kernel/time/time.c:195 [inline] do_sys_settimeofday64+0x1e2/0x270 kernel/time/time.c:169 __do_sys_clock_settime kernel/time/posix-timers.c:1092 [inline] __se_sys_clock_settime kernel/time/posix-timers.c:1080 [inline] __x64_sys_clock_settime+0x1a5/0x280 kernel/time/posix-timers.c:1080 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe90688c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe907696168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3 RAX: ffffffffffffffda RBX: 00007fe9069abf80 RCX: 00007fe90688c169 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0100000000000000 RBP: 00007fe9068e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe9f999abf R14: 00007fe907696300 R15: 0000000000022000 task:kworker/u4:22 state:R running task stack:23320 pid:9433 ppid:2 flags:0x00004000 Workqueue: bat_events batadv_nc_worker Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6669 preempt_schedule_irq+0x52/0x90 kernel/sched/core.c:6981 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_lock_acquire include/linux/rcupdate.h:327 [inline] RIP: 0010:rcu_read_lock include/linux/rcupdate.h:773 [inline] RIP: 0010:batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] RIP: 0010:batadv_nc_worker+0x120/0xfe0 net/batman-adv/network-coding.c:719 Code: 00 48 8b 4c 24 40 8b 44 24 3c 48 8b 11 48 8d 1c c2 e8 f4 3a 93 f7 e8 3f 0e aa f7 45 31 c9 45 31 c0 31 d2 31 f6 b9 02 00 00 00 <68> 87 36 da 89 48 c7 c7 40 90 79 8c e8 3f b8 8b f7 e8 6a 07 35 00 RSP: 0018:ffffc900065c7c90 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88802c919928 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888078d35d7c RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000400 R11: 0000000000000000 R12: ffffc900065c7db0 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000325 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 rcu: rcu_preempt kthread starved for 10495 jiffies! g216169 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:27840 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 schedule_timeout+0x14e/0x2b0 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1609 rcu_gp_kthread+0x23a/0x360 kernel/rcu/tree.c:1808 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 PID: 28113 Comm: kworker/u4:5 Not tainted 6.4.0-rc1-syzkaller-00001-gba0ad6ed89fd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:285 [inline] RIP: 0010:smp_call_function_many_cond+0x684/0x15a0 kernel/smp.c:828 Code: 0b 00 85 ed 74 48 48 8b 44 24 08 49 89 c4 83 e0 07 49 c1 ec 03 48 89 c5 4d 01 f4 83 c5 03 e8 b3 40 0b 00 f3 90 41 0f b6 04 24 <40> 38 c5 7c 08 84 c0 0f 85 ad 0c 00 00 8b 43 08 31 ff 83 e0 01 41 RSP: 0018:ffffc9000572f948 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9943220 RCX: 0000000000000000 RDX: ffff888042141dc0 RSI: ffffffff8179042d RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffed1017328645 R13: 0000000000000001 R14: dffffc0000000000 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002015c000 CR3: 000000000c571000 CR4: 0000000000350ef0 Call Trace: on_each_cpu_cond_mask+0x5a/0xa0 kernel/smp.c:996 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1770 [inline] text_poke_bp_batch+0x237/0x770 arch/x86/kernel/alternative.c:1970 text_poke_flush arch/x86/kernel/alternative.c:2161 [inline] text_poke_flush arch/x86/kernel/alternative.c:2158 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2168 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:829 static_key_enable_cpuslocked+0x1b5/0x270 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate mm/kfence/core.c:831 [inline] toggle_allocation_gate+0xf8/0x230 mm/kfence/core.c:823 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308