rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P3849/1:b..l P4347/1:b..l (detected by 0, t=10502 jiffies, g=11113, q=85 ncpus=2) task:dhcpcd-run-hook state:R running task stack:23880 pid:4347 ppid:3305 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6561 preempt_schedule_common+0x83/0xd0 kernel/sched/core.c:6730 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6754 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:34 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_unlock+0x36/0x40 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] filemap_map_pages+0xffa/0x12c0 mm/filemap.c:3470 do_fault_around mm/memory.c:4581 [inline] do_read_fault mm/memory.c:4607 [inline] do_fault mm/memory.c:4741 [inline] handle_pte_fault mm/memory.c:5013 [inline] __handle_mm_fault mm/memory.c:5155 [inline] handle_mm_fault+0x33e2/0x5340 mm/memory.c:5276 do_user_addr_fault arch/x86/mm/fault.c:1340 [inline] handle_page_fault arch/x86/mm/fault.c:1431 [inline] exc_page_fault+0x26f/0x620 arch/x86/mm/fault.c:1487 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x7fdb9b7599d3 RSP: 002b:00007ffc25707718 EFLAGS: 00010202 RAX: 0000003000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 00007fdb9b82ed22 RSI: 00007fdb9b9bf6ed RDI: 0000000000000001 RBP: 00007ffc257079e0 R08: 000000000000ffff R09: 000000000000000d R10: 00007fdb9b728b74 R11: 0000000000000206 R12: 0000000000000000 R13: 00000030178dc78a R14: 0000000000000000 R15: 00007fdb9b9cd2a0 task:syz-executor state:R running task stack:20920 pid:3849 ppid:3826 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6561 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6873 irqentry_exit+0x53/0x80 kernel/entry/common.c:439 asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:658 RIP: 0010:__sanitizer_cov_trace_switch+0x0/0xe0 kernel/kcov.c:317 Code: 39 c8 77 1e 49 ff c2 4c 89 12 48 c7 44 11 08 07 00 00 00 48 89 7c 11 10 48 89 74 11 18 4c 89 44 11 20 c3 0f 1f 80 00 00 00 00 <41> 57 41 56 41 54 53 48 8b 46 08 48 83 c0 f8 48 c1 c0 3d 48 83 f8 RSP: 0018:ffffc90004297558 EFLAGS: 00000286 RAX: ffffea0001c37440 RBX: 0000000000000001 RCX: ffff8880221bd940 RDX: 0000000000000000 RSI: ffffffff8d3ca380 RDI: ffffea0001c37440 RBP: ffffc900042976b0 R08: ffffffff8aa10271 R09: ffffffff8aa175ec R10: 0000000000000002 R11: ffff8880221bd940 R12: ffffc90004297600 R13: fffffffffffffffe R14: ffffea0001c37440 R15: dffffc0000000000 xas_retry include/linux/xarray.h:1506 [inline] find_get_entry mm/filemap.c:2007 [inline] find_lock_entries+0x25c/0xda0 mm/filemap.c:2095 shmem_undo_range+0x294/0x2390 mm/shmem.c:925 shmem_truncate_range mm/shmem.c:1062 [inline] shmem_evict_inode+0x265/0xa60 mm/shmem.c:1171 evict+0x2a4/0x620 fs/inode.c:666 __dentry_kill+0x436/0x650 fs/dcache.c:611 dentry_kill+0xbb/0x290 dput+0xfb/0x1d0 fs/dcache.c:918 __fput+0x62e/0x8d0 fs/file_table.c:328 task_work_run+0x246/0x300 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa73/0x26a0 kernel/exit.c:871 do_group_exit+0x202/0x2b0 kernel/exit.c:1021 __do_sys_exit_group kernel/exit.c:1032 [inline] __se_sys_exit_group kernel/exit.c:1030 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1030 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f0858f779f9 RSP: 002b:00007ffd4040a028 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007f0858fe57fe RCX: 00007f0858f779f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000016 R08: 00007ffd40407dc6 R09: 00007ffd4040b2e0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd4040b2e0 R13: 00007f0858fe578c R14: 0000555556b5a4a8 R15: 00007ffd4040f670 rcu: rcu_preempt kthread starved for 10560 jiffies! g11113 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:25528 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6561 schedule+0xbf/0x180 kernel/sched/core.c:6637 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:295 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: 4339 Comm: syz.4.97 Not tainted 6.1.102-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/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 1f ff 28 03 66 2e 0f 1f 84 00 00 00 00 00 RSP: 0018:ffffc900001e0e60 EFLAGS: 00000046 RAX: 000000000006ae3c RBX: ffffffff8cd87a20 RCX: 0000000000000838 RDX: 0000000000000000 RSI: 000000000006ae3c RDI: 0000000000000838 RBP: 000000000006ae3c R08: ffffffff817ce29d R09: fffffbfff1d337ae R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b99271c0 R13: dffffc0000000000 R14: 000000000006ae3c R15: dffffc0000000000 FS: 000055555734b500(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f303ff8 CR3: 0000000066876000 CR4: 00000000003506e0 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: a1 9d f5 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 9e 55 bb f6 48 89 df e8 06 93 bc f6 e8 91 21 e2 f6 fb bf 01 00 00 00 56 26 af f6 65 8b 05 77 32 53 75 85 c0 74 02 5b c3 e8 24 56 51 RSP: 0018:ffffc90003dbfb30 EFLAGS: 00000286 RAX: 46748b75da03f000 RBX: ffff888077e4d340 RCX: ffffffff91f31103 RDX: dffffc0000000000 RSI: ffffffff8b0c0240 RDI: 0000000000000001 RBP: ffffc90003dbfc70 R08: dffffc0000000000 R09: ffffed100efc9a69 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100efc9afb R13: 000000001c000004 R14: 0000000000000021 R15: ffff888077e4d7d8 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:0x7fdc0064f1c4 Code: 0f 82 b9 00 00 00 48 39 f2 72 6e 41 0f 11 0c 24 48 8b 77 f8 48 89 f8 48 89 eb eb 12 66 2e 0f 1f 84 00 00 00 00 00 48 8b 4b 08 <48> 83 c3 08 48 39 d1 72 f3 48 83 e8 08 48 39 f2 73 17 66 2e 0f 1f RSP: 002b:00007ffc819379c0 EFLAGS: 00000297 RAX: 00007fdbffc04c00 RBX: 00007fdbffc03540 RCX: ffffffff8a9f396c RDX: ffffffff8a9f396c RSI: ffffffff8a9f3db3 RDI: 00007fdbffc04d98 RBP: 00007fdbffc030f8 R08: 00007fdbffc03f40 R09: 00007fdc008f2000 R10: 000000008132a67a R11: 000000000000001b R12: 00007fdbffc030f0 R13: 0000000000000011 R14: 00007fdbffbfd008 R15: 0000000000015eb3