INFO: task syz.2.18:4873 blocked for more than 143 seconds.
Not tainted 6.10.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.18 state:D stack:9984 pid:4873 tgid:4870 ppid:2951 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5407 [inline]
__schedule+0x615/0x9a0 kernel/sched/core.c:6748
__schedule_loop kernel/sched/core.c:6825 [inline]
schedule+0xac/0x140 kernel/sched/core.c:6840
__closure_sync+0x61/0xa0 lib/closure.c:146
closure_sync include/linux/closure.h:195 [inline]
bch2_btree_update_start+0x6cf/0x810 fs/bcachefs/btree_update_interior.c:1267
bch2_btree_split_leaf+0x4e/0x1e0 fs/bcachefs/btree_update_interior.c:1851
bch2_trans_commit_error+0x1f9/0x580 fs/bcachefs/btree_trans_commit.c:961
__bch2_trans_commit+0x1c00/0x1f30 fs/bcachefs/btree_trans_commit.c:1189
bch2_trans_commit fs/bcachefs/btree_update.h:183 [inline]
bch2_btree_write_buffer_flush_locked+0xe44/0x1100 fs/bcachefs/btree_write_buffer.c:429
btree_write_buffer_flush_seq+0x2cf/0x350 fs/bcachefs/btree_write_buffer.c:510
bch2_btree_write_buffer_journal_flush+0x35/0x60 fs/bcachefs/btree_write_buffer.c:525
journal_flush_pins+0x1e3/0x350 fs/bcachefs/journal_reclaim.c:553
journal_flush_done+0x4a/0xe0 fs/bcachefs/journal_reclaim.c:806
bch2_journal_flush_pins+0x14e/0x170 fs/bcachefs/journal_reclaim.c:839
bch2_journal_flush_all_pins fs/bcachefs/journal_reclaim.h:76 [inline]
__bch2_fs_read_only+0x84/0x180 fs/bcachefs/super.c:277
bch2_fs_read_only+0x282/0x470 fs/bcachefs/super.c:357
__bch2_fs_stop+0x5f/0x260 fs/bcachefs/super.c:619
bch2_fs_stop fs/bcachefs/super.c:678 [inline]
bch2_fs_open+0xd0c/0x1330 fs/bcachefs/super.c:2161
bch2_mount fs/bcachefs/fs.c:1924 [inline]
bch2_fs_get_tree+0x297/0x700 fs/bcachefs/fs.c:2088
vfs_get_tree+0x24/0xb0 fs/super.c:1789
do_new_mount+0x15a/0x3a0 fs/namespace.c:3352
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount+0x14b/0x1c0 fs/namespace.c:3875
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x8d/0x1a0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fef9638e90a
RSP: 002b:00007fef97110e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fef97110ef0 RCX: 00007fef9638e90a
RDX: 00004000000000c0 RSI: 0000400000000180 RDI: 00007fef97110eb0
RBP: 00004000000000c0 R08: 00007fef97110ef0 R09: 000000000020001a
R10: 000000000020001a R11: 0000000000000246 R12: 0000400000000180
R13: 00007fef97110eb0 R14: 00000000000059d6 R15: 0000400000000080
INFO: task bch-reclaim/loo:4975 blocked for more than 143 seconds.
Not tainted 6.10.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-reclaim/loo state:D stack:14664 pid:4975 tgid:4975 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5407 [inline]
__schedule+0x615/0x9a0 kernel/sched/core.c:6748
__schedule_loop kernel/sched/core.c:6825 [inline]
schedule+0xac/0x140 kernel/sched/core.c:6840
schedule_preempt_disabled+0x32/0x60 kernel/sched/core.c:6897
__mutex_lock_common kernel/locking/mutex.c:684 [inline]
__mutex_lock+0x44a/0x970 kernel/locking/mutex.c:752
bch2_journal_reclaim_thread+0x74/0x160 fs/bcachefs/journal_reclaim.c:726
kthread+0xea/0x100 kernel/kthread.c:389
ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff83b7ec90 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
#0: ffffffff83b7ec90 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline]
#0: ffffffff83b7ec90 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x30/0x100 kernel/locking/lockdep.c:6614
2 locks held by getty/1470:
#0:
ffff888101ba50a0 (&tty->ldisc_sem){....}-{0:0}, at: tty_ldisc_ref_wait+0x20/0x40 drivers/tty/tty_ldisc.c:243
#1: ffffc90002b132f0 (&ldata->atomic_read_lock){....}-{3:3}, at: n_tty_read+0x1be/0x700 drivers/tty/n_tty.c:2211
5 locks held by syz.2.18/4873:
#0: ffff88810c300278 (&c->state_lock){....}-{3:3}, at: __bch2_fs_stop+0x57/0x260 fs/bcachefs/super.c:618
#1: ffff88810c34afe8 (&j->reclaim_lock){....}-{3:3}, at: journal_flush_done+0x35/0xe0 fs/bcachefs/journal_reclaim.c:804
#2: ffff88810c3042d0 (&c->btree_trans_barrier){....}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline]
#2: ffff88810c3042d0 (&c->btree_trans_barrier){....}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline]
#2: ffff88810c3042d0 (&c->btree_trans_barrier){....}-{0:0}, at: __bch2_trans_get+0x243/0x390 fs/bcachefs/btree_iter.c:3193
#3: ffff88810c304718 (&wb->flushing.lock){....}-{3:3}, at: btree_write_buffer_flush_seq+0x2c2/0x350 fs/bcachefs/btree_write_buffer.c:509
#4: ffff88810c326750 (&c->gc_lock){....}-{3:3}, at: bch2_btree_update_start+0x2ff/0x810 fs/bcachefs/btree_update_interior.c:1195
1 lock held by bch-reclaim/loo/4975:
#0: ffff88810c34afe8 (&j->reclaim_lock){....}-{3:3}, at: bch2_journal_reclaim_thread+0x74/0x160 fs/bcachefs/journal_reclaim.c:726
1 lock held by syz.5.1563/19287:
#0: ffffffff83b7fa00 (rcu_state.barrier_mutex){....}-{3:3}, at: rcu_barrier+0x34/0x260 kernel/rcu/tree.c:4448
1 lock held by syz.6.1564/19289:
#0: ffffffff83b7fa00 (rcu_state.barrier_mutex){....}-{3:3}, at: rcu_barrier+0x34/0x260 kernel/rcu/tree.c:4448
1 lock held by syz.4.1565/19291:
#0: ffffffff83b7fa00 (rcu_state.barrier_mutex){....}-{3:3}, at: rcu_barrier+0x34/0x260 kernel/rcu/tree.c:4448
2 locks held by syz.0.1566/19293:
#0: ffff8881608008f8 (&c->sb_lock){....}-{3:3}, at: bch2_fs_alloc fs/bcachefs/super.c:830 [inline]
#0: ffff8881608008f8 (&c->sb_lock){....}-{3:3}, at: bch2_fs_open+0x9b1/0x1330 fs/bcachefs/super.c:2124
#1: ffff888160804988 (&c->mark_lock){....}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0xb0/0x100 fs/bcachefs/replicas.c:714
3 locks held by syz.7.1567/19295:
#0: ffff888150c808f8 (&c->sb_lock){....}-{3:3}, at: bch2_fs_alloc fs/bcachefs/super.c:830 [inline]
#0: ffff888150c808f8 (&c->sb_lock){....}-{3:3}, at: bch2_fs_open+0x9b1/0x1330 fs/bcachefs/super.c:2124
#1: ffff888150c84988 (&c->mark_lock){....}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0xb0/0x100 fs/bcachefs/replicas.c:714
#2: ffffffff83b7fb38 (rcu_state.exp_mutex){....}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
#2: ffffffff83b7fb38 (rcu_state.exp_mutex){....}-{3:3}, at: synchronize_rcu_expedited+0x15c/0x5e0 kernel/rcu/tree_exp.h:939
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.10.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:114
nmi_cpu_backtrace+0x146/0x160 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x8e/0x140 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
watchdog+0x5db/0x600 kernel/hung_task.c:379
kthread+0xea/0x100 kernel/kthread.c:389
ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3035 Comm: kworker/u8:8 Not tainted 6.10.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:__raw_callee_save___pv_queued_spin_unlock+0x10/0x18
Code: 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 f3 0f 1e fa 52 b8 01 00 00 00 31 d2 f0 0f b0 17 <75> 06 5a c3 cc cc cc cc 56 0f b6 f0 e8 9f ff ff ff 5e 5a c3 cc cc
RSP: 0018:ffffc90002f53c60 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffff88810006d040 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff835aa1b9 RDI: ffff88810006d040
RBP: 00002aaaaaaac000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff81045140 R12: 0000000000000001
R13: ffffc90002f53d6a R14: ffffffff83bb4dc0 R15: ffff888107bc1b80
FS: 0000000000000000(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcae63705a0 CR3: 0000000003a44000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pv_queued_spin_unlock arch/x86/include/asm/paravirt.h:589 [inline]
queued_spin_unlock arch/x86/include/asm/qspinlock.h:57 [inline]
do_raw_spin_unlock+0x68/0x2b0 kernel/locking/spinlock_debug.c:142
__raw_spin_unlock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_unlock+0x1e/0x50 kernel/locking/spinlock.c:186
spin_unlock include/linux/spinlock.h:391 [inline]
__text_poke+0x37c/0x440 arch/x86/kernel/alternative.c:1944
text_poke arch/x86/kernel/alternative.c:1968 [inline]
text_poke_bp_batch+0x25f/0x310 arch/x86/kernel/alternative.c:2357
text_poke_flush arch/x86/kernel/alternative.c:2470 [inline]
text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2477
arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146
static_key_disable_cpuslocked kernel/jump_label.c:235 [inline]
static_key_disable+0x3f/0x60 kernel/jump_label.c:243
toggle_allocation_gate+0xe2/0x130 mm/kfence/core.c:831
process_one_work kernel/workqueue.c:3248 [inline]
process_scheduled_works+0x2d7/0x610 kernel/workqueue.c:3329
worker_thread+0x23e/0x2f0 kernel/workqueue.c:3409
kthread+0xea/0x100 kernel/kthread.c:389
ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244