rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: (detected by 0, t=10502 jiffies, g=11033, q=641 ncpus=2) rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4294962121-4294951619), jiffies_till_next_fqs=1, root ->qsmask 0x0 rcu: rcu_preempt kthread starved for 10502 jiffies! g11033 f0x2 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:27408 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5328 [inline] __schedule+0xe55/0x5740 kernel/sched/core.c:6693 __schedule_loop kernel/sched/core.c:6770 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6785 schedule_timeout+0x136/0x2a0 kernel/time/timer.c:2615 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:2045 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:2247 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/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: Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 3474 Comm: kworker/u8:8 Not tainted 6.12.0-rc7-syzkaller-00125-gcfaaa7d010d1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: writeback wb_workfn (flush-8:0) RIP: 0010:rcu_is_watching_curr_cpu include/linux/context_tracking.h:128 [inline] RIP: 0010:rcu_is_watching+0x41/0xc0 kernel/rcu/tree.c:737 Code: 03 00 83 f8 07 89 c5 0f 87 82 00 00 00 48 8d 3c ed 80 4b a6 8d 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 <75> 5c 48 03 1c ed 80 4b a6 8d 48 b8 00 00 00 00 00 fc ff df 48 89 RSP: 0018:ffffc90000a18c90 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: 0000000000038128 RCX: ffffffff816a9d09 RDX: 1ffffffff1b4c971 RSI: ffffffff8bd1b640 RDI: ffffffff8da64b88 RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff20beb99 R10: ffffffff905f5ccf R11: 0000000000000000 R12: ffff8880791b5300 R13: ffff88807de53800 R14: 000000000003dc0c R15: ffff88807de51400 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f84a9dad988 CR3: 000000000df7c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0x4f6/0x6f0 kernel/locking/lockdep.c:5836 __raw_spin_unlock include/linux/spinlock_api_smp.h:141 [inline] _raw_spin_unlock+0x16/0x50 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] advance_sched+0x611/0xc60 net/sched/sch_taprio.c:981 __run_hrtimer kernel/time/hrtimer.c:1691 [inline] __hrtimer_run_queues+0x20a/0xae0 kernel/time/hrtimer.c:1755 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1817 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:kasan_check_range+0x1a/0x1a0 mm/kasan/generic.c:188 Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 48 85 f6 0f 84 50 01 00 00 48 89 f8 41 54 44 0f b6 c2 48 01 f0 55 <53> 0f 82 c6 00 00 00 48 b8 ff ff ff ff ff 7f ff ff 48 39 f8 0f 83 RSP: 0018:ffffc9000c63edb8 EFLAGS: 00000282 RAX: ffffea0001e50508 RBX: ffffea0001e50500 RCX: ffffffff81dc7f89 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffea0001e50500 RBP: 1ffff920018c7dba R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea0001e50500 R13: dffffc0000000000 R14: 0000000000002156 R15: ffffea0001e50520 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] folio_test_locked include/linux/page-flags.h:509 [inline] folio_mkclean+0xc9/0x3f0 mm/rmap.c:1105 folio_clear_dirty_for_io+0x153/0x800 mm/page-writeback.c:3024 mpage_submit_folio+0x80/0x350 fs/ext4/inode.c:1902 mpage_process_page_bufs+0x46d/0x990 fs/ext4/inode.c:2034 mpage_prepare_extent_to_map+0x758/0x1470 fs/ext4/inode.c:2535 ext4_do_writepages+0x8df/0x2fe0 fs/ext4/inode.c:2677 ext4_writepages+0x303/0x730 fs/ext4/inode.c:2813 do_writepages+0x1a3/0x7f0 mm/page-writeback.c:2683 __writeback_single_inode+0x166/0xfa0 fs/fs-writeback.c:1658 writeback_sb_inodes+0x603/0xfa0 fs/fs-writeback.c:1954 __writeback_inodes_wb+0xff/0x2e0 fs/fs-writeback.c:2025 wb_writeback+0x721/0xb50 fs/fs-writeback.c:2136 wb_check_old_data_flush fs/fs-writeback.c:2240 [inline] wb_do_writeback fs/fs-writeback.c:2293 [inline] wb_workfn+0x8c3/0xbc0 fs/fs-writeback.c:2321 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244