rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 GPs behind) idle=7764/1/0x4000000000000000 softirq=103355/103356 fqs=1 rcu: (detected by 1, t=10506 jiffies, g=169353, q=10 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 32191 Comm: syz-executor.1 Not tainted 6.2.0-rc2-next-20230105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:check_wait_context kernel/locking/lockdep.c:4745 [inline] RIP: 0010:__lock_acquire+0x572/0x56d0 kernel/locking/lockdep.c:5005 Code: 30 0a 00 00 45 89 fe 41 83 ee 01 0f 88 7c 13 00 00 49 b9 00 00 00 00 00 fc ff df 49 63 c6 48 8d 04 80 49 8d ac c5 59 0a 00 00 12 41 83 ee 01 48 83 ed 28 41 83 fe ff 0f 84 15 0b 00 00 48 8d RSP: 0018:ffffc90000007b58 EFLAGS: 00000002 RAX: 000000000000000a RBX: ffff88807a3e0a38 RCX: 0000000000000001 RDX: 1ffff1100f47c146 RSI: 000000000000004e RDI: ffffffff913fcf19 RBP: ffff88807a3e0aa9 R08: 0000000000000000 R09: dffffc0000000000 R10: fffffbfff226979a R11: 0000000000000000 R12: ffff88807a3e0ab0 R13: ffff88807a3e0000 R14: 0000000000000002 R15: 0000000000000003 FS: 00007f3438c1b700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f097fc9a718 CR3: 000000001d57a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire.part.0+0x11a/0x350 kernel/locking/lockdep.c:5668 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] advance_sched+0x53/0xa40 net/sched/sch_taprio.c:700 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x600/0xcf0 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x320/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline] __sysvec_apic_timer_interrupt+0x180/0x660 arch/x86/kernel/apic/apic.c:1113 sysvec_apic_timer_interrupt+0x92/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:lock_acquire.part.0+0x154/0x350 kernel/locking/lockdep.c:5633 Code: b8 ff ff ff ff 65 0f c1 05 61 75 9e 7e 83 f8 01 0f 85 ac 01 00 00 9c 58 f6 c4 02 0f 85 bf 01 00 00 48 85 ed 0f 85 92 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:ffffc900038df8e0 EFLAGS: 00000206 RAX: 0000000000000046 RBX: 1ffff9200071bf1d RCX: ffffffff8163be7e RDX: 1ffff1100f47c146 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000200 R08: 0000000000000000 R09: ffffffff9134bb47 R10: fffffbfff2269768 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880b9836d40 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] folio_add_lru+0x1a4/0x680 mm/swap.c:545 shmem_get_folio_gfp+0x6f8/0x1a30 mm/shmem.c:1972 shmem_get_folio mm/shmem.c:2068 [inline] shmem_write_begin+0x14a/0x380 mm/shmem.c:2560 generic_perform_write+0x256/0x570 mm/filemap.c:3772 __generic_file_write_iter+0x2ae/0x500 mm/filemap.c:3900 generic_file_write_iter+0xe3/0x350 mm/filemap.c:3932 call_write_iter include/linux/fs.h:2189 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xe10 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3437e3de4f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 fd ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 cc fd ff ff 48 RSP: 002b:00007f3438c1af10 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f3437e3de4f RDX: 0000000000200000 RSI: 00007f342e5ff000 RDI: 0000000000000003 RBP: 00007f342e5ff000 R08: 0000000000000000 R09: 000000000001f16e R10: 0000000000200000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007f3438c1afdc R14: 00007f3438c1afe0 R15: 000000002001f202 rcu: rcu_preempt kthread timer wakeup didn't happen for 10499 jiffies! g169353 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=1 timer-softirq=142956 rcu: rcu_preempt kthread starved for 10500 jiffies! g169353 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:28608 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5247 [inline] __schedule+0x25d0/0x5a70 kernel/sched/core.c:6563 schedule+0xde/0x1b0 kernel/sched/core.c:6639 schedule_timeout+0x14e/0x2a0 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1608 rcu_gp_kthread+0x23a/0x360 kernel/rcu/tree.c:1807 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 rcu: Stack dump where RCU GP kthread last ran: CPU: 1 PID: 15645 Comm: kworker/u4:15 Not tainted 6.2.0-rc2-next-20230105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:413 [inline] RIP: 0010:smp_call_function_many_cond+0x4ee/0x1090 kernel/smp.c:987 Code: e6 e8 06 26 0b 00 45 85 e4 74 48 48 8b 04 24 49 89 c5 83 e0 07 49 c1 ed 03 49 89 c4 4d 01 fd 41 83 c4 03 e8 34 29 0b 00 f3 90 <41> 0f b6 45 00 41 38 c4 7c 08 84 c0 0f 85 98 09 00 00 8b 43 08 31 RSP: 0018:ffffc90004def978 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9844c00 RCX: 0000000000000000 RDX: ffff88803a119d40 RSI: ffffffff8176864c RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000003 R13: ffffed1017308981 R14: 0000000000000001 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f05d1ed56be CR3: 000000000c48e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x5a/0xa0 kernel/smp.c:1155 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1772 [inline] text_poke_bp_batch+0x22e/0x6b0 arch/x86/kernel/alternative.c:1963 text_poke_flush arch/x86/kernel/alternative.c:2131 [inline] text_poke_flush arch/x86/kernel/alternative.c:2128 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2138 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:829 static_key_enable_cpuslocked+0x1b5/0x270 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate mm/kfence/core.c:799 [inline] toggle_allocation_gate+0xf8/0x230 mm/kfence/core.c:791 process_one_work+0x9bf/0x1750 kernel/workqueue.c:2293 worker_thread+0x669/0x1090 kernel/workqueue.c:2440 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308