rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: (detected by 1, t=10502 jiffies, g=8637, q=101 ncpus=2) rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4294956383-4294945881), jiffies_till_next_fqs=1, root ->qsmask 0x0 rcu: rcu_preempt kthread starved for 10502 jiffies! g8637 f0x2 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:5244 [inline] __schedule+0x10e9/0x40d0 kernel/sched/core.c:6561 schedule+0xb9/0x180 kernel/sched/core.c:6637 schedule_timeout+0x15c/0x280 kernel/time/timer.c:1965 rcu_gp_fqs_loop+0x2f2/0x1310 kernel/rcu/tree.c:1706 rcu_gp_kthread+0x95/0x380 kernel/rcu/tree.c:1905 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 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: 4277 Comm: syz-executor154 Not tainted 6.1.138-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline] RIP: 0010:static_key_false include/linux/jump_label.h:207 [inline] RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:147 [inline] RIP: 0010:wrmsr arch/x86/include/asm/msr.h:254 [inline] RIP: 0010:native_apic_msr_write+0x35/0x50 arch/x86/include/asm/apic.h:206 Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 89 f6 31 d2 e9 af 54 f8 02 66 2e 0f 1f 84 00 00 00 00 00 RSP: 0018:ffffc90000007e48 EFLAGS: 00000046 RAX: 000000000004977f RBX: 000000000004977f RCX: 0000000000000838 RDX: 0000000000000000 RSI: 000000000004977f RDI: 0000000000000838 RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1bfd046 R10: fffffbfff1bfd046 R11: 1ffffffff1bfd045 R12: dffffc0000000000 R13: 000000001000431b R14: ffffffff8c3d0b30 R15: dffffc0000000000 FS: 0000555568d3b3c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8b835541a0 CR3: 000000007e057000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: apic_write arch/x86/include/asm/apic.h:394 [inline] lapic_next_event+0x5b/0x70 arch/x86/kernel/apic/apic.c:478 clockevents_program_event+0x1bc/0x310 kernel/time/clockevents.c:334 hrtimer_interrupt+0x4de/0x8d0 kernel/time/hrtimer.c:1830 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1107 [inline] __sysvec_apic_timer_interrupt+0x153/0x5a0 arch/x86/kernel/apic/apic.c:1124 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202 Code: f5 ff 0f 1f 00 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 4e 1b 4a f7 48 89 df e8 a6 e0 4a f7 e8 11 e3 6d f7 fb bf 01 00 00 00 b6 5d 3e f7 65 8b 05 b7 22 e9 75 85 c0 74 02 5b c3 e8 04 34 e7 RSP: 0018:ffffc90003d77bb8 EFLAGS: 00000286 RAX: e8af5a503ed6ae00 RBX: ffff8880789b1280 RCX: e8af5a503ed6ae00 RDX: dffffc0000000000 RSI: ffffffff8a6bfe00 RDI: 0000000000000001 RBP: ffff8880789b1718 R08: dffffc0000000000 R09: ffffed100f136251 R10: ffffed100f136251 R11: 1ffff1100f136250 R12: 1ffff1100f1362e3 R13: 0000000000000021 R14: dffffc0000000000 R15: 0000000000000000 spin_unlock_irq include/linux/spinlock.h:401 [inline] get_signal+0x1163/0x1350 kernel/signal.c:2874 arch_do_signal_or_restart+0xb0/0x1230 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f8b83539c8a Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 73 82 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 d3 82 02 00 8b 44 24 RSP: 002b:00007ffd86bdc880 EFLAGS: 00000293 RAX: fffffffffffffff7 RBX: 000000000000000b RCX: 00007f8b83539c8a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000000a RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 00007f8b8358b1bb R13: 00007f8b8358b191 R14: 00007ffd86bdc8d0 R15: 0000000000000000