rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P5112/1:b..l P6699/2:b..l
rcu: (detected by 0, t=10502 jiffies, g=22957, q=486 ncpus=2)
task:syz-executor.4 state:R running task stack:23056 pid:6699 tgid:6698 ppid:5751 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:bpf_tree_comp kernel/bpf/core.c:637 [inline]
RIP: 0010:__lt_find include/linux/rbtree_latch.h:115 [inline]
RIP: 0010:latch_tree_find include/linux/rbtree_latch.h:208 [inline]
RIP: 0010:bpf_ksym_find kernel/bpf/core.c:735 [inline]
RIP: 0010:is_bpf_text_address+0x134/0x2a0 kernel/bpf/core.c:769
Code: 48 8d 6c 6d 00 48 f7 dd 4c 8d a4 2b e0 fd ff ff 4c 89 e0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 e7 e8 10 10 57 00 4d 8b 24 24 <4c> 89 e7 4c 89 fe e8 b1 51 f1 ff 4d 39 fc 76 0b e8 47 4f f1 ff 48
RSP: 0018:ffffc900089d6de0 EFLAGS: 00000246
RAX: 1ffffffff1ebd36f RBX: ffffffff8f5e9d98 RCX: 0000000000040000
RDX: ffffc900138fc000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 0000000000000000 R08: ffffffff81a4c4aa R09: 1ffffffff25f50b0
R10: dffffc0000000000 R11: fffffbfff25f50b1 R12: ffffffffa0003d80
R13: dffffc0000000000 R14: 0000000000000001 R15: 00007f1da627e5ea
kernel_text_address+0xa7/0xe0 kernel/extable.c:125
__kernel_text_address+0xd/0x40 kernel/extable.c:79
unwind_get_return_address+0x5d/0xc0 arch/x86/kernel/unwind_orc.c:369
arch_stack_walk+0x125/0x1b0 arch/x86/kernel/stacktrace.c:26
stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
save_stack+0xfb/0x1f0 mm/page_owner.c:156
__reset_page_owner+0x75/0x3f0 mm/page_owner.c:297
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1088 [inline]
free_unref_page+0xd22/0xea0 mm/page_alloc.c:2565
vfree+0x186/0x2e0 mm/vmalloc.c:3346
bch2_fs_btree_write_buffer_exit+0x140/0x1b0 fs/bcachefs/btree_write_buffer.c:652
__bch2_fs_free fs/bcachefs/super.c:565 [inline]
bch2_fs_release+0x2ca/0x6d0 fs/bcachefs/super.c:603
kobject_cleanup lib/kobject.c:689 [inline]
kobject_release lib/kobject.c:720 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x231/0x480 lib/kobject.c:737
bch2_fs_alloc+0xfeb/0x2030 fs/bcachefs/super.c:954
bch2_fs_open+0x8cc/0xdf0 fs/bcachefs/super.c:2102
bch2_mount+0x71d/0x1310 fs/bcachefs/fs.c:1917
legacy_get_tree+0xf0/0x190 fs/fs_context.c:662
vfs_get_tree+0x92/0x2a0 fs/super.c:1780
do_new_mount+0x2be/0xb40 fs/namespace.c:3352
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1da627e5ea
RSP: 002b:00007f1da7028ef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f1da7028f80 RCX: 00007f1da627e5ea
RDX: 0000000020000080 RSI: 0000000020000040 RDI: 00007f1da7028f40
RBP: 0000000020000080 R08: 00007f1da7028f80 R09: 0000000000000010
R10: 0000000000000010 R11: 0000000000000202 R12: 0000000020000040
R13: 00007f1da7028f40 R14: 0000000000005b22 R15: 00000000200000c0
task:syz-executor.3 state:R running task stack:19312 pid:5112 tgid:5112 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_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707
RIP: 0010:unwind_done arch/x86/include/asm/unwind.h:50 [inline]
RIP: 0010:__unwind_start+0x650/0x7c0 arch/x86/kernel/unwind_orc.c:757
Code: 4c 8b 64 24 28 eb 0c e8 8e ff 54 00 eb 05 e8 87 ff 54 00 4c 89 f7 e8 ff c9 ff ff 48 b8 00 00 00 00 00 fc ff df 0f b6 44 05 00 <84> c0 75 10 41 83 3e 00 74 3c e8 61 ff 54 00 e9 26 ff ff ff 44 89
RSP: 0018:ffffc90003d76ff8 EFLAGS: 00000286
RAX: 0000000000000000 RBX: ffffc90003d76ff8 RCX: ffff888023c75a00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 1ffff920007aee0c R08: ffffffff8140fdd5 R09: ffffffff8140f8cf
R10: 0000000000000003 R11: ffff888023c75a00 R12: ffffc90003d770f8
R13: ffffc90003d77070 R14: ffffc90003d77060 R15: ffffc90003d77068
unwind_start arch/x86/include/asm/unwind.h:64 [inline]
arch_stack_walk+0x103/0x1b0 arch/x86/kernel/stacktrace.c:24
stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
save_stack+0xfb/0x1f0 mm/page_owner.c:156
__reset_page_owner+0x75/0x3f0 mm/page_owner.c:297
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1088 [inline]
free_unref_folios+0xf23/0x19e0 mm/page_alloc.c:2614
folios_put_refs+0x93a/0xa60 mm/swap.c:1024
folio_batch_release include/linux/pagevec.h:101 [inline]
truncate_inode_pages_range+0x47b/0xfc0 mm/truncate.c:362
bch2_evict_inode+0x6c/0x3c0 fs/bcachefs/fs.c:1568
evict+0x2aa/0x630 fs/inode.c:667
dispose_list fs/inode.c:700 [inline]
evict_inodes+0x5f9/0x690 fs/inode.c:750
generic_shutdown_super+0x9d/0x2d0 fs/super.c:627
bch2_kill_sb+0x41/0x50 fs/bcachefs/fs.c:2026
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
get_signal+0x15e6/0x1740 kernel/signal.c:2681
arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310
exit_to_user_mode_loop kernel/entry/common.c:111 [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+0xc9/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:0x7f6e7247e217
RSP: 002b:00007ffea1ea09a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f6e7247e217
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffea1ea0a60
RBP: 00007ffea1ea0a60 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffea1ea1b20
R13: 00007f6e724c8336 R14: 000000000002d409 R15: 0000000000000005
rcu: rcu_preempt kthread starved for 10613 jiffies! g22957 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:26448 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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 6735 Comm: syz-executor.1 Not tainted 6.9.0-syzkaller-12277-g56fb6f92854f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:psi_group_change+0x97a/0x12d0 kernel/sched/psi.c:860
Code: 48 8d 6e 68 48 89 eb 48 c1 eb 03 80 3c 13 00 74 16 48 89 ef e8 e7 79 8b 00 48 8b 34 24 48 ba 00 00 00 00 00 fc ff df 8b 45 00 <48> 8b 4c 24 48 41 89 ce 41 29 c6 80 3c 13 00 74 16 48 89 ef e8 ad
RSP: 0018:ffffc900047e76c8 EFLAGS: 00000046
RAX: 000000006f3647c6 RBX: 1ffffd1ffffae9ed RCX: 0000000000000000
RDX: dffffc0000000000 RSI: ffffe8ffffd74f00 RDI: 0000000000000000
RBP: ffffe8ffffd74f68 R08: ffffe8ffffd74f38 R09: ffffe8ffffd74f34
R10: ffffe8ffffd74f30 R11: 1ffffd1ffffae9e6 R12: 0000000000000000
R13: 1ffffd1ffffae9e7 R14: 1ffffd1ffffae9e6 R15: 0000000000000000
FS: 00007fb36ca8f6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb36ca8ef80 CR3: 0000000063b30000 CR4: 0000000000350ef0
Call Trace:
psi_task_switch+0x3a7/0x770 kernel/sched/psi.c:976
psi_sched_switch kernel/sched/stats.h:185 [inline]
__schedule+0x24ef/0x4a20 kernel/sched/core.c:6740
__schedule_loop kernel/sched/core.c:6822 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6837
futex_wait_queue+0x14e/0x1d0 kernel/futex/waitwake.c:370
__futex_wait+0x17f/0x320 kernel/futex/waitwake.c:669
futex_wait+0x101/0x360 kernel/futex/waitwake.c:697
do_futex+0x33b/0x560 kernel/futex/syscalls.c:102
__do_sys_futex kernel/futex/syscalls.c:179 [inline]
__se_sys_futex+0x3f9/0x480 kernel/futex/syscalls.c:160
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb36bc7cee9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb36ca8f178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007fb36bdac058 RCX: 00007fb36bc7cee9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb36bdac058
RBP: 00007fb36bdac050 R08: 00007fb36ca8f6c0 R09: 00007fb36ca8f6c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb36bdac05c
R13: 000000000000006e R14: 00007fff47bd89a0 R15: 00007fff47bd8a88