INFO: task bch-reclaim/loo:7208 blocked for more than 143 seconds.
Not tainted 6.14.0-next-20250328-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-reclaim/loo state:D stack:12584 pid:7208 tgid:7208 ppid:2 task_flags:0x200040 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0x1b88/0x5240 kernel/sched/core.c:6767
__schedule_loop kernel/sched/core.c:6845 [inline]
schedule+0x163/0x360 kernel/sched/core.c:6860
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6917
__mutex_lock_common kernel/locking/mutex.c:678 [inline]
__mutex_lock+0x848/0x1150 kernel/locking/mutex.c:746
bch2_journal_reclaim_thread+0x160/0x580 fs/bcachefs/journal_reclaim.c:761
kthread+0x7b7/0x940 kernel/kthread.c:464
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
INFO: task bch-reclaim/loo:7208 is blocked on a mutex likely owned by task syz-executor:5837.
task:syz-executor state:D stack:13512 pid:5837 tgid:5837 ppid:1 task_flags:0x400140 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0x1b88/0x5240 kernel/sched/core.c:6767
__schedule_loop kernel/sched/core.c:6845 [inline]
schedule+0x163/0x360 kernel/sched/core.c:6860
__closure_sync+0x1c0/0x2a0 lib/closure.c:146
bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:254 [inline]
bch2_btree_update_start+0x1354/0x1680 fs/bcachefs/btree_update_interior.c:1254
bch2_btree_split_leaf+0x12d/0x8a0 fs/bcachefs/btree_update_interior.c:1853
bch2_trans_commit_error+0x1b3/0x14a0 fs/bcachefs/btree_trans_commit.c:904
__bch2_trans_commit+0x8840/0x9dc0 fs/bcachefs/btree_trans_commit.c:1069
bch2_trans_commit fs/bcachefs/btree_update.h:193 [inline]
bch2_btree_write_buffer_flush_locked+0x4919/0x5360 fs/bcachefs/btree_write_buffer.c:452
btree_write_buffer_flush_seq+0x1af6/0x1ca0 fs/bcachefs/btree_write_buffer.c:570
bch2_btree_write_buffer_journal_flush+0xc9/0x160 fs/bcachefs/btree_write_buffer.c:586
journal_flush_pins+0x89b/0xe40 fs/bcachefs/journal_reclaim.c:589
journal_flush_pins_or_still_flushing fs/bcachefs/journal_reclaim.c:859 [inline]
journal_flush_done+0x107/0x820 fs/bcachefs/journal_reclaim.c:877
bch2_journal_flush_pins+0x23a/0x3c0 fs/bcachefs/journal_reclaim.c:909
bch2_journal_flush_all_pins fs/bcachefs/journal_reclaim.h:76 [inline]
__bch2_fs_read_only+0x13a/0x450 fs/bcachefs/super.c:273
bch2_fs_read_only+0xd16/0x1400 fs/bcachefs/super.c:353
__bch2_fs_stop+0x107/0x5b0 fs/bcachefs/super.c:631
generic_shutdown_super+0x139/0x2d0 fs/super.c:642
bch2_kill_sb+0x41/0x50 fs/bcachefs/fs.c:2302
deactivate_locked_super+0xc4/0x130 fs/super.c:473
cleanup_mnt+0x422/0x4c0 fs/namespace.c:1435
task_work_run+0x251/0x310 kernel/task_work.c:227
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:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe1a398e497
RSP: 002b:00007fff748eba88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fe1a3a0e08c RCX: 00007fe1a398e497
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff748ebb40
RBP: 00007fff748ebb40 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff748ecbd0
R13: 00007fe1a3a0e08c R14: 0000000000031f2e R15: 00007fff748ecc10
Showing all locks held in the system:
4 locks held by kworker/u8:1/13:
#0: ffff88805fce3948 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff88805fce3948 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319
#1: ffffc90000127c60 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc90000127c60 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319
#2: ffff888059704210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#2: ffff888059704210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#2: ffff888059704210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3394
#3: ffff888059726550 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x68a/0x1680 fs/bcachefs/btree_update_interior.c:1182
2 locks held by ksoftirqd/1/23:
1 lock held by khungtaskd/31:
#0: ffffffff8ed3df80 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff8ed3df80 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#0: ffffffff8ed3df80 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764
4 locks held by kworker/u8:2/36:
2 locks held by getty/5593:
#0: ffff8880347d80a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000334b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x5bb/0x1700 drivers/tty/n_tty.c:2222
6 locks held by syz-executor/5837:
#0: ffff88805f9aa0e0 (&type->s_umount_key#85){+.+.}-{4:4}, at: __super_lock fs/super.c:56 [inline]
#0: ffff88805f9aa0e0 (&type->s_umount_key#85){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff88805f9aa0e0 (&type->s_umount_key#85){+.+.}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505
#1: ffff888059700278 (&c->state_lock){+.+.}-{4:4}, at: __bch2_fs_stop+0xff/0x5b0 fs/bcachefs/super.c:630
#2: ffff88805974ace8 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x85/0x820 fs/bcachefs/journal_reclaim.c:872
#3: ffff888059704210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#3: ffff888059704210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#3: ffff888059704210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3394
#4: ffff8880597045b8 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1aec/0x1ca0 fs/bcachefs/btree_write_buffer.c:569
#5: ffff888059726550 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x68a/0x1680 fs/bcachefs/btree_update_interior.c:1182
1 lock held by bch-reclaim/loo/7208:
#0: ffff88805974ace8 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x160/0x580 fs/bcachefs/journal_reclaim.c:761
5 locks held by syz.4.796/9184:
#0: ffff8880361e81c0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_release+0x7e/0x12c0 drivers/tty/tty_io.c:1736
#1: ffff8880361ed1c0 (&tty->legacy_mutex/1){+.+.}-{4:4}, at: __tty_hangup+0xc9/0x6b0 drivers/tty/tty_io.c:584
#2: ffff8880361ed0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref drivers/tty/tty_ldisc.c:263 [inline]
#2: ffff8880361ed0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_hangup+0x34/0x4d0 drivers/tty/tty_ldisc.c:696
#3: ffffffff900efd08 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline]
#3: ffffffff900efd08 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_dev_lock+0x271/0x320 net/core/dev.c:2093
#4: ffffffff8ed434b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline]
#4: ffffffff8ed434b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x454/0x830 kernel/rcu/tree_exp.h:998
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.14.0-next-20250328-syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
nmi_cpu_backtrace+0x4ab/0x4e0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline]
watchdog+0x133e/0x1380 kernel/hung_task.c:437
kthread+0x7b7/0x940 kernel/kthread.c:464
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 5897 Comm: kworker/0:7 Not tainted 6.14.0-next-20250328-syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: events free_obj_work
RIP: 0010:unwind_next_frame+0x18bf/0x23b0 arch/x86/kernel/unwind_orc.c:664
Code: 74 24 08 48 01 c6 49 8d 54 24 40 4c 89 e7 e8 38 0e 00 00 84 c0 0f 84 52 01 00 00 49 bd 00 00 00 00 00 fc ff df 48 8b 44 24 28 <42> 0f b6 04 28 84 c0 0f 85 43 08 00 00 40 b5 01 48 8b 1c 24 8b 84
RSP: 0018:ffffc9000435f528 EFLAGS: 00000202
RAX: 1ffff9200086bec0 RBX: ffffffff90eb0246 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: ffffc90004358000 RDI: ffffc9000435fd20
RBP: dffffc0000000000 R08: ffffc9000435fd20 R09: 0000000000000000
R10: ffffc9000435f650 R11: fffff5200086becc R12: ffffc9000435f600
R13: dffffc0000000000 R14: ffffffff90eb0248 R15: ffffffff90eb0247
FS: 0000000000000000(0000) GS:ffff888124fb9000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdb5efb63b0 CR3: 0000000032eb0000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
arch_stack_walk+0x11e/0x150 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x11a/0x1d0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3f/0x80 mm/kasan/common.c:68
kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:576
poison_slab_object mm/kasan/common.c:247 [inline]
__kasan_slab_free+0x59/0x70 mm/kasan/common.c:264
kasan_slab_free include/linux/kasan.h:233 [inline]
slab_free_hook mm/slub.c:2389 [inline]
slab_free mm/slub.c:4646 [inline]
kmem_cache_free+0x197/0x410 mm/slub.c:4748
free_object_list lib/debugobjects.c:326 [inline]
free_obj_work+0x395/0x4e0 lib/debugobjects.c:513
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0xac3/0x18e0 kernel/workqueue.c:3319
worker_thread+0x870/0xd50 kernel/workqueue.c:3400
kthread+0x7b7/0x940 kernel/kthread.c:464
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245