INFO: task kworker/u8:5:78 blocked for more than 144 seconds.
Not tainted 6.15.0-rc4-syzkaller-00042-gb6ea1680d0ac #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u8:5 state:D stack:21240 pid:78 tgid:78 ppid:2 task_flags:0x4208060 flags:0x00004000
Workqueue: writeback wb_workfn (flush-bcachefs-10)
Call Trace:
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0x168f/0x4c70 kernel/sched/core.c:6767
__schedule_loop kernel/sched/core.c:6845 [inline]
schedule+0x165/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+0x724/0xe80 kernel/locking/mutex.c:746
bch2_vfs_write_inode+0x6a/0xd0 fs/bcachefs/fs.c:2171
write_inode fs/fs-writeback.c:1525 [inline]
__writeback_single_inode+0x6ee/0xff0 fs/fs-writeback.c:1745
writeback_sb_inodes+0x6b5/0x1000 fs/fs-writeback.c:1976
__writeback_inodes_wb+0x111/0x240 fs/fs-writeback.c:2047
wb_writeback+0x44f/0xaf0 fs/fs-writeback.c:2158
wb_check_old_data_flush fs/fs-writeback.c:2262 [inline]
wb_do_writeback fs/fs-writeback.c:2315 [inline]
wb_workfn+0xaef/0xef0 fs/fs-writeback.c:2343
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319
worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400
kthread+0x70e/0x8a0 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 syz.3.66:6343 blocked for more than 145 seconds.
Not tainted 6.15.0-rc4-syzkaller-00042-gb6ea1680d0ac #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.66 state:D stack:20008 pid:6343 tgid:6341 ppid:5818 task_flags:0x400140 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0x168f/0x4c70 kernel/sched/core.c:6767
__schedule_loop kernel/sched/core.c:6845 [inline]
schedule+0x165/0x360 kernel/sched/core.c:6860
__closure_sync+0x163/0x220 lib/closure.c:146
bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:256 [inline]
bch2_btree_update_start+0x1193/0x14c0 fs/bcachefs/btree_update_interior.c:1251
bch2_btree_split_leaf+0x13c/0x8f0 fs/bcachefs/btree_update_interior.c:1864
bch2_trans_commit_error+0x1a8/0x1100 fs/bcachefs/btree_trans_commit.c:904
__bch2_trans_commit+0x779c/0x8ae0 fs/bcachefs/btree_trans_commit.c:1069
bch2_trans_commit fs/bcachefs/btree_update.h:195 [inline]
__bch2_create+0x887/0xb90 fs/bcachefs/fs.c:593
bch2_mknod fs/bcachefs/fs.c:750 [inline]
bch2_mkdir+0x62/0xd0 fs/bcachefs/fs.c:910
vfs_mkdir+0x303/0x510 fs/namei.c:4359
do_mkdirat+0x247/0x590 fs/namei.c:4392
__do_sys_mkdirat fs/namei.c:4409 [inline]
__se_sys_mkdirat fs/namei.c:4407 [inline]
__x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4407
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fafad98d1d7
RSP: 002b:00007fafae7eee68 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fafae7eeef0 RCX: 00007fafad98d1d7
RDX: 00000000000001ff RSI: 0000200000000100 RDI: 00000000ffffff9c
RBP: 0000000000000000 R08: 0000200000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000100
R13: 00007fafae7eeeb0 R14: 0000000000000000 R15: 0000000000000000
Showing all locks held in the system:
1 lock held by pool_workqueue_/3:
#0: ffffffff8df41338 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline]
#0: ffffffff8df41338 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b7/0x730 kernel/rcu/tree_exp.h:998
2 locks held by kworker/u8:0/12:
#0: ffff88801c7dd148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff88801c7dd148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x9b1/0x17a0 kernel/workqueue.c:3319
#1: ffffc90000117c60 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc90000117c60 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ec/0x17a0 kernel/workqueue.c:3319
3 locks held by kworker/u8:1/13:
1 lock held by khungtaskd/31:
#0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6764
4 locks held by kworker/u8:5/78:
#0: ffff8881442c3948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff8881442c3948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9b1/0x17a0 kernel/workqueue.c:3319
#1: ffffc90001597c60 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc90001597c60 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ec/0x17a0 kernel/workqueue.c:3319
#2: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_trylock_shared+0x20/0xf0 fs/super.c:562
#3: ffff88805e77a390 (&inode->ei_update_lock){+.+.}-{4:4}, at: bch2_vfs_write_inode+0x6a/0xd0 fs/bcachefs/fs.c:2171
4 locks held by dhcpcd/5483:
#0: ffff8880b88399d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:605
#1: ffff8880b8823b08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x39e/0x6d0 kernel/sched/psi.c:987
#2: ffff88802f8ba828 (&p->pi_lock){-.-.}-{2:2}, at: class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:557 [inline]
#2: ffff88802f8ba828 (&p->pi_lock){-.-.}-{2:2}, at: try_to_wake_up+0x6e/0x1290 kernel/sched/core.c:4212
#3: ffff8880b88399d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:605
1 lock held by dhcpcd/5484:
2 locks held by getty/5571:
#0: ffff88814d7250a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002ffe2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222
5 locks held by syz.3.66/6343:
#0: ffff88807ceca420 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:556
#1: ffff88805e779fa8 (&sb->s_type->i_mutex_key#22/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:902 [inline]
#1: ffff88805e779fa8 (&sb->s_type->i_mutex_key#22/1){+.+.}-{4:4}, at: filename_create+0x1f9/0x470 fs/namei.c:4132
#2: ffff88805e77a390 (&inode->ei_update_lock){+.+.}-{4:4}, at: __bch2_create+0x2f2/0xb90 fs/bcachefs/fs.c:567
#3: ffff88805e304228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#3: ffff88805e304228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#3: ffff88805e304228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220 fs/bcachefs/btree_iter.c:3202
#4: ffff88805e326590 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x68f/0x14c0 fs/bcachefs/btree_update_interior.c:1179
2 locks held by bch-copygc/loop/6391:
2 locks held by syz.5.134/7022:
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_lock+0x2a9/0x3b0 fs/super.c:120
#1: ffff88807cecc7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline]
#1: ffff88807cecc7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x19f/0xa10 fs/fs-writeback.c:2831
1 lock held by syz-executor/7479:
#0: ffffffff8df41338 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline]
#0: ffffffff8df41338 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b7/0x730 kernel/rcu/tree_exp.h:998
2 locks held by syz.7.171/7499:
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_lock+0x2a9/0x3b0 fs/super.c:120
#1: ffff88807cecc7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline]
#1: ffff88807cecc7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x19f/0xa10 fs/fs-writeback.c:2831
2 locks held by syz.4.179/7563:
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_lock+0x2a9/0x3b0 fs/super.c:120
#1: ffff88807cecc7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline]
#1: ffff88807cecc7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x19f/0xa10 fs/fs-writeback.c:2831
2 locks held by syz.8.190/7745:
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_lock+0x2a9/0x3b0 fs/super.c:120
#1: ffff88807cecc7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline]
#1: ffff88807cecc7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x19f/0xa10 fs/fs-writeback.c:2831
2 locks held by syz.8.190/7769:
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_lock+0x2a9/0x3b0 fs/super.c:120
#1: ffff88807cecc7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline]
#1: ffff88807cecc7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x19f/0xa10 fs/fs-writeback.c:2831
1 lock held by syz.3.219/8082:
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline]
#0: ffff88807ceca0e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_lock+0x25c/0x3b0 fs/super.c:120
2 locks held by syz-executor/8304:
#0: ffff888054e760e0 (&type->s_umount_key#51){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline]
#0: ffff888054e760e0 (&type->s_umount_key#51){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff888054e760e0 (&type->s_umount_key#51){++++}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:505
#1: ffffffff8df41200 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x570 kernel/rcu/tree.c:3774
1 lock held by dhcpcd/9140:
#0: ffff88803162c258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1651 [inline]
#0: ffff88803162c258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x32/0xcd0 net/packet/af_packet.c:3252
2 locks held by rm/9154:
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc4-syzkaller-00042-gb6ea1680d0ac #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/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:158 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline]
watchdog+0xfee/0x1030 kernel/hung_task.c:437
kthread+0x70e/0x8a0 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: 70 Comm: kworker/u8:4 Not tainted 6.15.0-rc4-syzkaller-00042-gb6ea1680d0ac #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Workqueue: events_unbound nsim_dev_trap_report_work
RIP: 0010:chacha_permute+0x3/0xf00 lib/crypto/chacha.c:17
Code: 48 89 da e9 1a f8 ff ff e8 4a 9a 9c 06 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 55 41 57 <41> 56 41 55 41 54 53 48 81 ec 38 01 00 00 89 f5 48 89 7c 24 10 e8
RSP: 0018:ffffc900015675c8 EFLAGS: 00000097
RAX: ffffc90001567620 RBX: ffffc90001567720 RCX: ffffffff84b21f22
RDX: 00000000ffffffff RSI: 0000000000000014 RDI: ffffc90001567620
RBP: ffffc900015676d0 R08: eb48fe24e9e8137e R09: 9ec6b1f41bb95d05
R10: 6b20657479622d32 R11: 3320646e61707865 R12: ffffc90001567620
R13: dffffc0000000000 R14: ffffc90001567900 R15: 0000000000000014
FS: 0000000000000000(0000) GS:ffff888126100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055de3b896950 CR3: 0000000055aa4000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
chacha_block_generic+0xad/0xda0 lib/crypto/chacha.c:83
chacha20_block include/crypto/chacha.h:36 [inline]
crng_fast_key_erasure+0x14f/0x240 drivers/char/random.c:326
crng_make_state+0x255/0x700 drivers/char/random.c:392
_get_random_bytes+0xd5/0x210 drivers/char/random.c:406
nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:775 [inline]
nsim_dev_trap_report drivers/net/netdevsim/dev.c:805 [inline]
nsim_dev_trap_report_work+0x69e/0xb80 drivers/net/netdevsim/dev.c:851
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319
worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400
kthread+0x70e/0x8a0 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