INFO: task syz.2.40:6314 blocked for more than 143 seconds.
Not tainted 6.15.0-rc3-syzkaller-00076-ge72e9e693307 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.40 state:D stack:27944 pid:6314 tgid:6252 ppid:5839 task_flags:0x400040 flags:0x00000004
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
rwsem_down_write_slowpath+0xedd/0x1420 kernel/locking/rwsem.c:1176
__down_write_common kernel/locking/rwsem.c:1304 [inline]
__down_write kernel/locking/rwsem.c:1313 [inline]
down_write_nested+0x1e2/0x220 kernel/locking/rwsem.c:1694
inode_lock_nested include/linux/fs.h:902 [inline]
filename_create+0x262/0x510 fs/namei.c:4132
do_mkdirat+0xbf/0x3f0 fs/namei.c:4384
__do_sys_mkdir fs/namei.c:4414 [inline]
__se_sys_mkdir fs/namei.c:4412 [inline]
__x64_sys_mkdir+0x6c/0x80 fs/namei.c:4412
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd13e18e969
RSP: 002b:00007fd13f06a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007fd13e3b6080 RCX: 00007fd13e18e969
RDX: 0000000000000000 RSI: 0000000000000092 RDI: 00002000000004c0
RBP: 00007fd13e210ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fd13e3b6080 R15: 00007ffea2526a68
INFO: task syz.2.40:6315 blocked for more than 144 seconds.
Not tainted 6.15.0-rc3-syzkaller-00076-ge72e9e693307 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.40 state:D
stack:27944 pid:6315 tgid:6252 ppid:5839 task_flags:0x400040 flags:0x00000004
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
rwsem_down_write_slowpath+0xedd/0x1420 kernel/locking/rwsem.c:1176
__down_write_common kernel/locking/rwsem.c:1304 [inline]
__down_write kernel/locking/rwsem.c:1313 [inline]
down_write_nested+0x1e2/0x220 kernel/locking/rwsem.c:1694
inode_lock_nested include/linux/fs.h:902 [inline]
do_unlinkat+0x26c/0x810 fs/namei.c:4630
__do_sys_unlinkat fs/namei.c:4684 [inline]
__se_sys_unlinkat fs/namei.c:4677 [inline]
__x64_sys_unlinkat+0xcc/0xf0 fs/namei.c:4677
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd13e18e969
RSP: 002b:00007fd13f049038 EFLAGS: 00000246 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 00007fd13e3b6160 RCX: 00007fd13e18e969
RDX: 0000000000000000 RSI: 0000200000000c40 RDI: ffffffffffffff9c
RBP: 00007fd13e210ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fd13e3b6160 R15: 00007ffea2526a68
Showing all locks held in the system:
1 lock held by ksoftirqd/1/23:
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:2/36:
#0: ffff88801b089148 ((wq_completion)events_unbound
){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319
#1: ffffc90000ad7c60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc90000ad7c60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319
#2: ffffffff900eb548 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:303
5 locks held by kworker/u8:3/53:
#0: ffff88801bef3948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff88801bef3948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319
#1: ffffc90000be7c60 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc90000be7c60 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319
#2: ffffffff900dea10 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x17c/0xd60 net/core/net_namespace.c:608
#3: ffffffff900eb548 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0xde/0x880 net/core/dev.c:12524
#4: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline]
#4: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x454/0x830 kernel/rcu/tree_exp.h:998
3 locks held by kworker/u8:5/1086:
#0: ffff8880b8739998 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:605
#1: ffff8880b8723b08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x41f/0x7a0 kernel/sched/psi.c:987
#2: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#2: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#2: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
#2: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: batadv_nc_worker+0xcb/0x610 net/batman-adv/network-coding.c:719
7 locks held by kworker/u8:12/3019:
#0: ffff888024d25148 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff888024d25148 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319
#1: ffffc9000c9a7c60 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc9000c9a7c60 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319
#2: ffff888046f84228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#2: ffff888046f84228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#2: ffff888046f84228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3382
#3: ffff88802333c140 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked fs/bcachefs/btree_locking.h:198 [inline]
#3: ffff88802333c140 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0x9cc/0x1d30 fs/bcachefs/btree_iter.c:3279
#4: ffff888046fcaf08 (journal res){.+.+}-{0:0}, at: bch2_journal_res_get fs/bcachefs/journal.h:406 [inline]
#4: ffff888046fcaf08 (journal res){.+.+}-{0:0}, at: bch2_trans_journal_res_get fs/bcachefs/btree_trans_commit.c:352 [inline]
#4: ffff888046fcaf08 (journal res){.+.+}-{0:0}, at: bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:630 [inline]
#4: ffff888046fcaf08 (journal res){.+.+}-{0:0}, at: do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:844 [inline]
#4: ffff888046fcaf08 (journal res){.+.+}-{0:0}, at: __bch2_trans_commit+0x45b8/0x9da0 fs/bcachefs/btree_trans_commit.c:1050
#5: ffff888046f84860 (&c->mark_lock){++++}-{0:0}, at: bch2_accounting_mem_insert+0x690/0x1a80 fs/bcachefs/disk_accounting.c:372
#6: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline]
#6: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x454/0x830 kernel/rcu/tree_exp.h:998
1 lock held by dhcpcd/5500:
#0: ffffffff900eb548 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline]
#0: ffffffff900eb548 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x406/0x1c40 net/ipv4/devinet.c:979
2 locks held by getty/5588:
#0: ffff8880369e20a0 (&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
5 locks held by syz.2.40/6256:
#0: ffff88806a78e420 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556
#1: ffff88807c571810 (&sb->s_type->i_mutex_key#24/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:902 [inline]
#1: ffff88807c571810 (&sb->s_type->i_mutex_key#24/1){+.+.}-{4:4}, at: filename_create+0x262/0x510 fs/namei.c:4132
#2: ffff88807c571bf8 (&inode->ei_update_lock){+.+.}-{4:4}, at: __bch2_create+0x359/0xf40 fs/bcachefs/fs.c:550
#3: ffff888055004228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#3: ffff888055004228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#3: ffff888055004228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3382
#4: ffff888055026590 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x68a/0x16c0 fs/bcachefs/btree_update_interior.c:1179
2 locks held by syz.2.40/6314:
#0: ffff88806a78e420 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556
#1: ffff88807c571810 (&sb->s_type->i_mutex_key#24/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:902 [inline]
#1: ffff88807c571810 (&sb->s_type->i_mutex_key#24/1){+.+.}-{4:4}, at: filename_create+0x262/0x510 fs/namei.c:4132
2 locks held by syz.2.40/6315:
#0: ffff88806a78e420 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556
#1: ffff88807c571810 (&sb->s_type->i_mutex_key#24/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:902 [inline]
#1: ffff88807c571810 (&sb->s_type->i_mutex_key#24/1){+.+.}-{4:4}, at: do_unlinkat+0x26c/0x810 fs/namei.c:4630
1 lock held by bch-copygc/loop/6312:
2 locks held by syz-executor/7144:
#0: ffff8880445b80e0 (&type->s_umount_key#66){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline]
#0: ffff8880445b80e0 (&type->s_umount_key#66){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff8880445b80e0 (&type->s_umount_key#66){++++}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505
#1: ffff888046f80278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xff/0x5b0 fs/bcachefs/super.c:637
2 locks held by syz-executor/8702:
#0: ffffffff905ef6b0 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff905ef6b0 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#0: ffffffff905ef6b0 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x22/0x250 net/core/rtnetlink.c:570
#1: ffffffff900eb548 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline]
#1: ffffffff900eb548 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline]
#1: ffffffff900eb548 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xd68/0x1fe0 net/core/rtnetlink.c:4064
3 locks held by bch-reclaim/loo/8834:
#0: ffff888046fcad28 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x160/0x580 fs/bcachefs/journal_reclaim.c:761
#1: ffff888046f84228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#1: ffff888046f84228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#1: ffff888046f84228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3382
#2: ffff88806ac00140 (bcachefs_btree){+.+.}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#2: ffff88806ac00140 (bcachefs_btree){+.+.}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#2: ffff88806ac00140 (bcachefs_btree){+.+.}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3382
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc3-syzkaller-00076-ge72e9e693307 #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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 6312 Comm: bch-copygc/loop Not tainted 6.15.0-rc3-syzkaller-00076-ge72e9e693307 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:unpack_state_init fs/bcachefs/bkey.c:151 [inline]
RIP: 0010:__bkey_unpack_pos+0x59/0x790 fs/bcachefs/bkey.c:294
Code: e8 03 42 0f b6 04 28 84 c0 0f 85 e2 04 00 00 48 89 5c 24 10 0f b6 1b 8d 43 ff 49 8d 2c c7 48 89 e8 48 c1 e8 03 42 80 3c 28 00 <74> 08 48 89 ef e8 4d 41 de fd 48 89 6c 24 08 4c 8b 75 00 ba 0c 00
RSP: 0018:ffffc9000c426280 EFLAGS: 00000246
RAX: 1ffff1100af90024 RBX: 0000000000000003 RCX: ffff88802ea13c00
RDX: 0000000000000000 RSI: ffff8880358198c0 RDI: ffffc9000c426340
RBP: ffff888057c80120 R08: ffffffff844c851b R09: 0000000000880000
R10: ffff888057c80111 R11: fffff52001884c72 R12: ffffc9000c426340
R13: dffffc0000000000 R14: 00000000ffffffff R15: ffff888057c80110
FS: 0000000000000000(0000) GS:ffff888124fcf000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd5550d538 CR3: 000000002946a000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
bkey_unpack_pos_format_checked fs/bcachefs/bkey.h:449 [inline]
bkey_unpack_pos fs/bcachefs/bkey.h:457 [inline]
__bch2_bkey_cmp_packed_format_checked_inlined fs/bcachefs/bkey_cmp.h:103 [inline]
__bch2_bkey_cmp_packed_format_checked+0x2c9/0x800 fs/bcachefs/bkey.c:1020
bkey_cmp_p_or_unp fs/bcachefs/bset.h:291 [inline]
bkey_iter_cmp_p_or_unp fs/bcachefs/bset.h:400 [inline]
bch2_bset_search_linear fs/bcachefs/bset.c:1189 [inline]
bch2_btree_node_iter_init+0x23a1/0x42e0 fs/bcachefs/bset.c:1334
__btree_path_level_init fs/bcachefs/btree_iter.c:603 [inline]
bch2_btree_path_level_init+0x4e4/0xa00 fs/bcachefs/btree_iter.c:623
btree_path_lock_root fs/bcachefs/btree_iter.c:773 [inline]
bch2_btree_path_traverse_one+0x10af/0x2970 fs/bcachefs/btree_iter.c:1189
bch2_btree_path_traverse fs/bcachefs/btree_iter.h:248 [inline]
__bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2243 [inline]
bch2_btree_iter_peek_max+0xb9b/0x61a0 fs/bcachefs/btree_iter.c:2347
bch2_btree_iter_peek fs/bcachefs/btree_iter.h:409 [inline]
__bch2_move_data_phys+0xcbf/0x2830 fs/bcachefs/move.c:797
bch2_evacuate_bucket+0x1d9/0x2e0 fs/bcachefs/move.c:946
bch2_copygc+0x4058/0x4db0 fs/bcachefs/movinggc.c:240
bch2_copygc_thread+0x705/0xc00 fs/bcachefs/movinggc.c:398
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