rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 ticks this GP) idle=08d4/1/0x4000000000000000 softirq=132595/132614 fqs=4 rcu: (detected by 1, t=10502 jiffies, g=117457, q=317 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 24718 Comm: syz.7.5449 Not tainted 6.13.0-syzkaller-06167-g0afd22092df4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:task_wait_context kernel/locking/lockdep.c:4784 [inline] RIP: 0010:task_wait_context kernel/locking/lockdep.c:4774 [inline] RIP: 0010:check_wait_context kernel/locking/lockdep.c:4873 [inline] RIP: 0010:__lock_acquire+0x5c0/0x3c40 kernel/locking/lockdep.c:5178 Code: 8b 95 b0 0a 00 00 85 d2 0f 85 66 0d 00 00 49 8d bd c8 0a 00 00 48 ba 00 00 00 00 00 fc ff df 48 89 fe 48 c1 ee 03 0f b6 14 16 <84> d2 74 09 80 fa 03 0f 8e c7 35 00 00 45 8b b5 c8 0a 00 00 45 85 RSP: 0018:ffffc90000007b48 EFLAGS: 00000806 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffff8880269d5360 RDX: 0000000000000000 RSI: 1ffff11004d3aa69 RDI: ffff8880269d5348 RBP: dffffc0000000000 R08: 0000000000000001 R09: fffffbfff2dd6f98 R10: ffffffff96eb7cc7 R11: 0000000000000001 R12: ffff8880269d5381 R13: ffff8880269d4880 R14: 0000000000000040 R15: ffff8880269d5388 FS: 00007f3b9c7a16c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007faa80d7ac78 CR3: 0000000068870000 CR4: 00000000003526f0 DR0: 0000000000000007 DR1: 000000000000000b DR2: 0000000000000000 DR3: 0000000000000010 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5851 rcu_lock_acquire include/linux/rcupdate.h:337 [inline] rcu_read_lock include/linux/rcupdate.h:849 [inline] advance_sched+0x67f/0xc60 net/sched/sch_taprio.c:985 __run_hrtimer kernel/time/hrtimer.c:1738 [inline] __hrtimer_run_queues+0x20a/0xae0 kernel/time/hrtimer.c:1802 hrtimer_interrupt+0x392/0x8e0 kernel/time/hrtimer.c:1864 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x10f/0x400 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_acquire.part.0+0x155/0x380 kernel/locking/lockdep.c:5816 Code: b8 ff ff ff ff 65 0f c1 05 70 ca 6b 7e 83 f8 01 0f 85 d0 01 00 00 9c 58 f6 c4 02 0f 85 e5 01 00 00 48 85 ed 0f 85 b6 01 00 00 <48> b8 00 00 00 00 00 fc ff df 48 01 c3 48 c7 03 00 00 00 00 48 c7 RSP: 0018:ffffc9000520f5c0 EFLAGS: 00000206 RAX: 0000000000000046 RBX: 1ffff92000a41eb9 RCX: 000000008526bc4e RDX: 0000000000000001 RSI: ffffffff8b6cdb40 RDI: ffffffff8bd2e7c0 RBP: 0000000000000200 R08: 0000000000000000 R09: fffffbfff2dd6f98 R10: ffffffff96eb7cc7 R11: 0000000000000000 R12: 0000000000000001 R13: ffff8880b8644c18 R14: 0000000000000000 R15: 0000000000000000 __raw_spin_trylock include/linux/spinlock_api_smp.h:90 [inline] _raw_spin_trylock+0x63/0x80 kernel/locking/spinlock.c:138 spin_trylock include/linux/spinlock.h:361 [inline] free_unref_page+0x3c0/0x1080 mm/page_alloc.c:2680 __folio_put+0x32a/0x450 mm/swap.c:112 folio_put include/linux/mm.h:1489 [inline] migrate_folio_done+0x298/0x340 mm/migrate.c:1188 migrate_folio_move mm/migrate.c:1410 [inline] migrate_pages_batch+0x1d08/0x3150 mm/migrate.c:1899 migrate_pages_sync+0x131/0x910 mm/migrate.c:1965 migrate_pages+0x1a46/0x21f0 mm/migrate.c:2074 do_mbind+0x6c0/0xed0 mm/mempolicy.c:1394 kernel_mbind+0x1e8/0x200 mm/mempolicy.c:1537 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3b9b98cd29 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:00007f3b9c7a1038 EFLAGS: 00000246 ORIG_RAX: 00000000000000ed RAX: ffffffffffffffda RBX: 00007f3b9bba6240 RCX: 00007f3b9b98cd29 RDX: 0000000000000000 RSI: 0000000000800000 RDI: 0000000020001000 RBP: 00007f3b9ba0e2a0 R08: 0000000000000000 R09: 0000000000000002 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f3b9bba6240 R15: 00007fff264b7498 rcu: rcu_preempt kthread starved for 10491 jiffies! g117457 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:27632 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5377 [inline] __schedule+0x1142/0x5b60 kernel/sched/core.c:6764 __schedule_loop kernel/sched/core.c:6841 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6856 schedule_timeout+0x124/0x280 kernel/time/sleep_timeout.c:99 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:2024 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:2226 kthread+0x3af/0x750 kernel/kthread.c:464 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 rcu: Stack dump where RCU GP kthread last ran: CPU: 1 UID: 0 PID: 4230 Comm: kworker/u8:7 Not tainted 6.13.0-syzkaller-06167-g0afd22092df4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline] RIP: 0010:smp_call_function_many_cond+0x4c6/0x12c0 kernel/smp.c:885 Code: 0c 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 fc 4c 89 fd 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 fc 04 0c 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 e8 0b 00 00 8b 43 08 31 RSP: 0000:ffffc9000e537928 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b8646980 RCX: ffffffff81adc2da RDX: ffff8880346e0000 RSI: ffffffff81adc2b4 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000006 R12: ffffed10170c8d31 R13: 0000000000000001 R14: ffff8880b873fe00 R15: ffff8880b8646988 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7016202d58 CR3: 000000000df80000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1052 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:2114 [inline] text_poke_bp_batch+0x22b/0x760 arch/x86/kernel/alternative.c:2324 text_poke_flush arch/x86/kernel/alternative.c:2515 [inline] text_poke_flush arch/x86/kernel/alternative.c:2512 [inline] text_poke_finish+0x30/0x40 arch/x86/kernel/alternative.c:2522 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x1d7/0x400 kernel/jump_label.c:920 static_key_enable_cpuslocked+0x1b7/0x270 kernel/jump_label.c:210 static_key_enable+0x1a/0x20 kernel/jump_label.c:223 toggle_allocation_gate mm/kfence/core.c:849 [inline] toggle_allocation_gate+0xfc/0x260 mm/kfence/core.c:841 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3317 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3398 kthread+0x3af/0x750 kernel/kthread.c:464 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244