rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P4822/1:b..l (detected by 0, t=10502 jiffies, g=13481, q=210 ncpus=2) task:syz.2.346 state:R running task stack:26152 pid:4822 ppid:3550 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5245 [inline] __schedule+0x142d/0x4550 kernel/sched/core.c:6558 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870 irqentry_exit+0x53/0x80 kernel/entry/common.c:439 asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:658 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline] RIP: 0010:write_comp_data kernel/kcov.c:236 [inline] RIP: 0010:__sanitizer_cov_trace_switch+0x5d/0xe0 kernel/kcov.c:340 Code: 92 00 00 00 4c 8b 04 c5 38 0a f0 8a 4c 8b 4c 24 20 65 4c 8b 1d 44 d4 77 7e 31 d2 eb 08 48 ff c2 49 39 d2 74 71 4c 8b 74 d6 10 <65> 8b 05 34 d4 77 7e a9 00 01 ff 00 74 11 a9 00 01 00 00 74 de 41 RSP: 0000:ffffc90005687b98 EFLAGS: 00000202 RAX: 0000000000000002 RBX: 0000000000000003 RCX: 000000000000008b RDX: 0000000000000002 RSI: ffffffff8e5cdde0 RDI: 0000000000000003 RBP: ffff888072bcbc00 R08: 0000000000000005 R09: ffffffff8a814c6c R10: 0000000000000003 R11: ffff888021e40000 R12: 1ffff92000ad0fac R13: ffff888072bcbc1c R14: 0000000000000003 R15: ffffc90005687d60 ma_pivots lib/maple_tree.c:630 [inline] mtree_range_walk+0xec/0x7c0 lib/maple_tree.c:2970 mas_state_walk lib/maple_tree.c:3900 [inline] mt_find+0x72b/0xc60 lib/maple_tree.c:6533 find_vma+0x136/0x1b0 mm/mmap.c:1887 lock_mm_and_find_vma+0x71/0x2e0 mm/memory.c:5369 do_user_addr_fault arch/x86/mm/fault.c:1312 [inline] handle_page_fault arch/x86/mm/fault.c:1431 [inline] exc_page_fault+0x169/0x620 arch/x86/mm/fault.c:1487 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x7f4922c3b4f6 RSP: 002b:00007f4922bfe4b0 EFLAGS: 00010206 RAX: 0000000000d22001 RBX: 00007f4922bfe550 RCX: 0000000000000037 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007f4922bfe5f0 RBP: 0000000000000102 R08: 00007f49191f7000 R09: 0000000000d22000 R10: 0000000000000000 R11: 00007f4922bfe560 R12: 0000000000000001 R13: 00007f4922df5f80 R14: 0000000000000000 R15: 00007f4922bfe5f0 rcu: rcu_preempt kthread starved for 10511 jiffies! g13481 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:26328 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5245 [inline] __schedule+0x142d/0x4550 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4845 Comm: syz.3.350 Not tainted 6.1.99-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 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 2f d9 28 03 66 2e 0f 1f 84 00 00 00 00 00 RSP: 0018:ffffc900001e0e60 EFLAGS: 00000046 RAX: 00000000000599b9 RBX: ffffffff8cb15a20 RCX: 0000000000000838 RDX: 0000000000000000 RSI: 00000000000599b9 RDI: 0000000000000838 RBP: 00000000000599b9 R08: ffffffff817cdd7d R09: fffffbfff1ce702e R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b99271c0 R13: dffffc0000000000 R14: 00000000000599b9 R15: dffffc0000000000 FS: 00007fa8269716c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555570795c8 CR3: 00000000236b2000 CR4: 00000000003526e0 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+0x1c5/0x310 kernel/time/clockevents.c:334 hrtimer_interrupt+0x546/0x980 kernel/time/hrtimer.c:1825 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x156/0x580 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 arch/x86/include/asm/idtentry.h:653 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: f1 bc f5 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 8e 12 d5 f6 48 89 df e8 f6 4f d6 f6 e8 41 dc fb f6 fb bf 01 00 00 00 86 e6 c8 f6 65 8b 05 87 f2 6c 75 85 c0 74 02 5b c3 e8 34 16 6b RSP: 0018:ffffc90005b8fb30 EFLAGS: 00000286 RAX: 9d016b1fe0074200 RBX: ffff88807d911bc0 RCX: ffffffff91c94103 RDX: dffffc0000000000 RSI: ffffffff8aec0240 RDI: 0000000000000001 RBP: ffffc90005b8fc70 R08: dffffc0000000000 R09: ffffed100fb22379 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100fb2240b R13: 000000001c000004 R14: 0000000000000021 R15: ffff88807d912058 spin_unlock_irq include/linux/spinlock.h:401 [inline] get_signal+0x154b/0x17d0 kernel/signal.c:2865 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x6a/0x100 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+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fa825b75bd7 Code: ff ff 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 RSP: 002b:00007fa8269710f8 EFLAGS: 00000246 RAX: 00000000000000ca RBX: 00007fa825d04118 RCX: 00007fa825b75bd9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fa825d04118 RBP: 00007fa825d04110 R08: 00007fa8269716c0 R09: 00007fa8269716c0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa825d0411c R13: 0000000000000004 R14: 00007ffd1c3e0cc0 R15: 00007ffd1c3e0da8