rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=3794/1/0x4000000000000000 softirq=40547/40554 fqs=0 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P10961/1:b..l P11013/1:b..l rcu: (detected by 0, t=10505 jiffies, g=39949, q=509 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 11014 Comm: syz.4.1876 Not tainted 6.12.0-rc3-syzkaller-00044-g2f87d0916ce0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:19 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:87 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:123 [inline] RIP: 0010:__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] RIP: 0010:_raw_spin_lock_irqsave+0x75/0x120 kernel/locking/spinlock.c:162 Code: c7 44 24 10 10 00 d0 8b 49 89 e5 49 c1 ed 03 48 b8 f1 f1 f1 f1 00 f3 f3 f3 4b 89 44 3d 00 4c 89 e3 48 c1 eb 03 42 80 3c 3b 00 <74> 08 4c 89 e7 e8 f1 9a 2e f6 48 c7 44 24 20 00 00 00 00 9c 8f 44 RSP: 0018:ffffc90000a18ba0 EFLAGS: 00000046 RAX: f3f3f300f1f1f1f1 RBX: 1ffff92000143178 RCX: 00000000000096f0 RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffffffff9a5edf38 RBP: ffffc90000a18c30 R08: ffffc90000a18c8f R09: ffffc90000a18c80 R10: dffffc0000000000 R11: fffff52000143192 R12: ffffc90000a18bc0 R13: 1ffff92000143174 R14: ffffffff9a5edf38 R15: dffffc0000000000 FS: 00007fcfaffb66c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcfaffb5f98 CR3: 00000000772f2000 CR4: 0000000000350ef0 Call Trace: debug_object_deactivate+0x158/0x390 lib/debugobjects.c:763 debug_hrtimer_deactivate kernel/time/hrtimer.c:428 [inline] debug_deactivate+0x1b/0x220 kernel/time/hrtimer.c:484 __run_hrtimer kernel/time/hrtimer.c:1659 [inline] __hrtimer_run_queues+0x305/0xd50 kernel/time/hrtimer.c:1755 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1817 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1026 [inline] __sysvec_apic_timer_interrupt+0x112/0x3f0 arch/x86/kernel/apic/apic.c:1043 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1037 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1037 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xd8/0x140 kernel/locking/spinlock.c:194 Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 9e 96 2e f6 f6 44 24 21 02 75 52 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 a3 39 93 f5 65 8b 05 b4 d3 33 74 85 c0 74 43 48 c7 04 24 0e 36 RSP: 0018:ffffc9000428f8c0 EFLAGS: 00000206 RAX: c9b2c23c7fe08e00 RBX: 1ffff92000851f1c RCX: ffffffff9a3d0903 RDX: dffffc0000000000 RSI: ffffffff8c0acac0 RDI: 0000000000000001 RBP: ffffc9000428f958 R08: ffffffff901cfdef R09: 1ffffffff2039fbd R10: dffffc0000000000 R11: fffffbfff2039fbe R12: dffffc0000000000 R13: 1ffff92000851f18 R14: ffffc9000428f8e0 R15: 0000000000000246 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] timerfd_clock_was_set+0x1e0/0x2f0 fs/timerfd.c:113 clock_was_set+0x78e/0x810 kernel/time/hrtimer.c:978 timekeeping_inject_offset+0x4e8/0x580 kernel/time/timekeeping.c:1524 do_adjtimex+0x51d/0xae0 kernel/time/timekeeping.c:2575 do_clock_adjtime kernel/time/posix-timers.c:1174 [inline] __do_sys_clock_adjtime kernel/time/posix-timers.c:1186 [inline] __se_sys_clock_adjtime kernel/time/posix-timers.c:1177 [inline] __x64_sys_clock_adjtime+0x1e3/0x290 kernel/time/posix-timers.c:1177 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcfaf17dff9 Code: 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 01 48 RSP: 002b:00007fcfaffb6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000131 RAX: ffffffffffffffda RBX: 00007fcfaf336058 RCX: 00007fcfaf17dff9 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000000 RBP: 00007fcfaf1f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcfaf336058 R15: 00007ffd6ab330b8 task:dhcpcd-run-hook state:R running task stack:26816 pid:11013 tgid:11013 ppid:11006 flags:0x00000002 Call Trace: context_switch kernel/sched/core.c:5322 [inline] __schedule+0x1895/0x4b30 kernel/sched/core.c:6682 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6861 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6885 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_unlock+0x3e/0x50 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] do_wp_page+0x2216/0x52d0 mm/memory.c:3740 handle_pte_fault+0x10e3/0x6800 mm/memory.c:5767 __handle_mm_fault mm/memory.c:5894 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6062 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x459/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7fb155143260 RSP: 002b:00007fff03594200 EFLAGS: 00010206 RAX: 0000000000000020 RBX: 0000000000000030 RCX: 00000000000002c0 RDX: 0000561632ba8d20 RSI: 0000561632ba8d40 RDI: 0000561632ba7010 RBP: 00007fb15526caa0 R08: 00007fb15526cb00 R09: 00007fb15526cb20 R10: 0000000000000011 R11: 0000000000000000 R12: 0000000000000003 R13: 0000000000000001 R14: 00007fb15526cb00 R15: 0000000000000030 task:syz.0.1867 state:R running task stack:24128 pid:10961 tgid:10960 ppid:10257 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5322 [inline] __schedule+0x1895/0x4b30 kernel/sched/core.c:6682 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7004 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:find_lock_entries+0x4f9/0xef0 mm/filemap.c:2129 Code: df 48 8b 4c 24 48 80 3c 01 00 74 08 4c 89 ff e8 8d 77 31 00 4d 89 27 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 40 80 3c 01 00 <48> 8b 54 24 08 74 0f 48 8b 7c 24 30 e8 76 76 31 00 48 8b 54 24 08 RSP: 0018:ffffc900043cf620 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff92000879ed9 RDX: ffffc90012826000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900043cf770 R08: ffffffff81cd120e R09: 1ffffd4000324db8 R10: dffffc0000000000 R11: fffff94000324db9 R12: 0000000000000b82 R13: 0000000000000001 R14: ffffea0001926dc0 R15: ffffc900043cfac0 shmem_undo_range+0x2c2/0x1cf0 mm/shmem.c:1014 shmem_truncate_range mm/shmem.c:1144 [inline] shmem_evict_inode+0x29b/0xa80 mm/shmem.c:1272 evict+0x4ea/0x9b0 fs/inode.c:725 __dentry_kill+0x20d/0x630 fs/dcache.c:615 dput+0x19f/0x2b0 fs/dcache.c:857 __fput+0x5d2/0x880 fs/file_table.c:439 __do_sys_close fs/open.c:1565 [inline] __se_sys_close fs/open.c:1550 [inline] __x64_sys_close+0x7f/0x110 fs/open.c:1550 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faa7997cc8a RSP: 002b:00007faa7a7c4e00 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007faa7997cc8a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000002 R08: 0000000000000000 R09: 000000000000559d R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003 R13: 00007faa7a7c4ef0 R14: 00007faa7a7c4eb0 R15: 00007faa6f000000 rcu: rcu_preempt kthread starved for 10505 jiffies! g39949 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:25952 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5322 [inline] __schedule+0x1895/0x4b30 kernel/sched/core.c:6682 __schedule_loop kernel/sched/core.c:6759 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6774 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 UID: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.12.0-rc3-syzkaller-00044-g2f87d0916ce0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline] RIP: 0010:smp_call_function_many_cond+0x19f8/0x2ca0 kernel/smp.c:884 Code: 89 e6 83 e6 01 31 ff e8 56 f3 0b 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 01 ef 0b 00 eb 38 f3 90 42 0f b6 04 23 <84> c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 e5 ee 0b 00 eb e4 44 RSP: 0018:ffffc900001076e0 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 1ffff110170e8919 RCX: ffff88801c2a3c00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900001078e0 R08: ffffffff8188f83a R09: 1ffffffff2859300 R10: dffffc0000000000 R11: fffffbfff2859301 R12: dffffc0000000000 R13: ffff8880b87448c8 R14: ffff8880b863fc80 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd0a9db3b30 CR3: 000000000e734000 CR4: 0000000000350ef0 Call Trace: on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1051 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:2085 [inline] text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2295 text_poke_flush arch/x86/kernel/alternative.c:2486 [inline] text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2493 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 static_key_enable_cpuslocked+0x136/0x260 kernel/jump_label.c:210 static_key_enable+0x1a/0x20 kernel/jump_label.c:223 toggle_allocation_gate+0xbc/0x260 mm/kfence/core.c:849 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa65/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 vkms_vblank_simulate: vblank timer overrun