rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P9494/1:b..l rcu: (detected by 1, t=10503 jiffies, g=45533, q=177 ncpus=2) task:syz-executor.4 state:R running task stack:20216 pid:9494 tgid:9494 ppid:9464 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6746 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7068 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:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5758 Code: 2b 00 74 08 4c 89 f7 e8 9a e6 87 00 f6 44 24 61 02 0f 85 85 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc9000d7df340 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff92001afbe74 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcaca20 RDI: ffffffff8c1f8560 RBP: ffffc9000d7df4a0 R08: ffffffff92f32507 R09: 1ffffffff25e64a0 R10: dffffc0000000000 R11: fffffbfff25e64a1 R12: 1ffff92001afbe70 R13: dffffc0000000000 R14: ffffc9000d7df3a0 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:329 [inline] rcu_read_lock include/linux/rcupdate.h:781 [inline] page_ext_get+0x3d/0x2a0 mm/page_ext.c:508 __page_table_check_zero+0x13d/0x4a0 mm/page_table_check.c:140 page_table_check_free include/linux/page_table_check.h:41 [inline] free_pages_prepare mm/page_alloc.c:1142 [inline] free_unref_page_prepare+0x99a/0xab0 mm/page_alloc.c:2347 free_unref_folios+0x185/0xb30 mm/page_alloc.c:2536 folios_put_refs+0x8eb/0xa10 mm/swap.c:1034 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x6d9/0x1df0 mm/shmem.c:1005 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x29b/0xa60 mm/shmem.c:1242 evict+0x2aa/0x630 fs/inode.c:667 __dentry_kill+0x20d/0x630 fs/dcache.c:603 dput+0x19f/0x2b0 fs/dcache.c:845 __fput+0x678/0x8a0 fs/file_table.c:430 task_work_run+0x251/0x310 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x168/0x370 kernel/entry/common.c:218 do_syscall_64+0x102/0x240 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0e34e7dc0b RSP: 002b:00007ffda0782d80 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007f0e34e7dc0b RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000003 RBP: 00007ffda0782e3c R08: 0000000000000000 R09: 00007ffda0782b27 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000032 R13: 000000000004d044 R14: 000000000004c7a8 R15: 0000000000000006 rcu: rcu_preempt kthread starved for 10501 jiffies! g45533 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:26256 pid:16 tgid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6838 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2582 rcu_gp_fqs_loop+0x2df/0x1370 kernel/rcu/tree.c:1663 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1862 kthread+0x2f2/0x390 kernel/kthread.c:388 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: 1 PID: 10470 Comm: syz-executor.5 Not tainted 6.9.0-rc4-syzkaller-00214-g13a2e429f644 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:get_current arch/x86/include/asm/current.h:49 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x8/0x70 kernel/kcov.c:206 Code: 8b 3d 6c f0 3e 0c 48 89 de 5b e9 c3 f1 58 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 <65> 48 8b 0c 25 c0 d3 03 00 65 8b 15 50 d2 6d 7e f7 c2 00 01 ff 00 RSP: 0018:ffffc90012b4f958 EFLAGS: 00000202 RAX: ffffffff818a2abc RBX: 1ffff11017288c6d RCX: 0000000000040000 RDX: ffffc9000becc000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90012b4fb60 R08: ffffffff818a2a8b R09: 1ffffffff25e64a0 R10: dffffc0000000000 R11: fffffbfff25e64a1 R12: dffffc0000000000 R13: ffff8880b9446368 R14: ffff8880b953f7c0 R15: 0000000000000000 FS: 00007ffbf2aab6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9ad27ffe00 CR3: 0000000052434000 CR4: 0000000000350ef0 Call Trace: csd_lock_wait kernel/smp.c:311 [inline] smp_call_function_many_cond+0x18ac/0x2a00 kernel/smp.c:855 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1023 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:2086 [inline] text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2296 text_poke_flush arch/x86/kernel/alternative.c:2487 [inline] text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2494 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 static_key_slow_inc_cpuslocked+0xb3/0x150 kernel/jump_label.c:165 static_key_slow_inc+0x1a/0x30 kernel/jump_label.c:186 bpf_enable_runtime_stats kernel/bpf/syscall.c:5491 [inline] bpf_enable_stats+0xfe/0x140 kernel/bpf/syscall.c:5510 __sys_bpf+0x75b/0x810 kernel/bpf/syscall.c:5743 __do_sys_bpf kernel/bpf/syscall.c:5767 [inline] __se_sys_bpf kernel/bpf/syscall.c:5765 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5765 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ffbf1c7dea9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffbf2aab0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007ffbf1dac050 RCX: 00007ffbf1c7dea9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000020 RBP: 00007ffbf1cca4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007ffbf1dac050 R15: 00007ffe3b2da338