INFO: task bch-reclaim/loo:12899 blocked for more than 143 seconds. Not tainted 6.15.0-rc2-syzkaller-00257-gb5c6891b2c5b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-reclaim/loo state:D stack:13736 pid:12899 tgid:12899 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+0x805/0x10c0 kernel/locking/mutex.c:746 bch2_journal_reclaim_thread+0x160/0x580 fs/bcachefs/journal_reclaim.c:761 kthread+0x7b9/0x940 kernel/kthread.c:464 ret_from_fork+0x4d/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: 3 locks held by kworker/u8:1/13: #0: ffff88814dc4e948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88814dc4e948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #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: class_rcu_constructor include/linux/rcupdate.h:1155 [inline] #2: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0xb8/0x23b0 arch/x86/kernel/unwind_orc.c:479 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 udevd/5205: #0: ffff8880b8639b18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:605 #1: ffff8880b8623b08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x41f/0x7a0 kernel/sched/psi.c:987 #2: ffffffff9a77c6c8 (&____s->seqcount#2){----}-{0:0}, at: ktime_get_coarse_real_ts64_mg+0x57/0x220 kernel/time/timekeeping.c:2273 2 locks held by getty/5591: #0: ffff8880350120a0 (&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/7470: #0: ffff88802b0240e0 (&type->s_umount_key#78){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff88802b0240e0 (&type->s_umount_key#78){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88802b0240e0 (&type->s_umount_key#78){++++}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 #1: ffff88803bc00278 (&c->state_lock){+.+.}-{4:4}, at: __bch2_fs_stop+0xff/0x5b0 fs/bcachefs/super.c:636 #2: ffff88803bc4ace8 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x85/0x820 fs/bcachefs/journal_reclaim.c:872 #3: ffff88803bc04210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff88803bc04210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff88803bc04210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3382 #4: ffff88803bc045b8 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1aec/0x1ca0 fs/bcachefs/btree_write_buffer.c:569 #5: ffff88803bc26550 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x68a/0x16c0 fs/bcachefs/btree_update_interior.c:1179 3 locks held by kworker/u8:11/7621: #0: ffff8880b8639b18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xb0/0x140 kernel/sched/core.c:613 #1: ffff8880b8623b08 (&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 1 lock held by bch-reclaim/loo/12899: #0: ffff88803bc4ace8 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x160/0x580 fs/bcachefs/journal_reclaim.c:761 3 locks held by syz-executor/14120: #0: ffffffff900fd608 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #0: ffffffff900fd608 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline] #0: ffffffff900fd608 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xd68/0x1fe0 net/core/rtnetlink.c:4064 #1: ffff8880794e4d30 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2751 [inline] #1: ffff8880794e4d30 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: netdev_lock_ops include/net/netdev_lock.h:42 [inline] #1: ffff8880794e4d30 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: do_setlink+0x3c1/0x4390 net/core/rtnetlink.c:3051 #2: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #2: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x454/0x830 kernel/rcu/tree_exp.h:998 1 lock held by syz.0.1545/14154: #0: ffff88802b0240e0 (&type->s_umount_key#78){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff88802b0240e0 (&type->s_umount_key#78){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 2 locks held by syz-executor/14358: #0: ffffffff906025c8 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff906025c8 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff906025c8 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x22/0x250 net/core/rtnetlink.c:570 #1: ffffffff900fd608 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #1: ffffffff900fd608 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline] #1: ffffffff900fd608 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xd68/0x1fe0 net/core/rtnetlink.c:4064 1 lock held by syz.8.1654/14793: #0: ffffffff8ebf8268 (sched_core_mutex){+.+.}-{4:4}, at: sched_core_get+0x51/0x180 kernel/sched/core.c:451 1 lock held by syz.8.1654/14794: #0: ffffffff8ebf8268 (sched_core_mutex){+.+.}-{4:4}, at: sched_core_get+0x51/0x180 kernel/sched/core.c:451 2 locks held by syz.2.1656/14769: #0: ffff888029cc1c70 (&fc->uapi_mutex){+.+.}-{4:4}, at: __do_sys_fsconfig fs/fsopen.c:465 [inline] #0: ffff888029cc1c70 (&fc->uapi_mutex){+.+.}-{4:4}, at: __se_sys_fsconfig+0x9a3/0xf40 fs/fsopen.c:344 #1: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline] #1: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x384/0x830 kernel/rcu/tree_exp.h:998 1 lock held by dhcpcd-run-hook/14801: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc2-syzkaller-00257-gb5c6891b2c5b #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+0x7b9/0x940 kernel/kthread.c:464 ret_from_fork+0x4d/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: 14120 Comm: syz-executor Not tainted 6.15.0-rc2-syzkaller-00257-gb5c6891b2c5b #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:native_apic_msr_eoi+0xf/0x20 arch/x86/include/asm/apic.h:218 Code: f8 e9 60 1c a4 ff 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa b9 0b 08 00 00 31 c0 31 d2 0f 30 37 1c a4 ff 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 RSP: 0018:ffffc90000007fc0 EFLAGS: 00000046 RAX: 0000000000000000 RBX: ffffc9000b496738 RCX: 000000000000080b RDX: 0000000000000000 RSI: ffffffff8c479860 RDI: ffffffff8ca1b5a0 RBP: 0000000000000000 R08: ffffffff8161c261 R09: 1ffffffff20bfcae R10: dffffc0000000000 R11: ffffc90000007ff8 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000555555946500(0000) GS:ffff888124f9a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f808eb80178 CR3: 00000000361b6000 CR4: 0000000000350ef0 Call Trace: apic_eoi arch/x86/include/asm/apic.h:410 [inline] __sysvec_apic_timer_interrupt+0x47/0x420 arch/x86/kernel/apic/apic.c:1053 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2061 [inline] RIP: 0010:vprintk_emit+0x731/0xa40 kernel/printk/printk.c:2449 Code: 00 e8 d3 27 21 00 4c 8d bc 24 a0 00 00 00 4d 85 e4 75 07 e8 c1 27 21 00 eb 06 e8 ba 27 21 00 fb 49 bc 00 00 00 00 00 fc ff df <48> c7 c7 80 9a c1 8e 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 RSP: 0018:ffffc9000b4967e0 EFLAGS: 00000293 RAX: ffffffff81a19306 RBX: 0000000000000000 RCX: ffff8880364c9e00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000b4968f0 R08: ffffffff81a192df R09: 1ffffffff20bfcae R10: dffffc0000000000 R11: fffffbfff20bfcaf R12: dffffc0000000000 R13: 1ffff92001692d00 R14: ffffffff81a19132 R15: ffffc9000b496880 dev_vprintk_emit+0x358/0x420 drivers/base/core.c:4891 dev_printk_emit+0xdf/0x130 drivers/base/core.c:4902 __netdev_printk+0x3e0/0x4d0 net/core/dev.c:12403 netdev_info+0x12d/0x180 net/core/dev.c:12458 netif_change_name+0x913/0xa20 net/core/dev.c:1412 do_setlink+0xc8c/0x4390 net/core/rtnetlink.c:3132 rtnl_changelink net/core/rtnetlink.c:3769 [inline] __rtnl_newlink net/core/rtnetlink.c:3928 [inline] rtnl_newlink+0x17e2/0x1fe0 net/core/rtnetlink.c:4065 rtnetlink_rcv_msg+0x811/0xd70 net/core/rtnetlink.c:6955 netlink_rcv_skb+0x20a/0x480 net/netlink/af_netlink.c:2534 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x7fa/0x9a0 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x8c3/0xcd0 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x223/0x270 net/socket.c:727 __sys_sendto+0x365/0x4c0 net/socket.c:2180 __do_sys_sendto net/socket.c:2187 [inline] __se_sys_sendto net/socket.c:2183 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2183 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:0x7fddb978fffc Code: 2a 5f 02 00 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 70 5f 02 00 48 8b RSP: 002b:00007fffafe24240 EFLAGS: 00000293 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007fddba4e35c0 RCX: 00007fddb978fffc RDX: 0000000000000030 RSI: 00007fddba4e3610 RDI: 0000000000000006 RBP: 0000000000000000 R08: 00007fffafe24294 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000006 R13: 0000000000000000 R14: 00007fddba4e3610 R15: 0000000000000000