rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=c5dc/1/0x4000000000000000 softirq=66277/66278 fqs=3 (detected by 0, t=10506 jiffies, g=98049, q=77 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3640 Comm: syz-executor.0 Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:check_preemption_disabled+0x4/0x120 lib/smp_processor_id.c:13 Code: 60 69 bb 8c 48 89 de e8 ba c1 35 fa e9 64 ff ff ff cc cc cc cc cc 48 c7 c7 60 a7 e9 8a 48 c7 c6 a0 a7 e9 8a eb 00 41 57 41 56 <41> 54 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 65 RSP: 0018:ffffc900001e0b08 EFLAGS: 00000082 RAX: 0000000000000001 RBX: ffffc900001e0b80 RCX: ffff888020ce62f0 RDX: dffffc0000000000 RSI: ffffffff8a8d4160 RDI: ffffffff8ae9a7c0 RBP: ffffc900001e0c68 R08: dffffc0000000000 R09: fffffbfff1faa40a R10: fffffbfff1faa40a R11: 1ffffffff1faa409 R12: dffffc0000000000 R13: 1ffff9200003c16c R14: ffff8880b9b2a498 R15: 0000000000000046 FS: 00005555573da400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200bd038 CR3: 000000002d094000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_finish kernel/locking/lockdep.c:466 [inline] lock_acquire+0x1b7/0x400 kernel/locking/lockdep.c:5668 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:170 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x546/0xa60 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x3a6/0xfd0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0xf9/0x280 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 RIP: 0010:finish_lock_switch+0x90/0x100 kernel/sched/core.c:4939 Code: 45 31 c9 68 66 75 5e 81 e8 8d 96 09 00 48 83 c4 08 4c 89 ff e8 61 c5 fe ff eb 32 4c 89 ff e8 c7 ae d6 08 e8 a2 57 30 00 fb 5b <41> 5c 41 5d 41 5e 41 5f c3 44 89 f1 80 e1 07 80 c1 03 38 c1 7c 87 RSP: 0018:ffffc900030dfa78 EFLAGS: 00000282 RAX: 8930e3eaa369f300 RBX: ffff888020ce1db4 RCX: ffffffff91549f03 RDX: dffffc0000000000 RSI: ffffffff8a8d2fe0 RDI: ffffffff8ae9a7c0 RBP: ffffc900030dfaf0 R08: dffffc0000000000 R09: ffffed1017347371 R10: ffffed1017347371 R11: 1ffff11017347370 R12: dffffc0000000000 R13: 1ffff1101736751b R14: ffff8880b9b3a8d8 R15: ffff8880b9a39b80 finish_task_switch+0x140/0x610 kernel/sched/core.c:5056 context_switch kernel/sched/core.c:5181 [inline] __schedule+0x95f/0xe20 kernel/sched/core.c:6490 schedule+0xcb/0x190 kernel/sched/core.c:6566 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0x1c0/0x7d0 kernel/time/hrtimer.c:2044 hrtimer_nanosleep+0x24d/0x490 kernel/time/hrtimer.c:2097 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1276 [inline] __se_sys_clock_nanosleep kernel/time/posix-timers.c:1254 [inline] __x64_sys_clock_nanosleep+0x360/0x3f0 kernel/time/posix-timers.c:1254 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd98faadf31 Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 aa e7 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 e3 e7 ff ff 48 8b 04 24 eb 97 66 2e 0f 1f RSP: 002b:00007fff3ddc3fe0 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 0000000000000c17 RCX: 00007fd98faadf31 RDX: 00007fff3ddc4020 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fff3ddc40ac R08: 0000000000000000 R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032 R13: 00000000000ecac8 R14: 0000000000000013 R15: 00007fff3ddc4110 rcu: rcu_preempt kthread timer wakeup didn't happen for 10489 jiffies! g98049 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=0 timer-softirq=57255 rcu: rcu_preempt kthread starved for 10490 jiffies! g98049 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:26456 pid: 16 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5178 [inline] __schedule+0x957/0xe20 kernel/sched/core.c:6490 schedule+0xcb/0x190 kernel/sched/core.c:6566 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935 rcu_gp_fqs_loop+0x309/0x1070 kernel/rcu/tree.c:1657 rcu_gp_kthread+0xa5/0x390 kernel/rcu/tree.c:1854 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 rcu: Stack dump where RCU GP kthread last ran: NMI backtrace for cpu 0 CPU: 0 PID: 14534 Comm: kworker/u4:18 Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: events_unbound toggle_allocation_gate Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x473/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x168/0x280 lib/nmi_backtrace.c:62 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline] rcu_check_gp_kthread_starvation+0x1da/0x250 kernel/rcu/tree_stall.h:514 print_other_cpu_stall+0x140a/0x1560 kernel/rcu/tree_stall.h:619 check_cpu_stall kernel/rcu/tree_stall.h:762 [inline] rcu_pending kernel/rcu/tree.c:3660 [inline] rcu_sched_clock_irq+0xa1a/0x1930 kernel/rcu/tree.c:2342 update_process_times+0x148/0x1b0 kernel/time/timer.c:1839 tick_sched_handle kernel/time/tick-sched.c:243 [inline] tick_sched_timer+0x377/0x540 kernel/time/tick-sched.c:1480 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x3a6/0xfd0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0xf9/0x280 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 RIP: 0010:csd_lock_wait kernel/smp.c:414 [inline] RIP: 0010:smp_call_function_many_cond+0xf12/0x1500 kernel/smp.c:988 Code: 8b 3c 24 44 89 fe 83 e6 01 31 ff e8 38 ee 0a 00 41 83 e7 01 49 bf 00 00 00 00 00 fc ff df 75 08 e8 03 ea 0a 00 eb 46 90 f3 90 <42> 0f b6 04 3b 84 c0 75 11 41 f7 04 24 01 00 00 00 74 2b e8 e6 e9 RSP: 0018:ffffc9000a01f780 EFLAGS: 00000293 RAX: ffffffff817d36ca RBX: 1ffff11017367d39 RCX: ffff888026e50000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000a01f940 R08: ffffffff817d3698 R09: fffffbfff1faa409 R10: fffffbfff1faa409 R11: 1ffffffff1faa408 R12: ffff8880b9b3e9c8 R13: 1ffff11017347588 R14: 0000000000000001 R15: dffffc0000000000 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1154 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1302 [inline] text_poke_bp_batch+0x324/0x970 arch/x86/kernel/alternative.c:1490 text_poke_flush arch/x86/kernel/alternative.c:1660 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1667 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 static_key_enable_cpuslocked+0x129/0x250 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate+0xbf/0x470 mm/kfence/core.c:811 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30