rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P5122/1:b..l rcu: (detected by 1, t=10503 jiffies, g=13085, q=412 ncpus=2) task:syz-executor.3 state:R running task stack:18736 pid:5122 tgid:5122 ppid:5109 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a20 kernel/sched/core.c:6745 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7067 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:__sanitizer_cov_trace_const_cmp4+0x0/0x90 kernel/kcov.c:303 Code: 10 48 89 74 0a 18 4c 89 44 0a 20 e9 55 17 1a 0a 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 4c 8b 04 24 65 48 8b 14 25 c0 d4 03 00 65 8b 05 e0 aa RSP: 0018:ffffc90004da75c8 EFLAGS: 00000246 RAX: 0000000000000001 RBX: 0000000000000001 RCX: 0000000080000000 RDX: ffff8880291b8000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: ffffffff8b816b15 R09: ffffffff8b8167bb R10: 0000000000000002 R11: ffff8880291b8000 R12: 1ffff920009b4edb R13: ffffc90004da76d8 R14: dffffc0000000000 R15: 0000000000000000 xa_entry include/linux/xarray.h:1220 [inline] xas_find+0x477/0x960 lib/xarray.c:1283 find_get_entry mm/filemap.c:1990 [inline] find_get_entries+0x278/0xa10 mm/filemap.c:2045 invalidate_inode_pages2_range+0x1e4/0x10e0 mm/truncate.c:625 close_ctree+0x673/0xd20 fs/btrfs/disk-io.c:4364 generic_shutdown_super+0x138/0x2d0 fs/super.c:642 kill_anon_super+0x3b/0x70 fs/super.c:1226 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2096 deactivate_locked_super+0xc6/0x130 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1267 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+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcd9ec7e3d7 RSP: 002b:00007ffce0b0c9c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fcd9ec7e3d7 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffce0b0ca80 RBP: 00007ffce0b0ca80 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffce0b0db30 R13: 00007fcd9ecd96c6 R14: 000000000002ae13 R15: 0000000000000017 rcu: rcu_preempt kthread starved for 10547 jiffies! g13085 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0 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:25328 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a20 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2000 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2202 kthread+0x2f2/0x390 kernel/kthread.c:389 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: Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 6135 Comm: syz-executor.2 Not tainted 6.10.0-rc4-syzkaller-00330-g7c16f0a4ed1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:lockdep_hardirqs_on_prepare+0x611/0x780 kernel/locking/lockdep.c:4340 Code: ff ff 48 c7 c7 6c 7f ad 8f e8 6b a3 89 00 48 ba 00 00 00 00 00 fc ff df e9 79 fa ff ff 48 c7 c1 e0 f6 79 94 80 e1 07 80 c1 03 <38> c1 0f 8c b8 fa ff ff 48 c7 c7 e0 f6 79 94 e8 3b a3 89 00 48 ba RSP: 0018:ffffc90004117e20 EFLAGS: 00000006 RAX: 0000000000000004 RBX: 0000000000000000 RCX: ffffffff9479f603 RDX: dffffc0000000000 RSI: ffffffff8c1feb60 RDI: ffffffff8c1feb20 RBP: ffffc90004117ec8 R08: ffffffff8fad4d2f R09: 1ffffffff1f5a9a5 R10: dffffc0000000000 R11: fffffbfff1f5a9a6 R12: ffff8880520e0000 R13: 0000000000000000 R14: ffffc90004117f58 R15: 1ffff92000822fc8 FS: 00007f2fef3c36c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2fef3a2d58 CR3: 000000001e4c2000 CR4: 0000000000350ef0 Call Trace: exit_to_user_mode include/linux/entry-common.h:360 [inline] syscall_exit_to_user_mode+0x203/0x370 kernel/entry/common.c:220 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2fee67a827 Code: 0b e9 68 fe ff ff 48 83 c4 18 48 8d 3d 32 00 c7 00 5b 5d 41 5c 41 5d 41 5e 41 5f e9 a3 68 fd ff 0f 1f 00 b8 27 00 00 00 0f 05 0f 1f 84 00 00 00 00 00 b8 66 00 00 00 0f 05 c3 0f 1f 84 00 00 RSP: 002b:00007f2fef3c2b88 EFLAGS: 00000206 ORIG_RAX: 0000000000000027 RAX: 000000000000004a RBX: 00007f2fef3c2cf0 RCX: 00007f2fee67a827 RDX: 00007f2fef3c2bc0 RSI: 00007f2fef3c2cf0 RDI: 0000000000000021 RBP: 0000000000000000 R08: 00007f2fef3c36c0 R09: 00007f2fef3c36c0 R10: 0000000000000000 R11: 0000000000000206 R12: 00007f2fee7b3f8c R13: 000000000000000b R14: 00007ffd7a8e8d40 R15: 00007ffd7a8e8e28