INFO: task bch-reclaim/loo:6130 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-reclaim/loo state:D stack:14536 pid:6130 tgid:6130 ppid:2 task_flags:0x200040 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5360 [inline]
__schedule+0x1798/0x4cc0 kernel/sched/core.c:6964
__schedule_loop kernel/sched/core.c:7046 [inline]
schedule+0x165/0x360 kernel/sched/core.c:7061
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7118
__mutex_lock_common kernel/locking/mutex.c:676 [inline]
__mutex_lock+0x7e6/0x1350 kernel/locking/mutex.c:760
bch2_journal_reclaim_thread+0x16b/0x4f0 fs/bcachefs/journal_reclaim.c:773
kthread+0x711/0x8a0 kernel/kthread.c:463
ret_from_fork+0x47c/0x820 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Showing all locks held in the system:
3 locks held by kworker/u8:1/13:
1 lock held by khungtaskd/31:
#0: ffffffff8e33c560 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff8e33c560 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#0: ffffffff8e33c560 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6775
4 locks held by kworker/0:1H/98:
#0: ffff8880508e9148 ((wq_completion)bcachefs_btree_write_complete){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3238 [inline]
#0: ffff8880508e9148 ((wq_completion)bcachefs_btree_write_complete){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3346
#1: ffffc900025d7ba0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3239 [inline]
#1: ffffc900025d7ba0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3346
#2: ffff88806ef04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#2: ffff88806ef04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#2: ffff88806ef04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220 fs/bcachefs/btree_iter.c:3299
#3: ffff88806ef26710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0 fs/bcachefs/btree_update_interior.c:1211
3 locks held by kworker/u8:6/1109:
2 locks held by getty/5624:
#0: ffff88803470d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000333b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222
1 lock held by udevd/5881:
#0: ffff8880b8639f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xad/0x140 kernel/sched/core.c:644
6 locks held by syz-executor/5884:
#0: ffff8880243fc0e0 (&type->s_umount_key#56){++++}-{4:4}, at: __super_lock fs/super.c:57 [inline]
#0: ffff8880243fc0e0 (&type->s_umount_key#56){++++}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline]
#0: ffff8880243fc0e0 (&type->s_umount_key#56){++++}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:505
#1: ffff88806ef00278 (&c->state_lock){+.+.}-{4:4}, at: __bch2_fs_stop+0xf8/0x900 fs/bcachefs/super.c:676
#2: ffff88806ef4af68 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x86/0x810 fs/bcachefs/journal_reclaim.c:884
#3: ffff88806ef04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#3: ffff88806ef04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#3: ffff88806ef04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80 fs/bcachefs/btree_iter.c:3505
#4: ffff88806ef04740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x18bd/0x1a40 fs/bcachefs/btree_write_buffer.c:571
#5: ffff88806ef26710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0 fs/bcachefs/btree_update_interior.c:1211
1 lock held by bch-reclaim/loo/6130:
#0: ffff88806ef4af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16b/0x4f0 fs/bcachefs/journal_reclaim.c:773
1 lock held by syz.2.155/6976:
#0: ffff8880243fc0e0 (&type->s_umount_key#56){++++}-{4:4}, at: __super_lock fs/super.c:59 [inline]
#0: ffff8880243fc0e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2a9/0x3b0 fs/super.c:121
4 locks held by dhcpcd-run-hook/7646:
#0: ffff8880b8639f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xad/0x140 kernel/sched/core.c:644
#1: ffff8880b8724008 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x53/0x880 kernel/sched/psi.c:933
#2: ffff88807e3701f8 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline]
#2: ffff88807e3701f8 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: __pte_offset_map_lock+0x13e/0x210 mm/pgtable-generic.c:401
#3: ffffffff8e33c560 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#3: ffffffff8e33c560 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#3: ffffffff8e33c560 (rcu_read_lock){....}-{1:3}, at: page_table_check_set+0x18d/0x730 mm/page_table_check.c:112
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:332 [inline]
watchdog+0xf60/0xfa0 kernel/hung_task.c:495
kthread+0x711/0x8a0 kernel/kthread.c:463
ret_from_fork+0x47c/0x820 arch/x86/kernel/process.c:158
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: 7675 Comm: rm Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:debug_lockdep_rcu_enabled+0xd/0x40 kernel/rcu/update.c:320
Code: cc cc cc cc cc cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 31 c0 83 3d 67 76 41 04 00 <74> 1e 83 3d 7a a6 41 04 00 74 15 65 48 8b 0c 25 08 00 c3 92 31 c0
RSP: 0000:ffffc9000da3f8e8 EFLAGS: 00000202
RAX: 0000000000000000 RBX: ffff88801ad80000 RCX: ffff88802eb6bc80
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000000000
RBP: 000000000000b999 R08: 0000000000000000 R09: ffffffff822edb4d
R10: dffffc0000000000 R11: fffff9400005ccc9 R12: 000000000000b999
R13: dffffc0000000000 R14: ffff88813fffa430 R15: 0000000000001000
FS: 00007f2400531c80(0000) GS:ffff888125af0000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f24006e64d0 CR3: 0000000021346000 CR4: 00000000003526f0
Call Trace:
rcu_read_lock_held_common kernel/rcu/update.c:105 [inline]
rcu_read_lock_held+0xa/0x50 kernel/rcu/update.c:349
lookup_page_ext mm/page_ext.c:254 [inline]
page_ext_lookup+0xe7/0x180 mm/page_ext.c:509
page_ext_iter_begin include/linux/page_ext.h:132 [inline]
page_table_check_set+0x27e/0x730 mm/page_table_check.c:113
page_table_check_ptes_set include/linux/page_table_check.h:76 [inline]
set_ptes include/linux/pgtable.h:292 [inline]
set_pte_range+0x6a5/0x700 mm/memory.c:5443
filemap_map_order0_folio mm/filemap.c:3757 [inline]
filemap_map_pages+0xfdc/0x17a0 mm/filemap.c:3815
do_fault_around mm/memory.c:5661 [inline]
do_read_fault mm/memory.c:5694 [inline]
do_fault mm/memory.c:5837 [inline]
do_pte_missing mm/memory.c:4362 [inline]
handle_pte_fault mm/memory.c:6182 [inline]
__handle_mm_fault+0x347e/0x5400 mm/memory.c:6323
handle_mm_fault+0x40a/0x8e0 mm/memory.c:6492
do_user_addr_fault+0xa81/0x1390 arch/x86/mm/fault.c:1336
handle_page_fault arch/x86/mm/fault.c:1476 [inline]
exc_page_fault+0x82/0x100 arch/x86/mm/fault.c:1532
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618
RIP: 0033:0x7f24006e64d0
Code: 00 48 8b 0d 2a 49 0e 00 48 98 64 44 89 21 48 c1 f8 3f 48 8d 65 d8 5b 48 83 c8 01 41 5c 41 5d 41 5e 41 5f 5d c3 0f 1f 44 00 00 <41> 55 41 54 55 53 89 fb 8d 83 47 ff ff ff 48 83 ec 38 83 f8 0e 0f
RSP: 002b:00007fffb0d84148 EFLAGS: 00010246
RAX: 0000000000000090 RBX: 00007f24008daa80 RCX: 00007fffb0d84150
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000000000be
RBP: 00007fffb0d84470 R08: ffffffffffffffff R09: 0000000000000000
R10: 00007fffb0d841a0 R11: 0000000000000246 R12: fffffffffffffff8
R13: 00000097192d829a R14: 0000000000000000 R15: 00007f24008dc310