INFO: task bch-reclaim/loo:6698 blocked for more than 143 seconds.
Not tainted 6.15.0-rc2-syzkaller-00400-g3088d26962e8 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-reclaim/loo state:D stack:13432 pid:6698 tgid:6698 ppid:2 task_flags:0x200040 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0x1b33/0x51f0 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+0x805/0x10c0 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
Showing all locks held in the system:
1 lock held by khungtaskd/31:
#0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764
3 locks held by kworker/u8:6/1145:
4 locks held by kworker/u8:10/3015:
#0: ffff88805dff0948 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff88805dff0948 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319
#1: ffffc9000afe7c60 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc9000afe7c60 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319
#2: ffff888063b04228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#2: ffff888063b04228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#2: ffff888063b04228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3382
#3: ffff888063b26590 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x68a/0x16c0 fs/bcachefs/btree_update_interior.c:1179
1 lock held by udevd/5204:
2 locks held by getty/5587:
#0: ffff888035d1a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000332e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x5bb/0x1700 drivers/tty/n_tty.c:2222
6 locks held by syz-executor/5834:
#0: ffff8880341b60e0 (&type->s_umount_key#69){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline]
#0: ffff8880341b60e0 (&type->s_umount_key#69){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff8880341b60e0 (&type->s_umount_key#69){++++}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505
#1: ffff888063b00278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xff/0x5b0 fs/bcachefs/super.c:637
#2: ffff888063b4ad28 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x85/0x820 fs/bcachefs/journal_reclaim.c:872
#3: ffff888063b04228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#3: ffff888063b04228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#3: ffff888063b04228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3382
#4: ffff888063b045d0 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1aec/0x1ca0 fs/bcachefs/btree_write_buffer.c:569
#5: ffff888063b26590 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x68a/0x16c0 fs/bcachefs/btree_update_interior.c:1179
1 lock held by bch-reclaim/loo/6698:
#0: ffff888063b4ad28 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x160/0x580 fs/bcachefs/journal_reclaim.c:761
1 lock held by syz.3.156/7372:
#0: ffff8880341b60e0 (&type->s_umount_key#69){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff8880341b60e0 (&type->s_umount_key#69){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120
3 locks held by udevd/7758:
#0: ffff888046f88420 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556
#1: ffff8880b8623b08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x41f/0x7a0 kernel/sched/psi.c:987
#2: ffff888045738558 (&ep->lock){....}-{3:3}, at: ep_poll_callback+0xd7/0xbb0 fs/eventpoll.c:1347
1 lock held by syz.6.208/7948:
#0: ffff8880341b60e0 (&type->s_umount_key#69){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff8880341b60e0 (&type->s_umount_key#69){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120
1 lock held by syz.2.230/8158:
#0: ffff8880341b60e0 (&type->s_umount_key#69){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff8880341b60e0 (&type->s_umount_key#69){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120
3 locks held by syz.0.373/9552:
2 locks held by syz.3.376/9574:
#0: ffff888030a700e0 (&type->s_umount_key#83/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 fs/super.c:344
#1: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline]
#1: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x454/0x830 kernel/rcu/tree_exp.h:998
2 locks held by syz.5.377/9600:
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc2-syzkaller-00400-g3088d26962e8 #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+0x1058/0x10a0 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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 9552 Comm: syz.0.373 Not tainted 6.15.0-rc2-syzkaller-00400-g3088d26962e8 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:check_kcov_mode kernel/kcov.c:185 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:246 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x2f/0x90 kernel/kcov.c:314
Code: 8b 04 24 65 48 8b 14 25 08 10 65 93 65 8b 05 98 50 a2 11 25 00 01 ff 00 74 10 3d 00 01 00 00 75 5b 83 ba 3c 16 00 00 00 74 52 <8b> 82 18 16 00 00 83 f8 03 75 47 48 8b 8a 20 16 00 00 44 8b 8a 1c
RSP: 0018:ffffc9000401f1a8 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff82022294
RDX: ffff888045e0bc00 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff820222d2 R09: 1ffffd400024b8ce
R10: dffffc0000000000 R11: fffff9400024b8cf R12: ffffea000125c670
R13: 1ffffd400024b8c9 R14: 00000000ffffffff R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8881250cf000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fde69447270 CR3: 0000000051928000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
folio_mapped+0xe2/0x210 include/linux/mm.h:1363
truncate_cleanup_folio+0x1a/0x300 mm/truncate.c:156
truncate_inode_folio+0x55/0x70 mm/truncate.c:175
shmem_undo_range+0x44d/0x1820 mm/shmem.c:1121
shmem_truncate_range mm/shmem.c:1237 [inline]
shmem_evict_inode+0x29d/0xa80 mm/shmem.c:1365
evict+0x4f9/0x9b0 fs/inode.c:810
__dentry_kill+0x20d/0x630 fs/dcache.c:660
dput+0x19f/0x2b0 fs/dcache.c:902
__fput+0x60b/0x9f0 fs/file_table.c:473
task_work_run+0x251/0x310 kernel/task_work.c:227
exit_task_work include/linux/task_work.h:40 [inline]
do_exit+0xa11/0x27f0 kernel/exit.c:953
do_group_exit+0x207/0x2c0 kernel/exit.c:1102
get_signal+0x1696/0x1730 kernel/signal.c:3034
arch_do_signal_or_restart+0x98/0x810 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [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+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x210 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9877b8e169
Code: Unable to access opcode bytes at 0x7f9877b8e13f.
RSP: 002b:00007fffefdd6558 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffdfc RBX: 000000000004b151 RCX: 00007f9877b8e169
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f9877db5fac
RBP: 0000000000000fd2 R08: 7fffffffffffffff R09: 00000003efdd684f
R10: 00007fffefdd6650 R11: 0000000000000246 R12: 00007f9877db5fac
R13: 00007fffefdd6650 R14: 000000000004c123 R15: 00007fffefdd6670