rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P10591/1:b..l (detected by 1, t=10502 jiffies, g=38789, q=134 ncpus=2) task:syz-executor.2 state:R running task stack:27568 pid:10591 ppid:3773 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5197 [inline] __schedule+0xae5/0x52c0 kernel/sched/core.c:6509 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:6821 irqentry_exit+0x31/0x80 kernel/entry/common.c:428 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:unwind_done arch/x86/include/asm/unwind.h:50 [inline] RIP: 0010:unwind_get_return_address+0x0/0x90 arch/x86/kernel/unwind_orc.c:320 Code: 89 34 24 e8 32 e0 92 00 48 8b 34 24 e9 3c ff ff ff e8 04 e0 92 00 eb b4 e8 fd df 92 00 eb 80 66 66 2e 0f 1f 84 00 00 00 00 00 <48> b8 00 00 00 00 00 fc ff df 48 89 fa 55 48 c1 ea 03 53 48 89 fb RSP: 0018:ffffc900047d7250 EFLAGS: 00000202 RAX: 0000000000000001 RBX: ffffffff816aeb10 RCX: 0000000000000000 RDX: 0000000080000000 RSI: ffffc900047d7688 RDI: ffffc900047d7258 RBP: ffffc900047d72e0 R08: ffffffff8e673f86 R09: ffffc900047d728c R10: fffff520008fae56 R11: ffffc900047d76b0 R12: ffffc900047d7310 R13: 0000000000000000 R14: ffff888022369d40 R15: 000000735a1d5fb4 arch_stack_walk+0x93/0xe0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:122 save_stack+0x151/0x1e0 mm/page_owner.c:127 __reset_page_owner+0x59/0x180 mm/page_owner.c:148 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1451 [inline] free_pcp_prepare+0x5e4/0xd20 mm/page_alloc.c:1501 free_unref_page_prepare mm/page_alloc.c:3382 [inline] free_unref_page_list+0x16f/0xb90 mm/page_alloc.c:3524 release_pages+0xc6c/0x1590 mm/swap.c:1056 __pagevec_release+0x77/0x100 mm/swap.c:1076 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] shmem_undo_range+0x88f/0x1500 mm/shmem.c:956 shmem_truncate_range mm/shmem.c:1044 [inline] shmem_evict_inode+0x3c6/0xc20 mm/shmem.c:1142 evict+0x2ed/0x6b0 fs/inode.c:666 iput_final fs/inode.c:1749 [inline] iput.part.0+0x55d/0x810 fs/inode.c:1775 iput+0x58/0x70 fs/inode.c:1765 dentry_unlink_inode+0x2b1/0x460 fs/dcache.c:401 __dentry_kill+0x3c0/0x640 fs/dcache.c:607 dentry_kill fs/dcache.c:745 [inline] dput+0x64d/0xdb0 fs/dcache.c:913 __fput+0x3cc/0xa90 fs/file_table.c:328 task_work_run+0x16b/0x270 kernel/task_work.c:179 get_signal+0x1c3/0x2610 kernel/signal.c:2635 arch_do_signal_or_restart+0x82/0x2300 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop kernel/entry/common.c:166 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9994a89279 RSP: 002b:00007f9995bf7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: 00000000004b1000 RBX: 00007f9994b9bf80 RCX: 00007f9994a89279 RDX: 000000000f215bc1 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007f9994ae32e9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdaf327dbf R14: 00007f9995bf7300 R15: 0000000000022000 rcu: rcu_preempt kthread starved for 10490 jiffies! g38789 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:29280 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5197 [inline] __schedule+0xae5/0x52c0 kernel/sched/core.c:6509 schedule+0xda/0x1b0 kernel/sched/core.c:6585 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1658 rcu_gp_kthread+0x236/0x360 kernel/rcu/tree.c:1857 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 rcu: Stack dump where RCU GP kthread last ran: CPU: 1 PID: 41 Comm: kworker/u4:2 Not tainted 6.0.0-rc3-next-20220901-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:413 [inline] RIP: 0010:smp_call_function_many_cond+0x5c3/0x1430 kernel/smp.c:987 Code: 89 ee e8 50 ad 0a 00 85 ed 74 48 48 8b 44 24 08 49 89 c4 83 e0 07 49 c1 ec 03 48 89 c5 4d 01 f4 83 c5 03 e8 5f b0 0a 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 b5 0b 00 00 8b 43 08 31 RSP: 0018:ffffc90000b27948 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9a42800 RCX: 0000000000000000 RDX: ffff888017529d40 RSI: ffffffff817175c1 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000007 R12: ffffed1017348501 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e922000 CR3: 000000000bc8e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x56/0xa0 kernel/smp.c:1153 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1302 [inline] text_poke_bp_batch+0x233/0x6c0 arch/x86/kernel/alternative.c:1490 text_poke_flush arch/x86/kernel/alternative.c:1660 [inline] text_poke_flush arch/x86/kernel/alternative.c:1657 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1667 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:801 static_key_enable_cpuslocked+0x1b1/0x260 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate mm/kfence/core.c:811 [inline] toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:803 process_one_work+0x991/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306