INFO: task bch-reclaim/loo:8456 blocked for more than 143 seconds. Not tainted 6.16.0-rc5-syzkaller-00053-g8c2e52ebbe88 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-reclaim/loo state:D stack:26536 pid:8456 tgid:8456 ppid:2 task_flags:0x200840 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5401 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6790 __schedule_loop kernel/sched/core.c:6868 [inline] schedule+0x165/0x360 kernel/sched/core.c:6883 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6940 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x724/0xe80 kernel/locking/mutex.c:747 btree_write_buffer_flush_seq+0x18bd/0x1a40 fs/bcachefs/btree_write_buffer.c:571 bch2_btree_write_buffer_journal_flush+0x69/0xb0 fs/bcachefs/btree_write_buffer.c:588 journal_flush_pins+0x8e3/0xe90 fs/bcachefs/journal_reclaim.c:598 __bch2_journal_reclaim+0x8e9/0xea0 fs/bcachefs/journal_reclaim.c:726 bch2_journal_reclaim_thread+0x177/0x4f0 fs/bcachefs/journal_reclaim.c:768 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 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:0/12: #0: ffff888030633148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff888030633148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3321 #1: ffffc90000117bc0 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90000117bc0 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3321 #2: ffff88802502c0e0 (&lo->lo_work_lock){..-.}-{3:3}, at: spin_lock_irq include/linux/spinlock.h:376 [inline] #2: ffff88802502c0e0 (&lo->lo_work_lock){..-.}-{3:3}, at: loop_process_work+0xb1e/0xf40 drivers/block/loop.c:1927 1 lock held by khungtaskd/31: #0: ffffffff8e13f160 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8e13f160 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8e13f160 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6770 2 locks held by getty/5597: #0: ffff88814c7f30a0 (&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/5889: 5 locks held by syz-executor/6246: #0: ffff888079fa40e0 (&type->s_umount_key#80){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff888079fa40e0 (&type->s_umount_key#80){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff888079fa40e0 (&type->s_umount_key#80){+.+.}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:506 #1: ffff88805ca80278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xf8/0x900 fs/bcachefs/super.c:676 #2: ffff88805ca84740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x18bd/0x1a40 fs/bcachefs/btree_write_buffer.c:571 #3: ffff88805ca84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff88805ca84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff88805ca84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220 fs/bcachefs/btree_iter.c:3299 #4: ffff88805caa6710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0 fs/bcachefs/btree_update_interior.c:1211 2 locks held by syz-executor/8280: #0: ffff8880619520e0 (&type->s_umount_key#94){++++}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff8880619520e0 (&type->s_umount_key#94){++++}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff8880619520e0 (&type->s_umount_key#94){++++}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:506 #1: ffffffff8e5713a8 (jfs_log_mutex){+.+.}-{4:4}, at: lmLogClose+0xb4/0x520 fs/jfs/jfs_logmgr.c:1444 3 locks held by bch-reclaim/loo/8456: #0: ffff88805cacaf68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16b/0x4f0 fs/bcachefs/journal_reclaim.c:767 #1: ffff88805ca84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #1: ffff88805ca84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #1: ffff88805ca84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80 fs/bcachefs/btree_iter.c:3505 #2: ffff88805ca84740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x18bd/0x1a40 fs/bcachefs/btree_write_buffer.c:571 2 locks held by syz-executor/9159: #0: ffff88807c8600e0 (&type->s_umount_key#94){++++}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff88807c8600e0 (&type->s_umount_key#94){++++}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff88807c8600e0 (&type->s_umount_key#94){++++}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:506 #1: ffffffff8e5713a8 (jfs_log_mutex){+.+.}-{4:4}, at: lmLogClose+0xb4/0x520 fs/jfs/jfs_logmgr.c:1444 2 locks held by syz-executor/9652: #0: ffff88804dfd80e0 (&type->s_umount_key#94){++++}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff88804dfd80e0 (&type->s_umount_key#94){++++}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff88804dfd80e0 (&type->s_umount_key#94){++++}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:506 #1: ffffffff8e5713a8 (jfs_log_mutex){+.+.}-{4:4}, at: lmLogClose+0xb4/0x520 fs/jfs/jfs_logmgr.c:1444 2 locks held by syz-executor/9756: #0: ffff8880601f80e0 (&type->s_umount_key#94){++++}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff8880601f80e0 (&type->s_umount_key#94){++++}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff8880601f80e0 (&type->s_umount_key#94){++++}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:506 #1: ffffffff8e5713a8 (jfs_log_mutex){+.+.}-{4:4}, at: lmLogClose+0xb4/0x520 fs/jfs/jfs_logmgr.c:1444 2 locks held by syz-executor/10089: #0: ffff88806813e0e0 (&type->s_umount_key#94){++++}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff88806813e0e0 (&type->s_umount_key#94){++++}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff88806813e0e0 (&type->s_umount_key#94){++++}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:506 #1: ffffffff8e5713a8 (jfs_log_mutex){+.+.}-{4:4}, at: lmLogClose+0xb4/0x520 fs/jfs/jfs_logmgr.c:1444 7 locks held by syz-executor/10766: #0: ffff888035982428 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff888035982428 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x211/0xa90 fs/read_write.c:682 #1: ffff8880595bd088 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1e0/0x4f0 fs/kernfs/file.c:325 #2: ffff8880259364b8 (kn->active#52){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x203/0x4f0 fs/kernfs/file.c:326 #3: ffffffff8ed98d88 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd1/0x360 drivers/net/netdevsim/bus.c:216 #4: ffff88805af2e0e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:884 [inline] #4: ffff88805af2e0e8 (&dev->mutex){....}-{4:4}, at: __device_driver_lock drivers/base/dd.c:1094 [inline] #4: ffff88805af2e0e8 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xb6/0x7c0 drivers/base/dd.c:1292 #5: ffff888065eed250 (&devlink->lock_key#15){+.+.}-{4:4}, at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1675 #6: ffffffff8e144c78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline] #6: ffffffff8e144c78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730 kernel/rcu/tree_exp.h:998 2 locks held by syz-executor/10820: 2 locks held by syz.5.452/10838: 1 lock held by syz.6.453/10844: 4 locks held by rm/10863: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.16.0-rc5-syzkaller-00053-g8c2e52ebbe88 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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:307 [inline] watchdog+0xfee/0x1030 kernel/hung_task.c:470 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 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: 10820 Comm: syz-executor Not tainted 6.16.0-rc5-syzkaller-00053-g8c2e52ebbe88 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:trace_lock_release include/trace/events/lock.h:69 [inline] RIP: 0010:lock_release+0x46/0x3e0 kernel/locking/lockdep.c:5882 Code: d0 d1 fe 10 48 89 44 24 28 0f 1f 44 00 00 65 8b 05 d3 d1 fe 10 83 f8 08 0f 83 9a 02 00 00 89 c0 48 0f a3 05 7c 87 02 0e 73 16 25 e0 08 00 84 c0 75 0d f6 05 ba 71 ec 0d 01 0f 84 ad 02 00 00 RSP: 0018:ffffc900050467d0 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffffffff903d3201 RCX: 12b52ff1200e6100 RDX: ffffc90005046901 RSI: ffffffff81729ae5 RDI: ffffffff8e13f160 RBP: dffffc0000000000 R08: ffffc90005046c70 R09: 0000000000000000 R10: ffffc90005046958 R11: fffff52000a08d2d R12: ffffc90005046c80 R13: ffffffff81729ae5 R14: ffffffff8e13f160 R15: ffffffff81729ae5 FS: 0000555567cc9500(0000) GS:ffff888125c4f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561af8089fd8 CR3: 000000002274e000 CR4: 00000000003526f0 Call Trace: rcu_lock_release include/linux/rcupdate.h:341 [inline] rcu_read_unlock include/linux/rcupdate.h:871 [inline] class_rcu_destructor include/linux/rcupdate.h:1155 [inline] unwind_next_frame+0x19a9/0x2390 arch/x86/kernel/unwind_orc.c:680 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4148 [inline] slab_alloc_node mm/slub.c:4197 [inline] kmem_cache_alloc_noprof+0x1c1/0x3c0 mm/slub.c:4204 __proc_create+0x384/0x8f0 fs/proc/generic.c:427 proc_create_reg fs/proc/generic.c:554 [inline] proc_create_single_data+0xa5/0x1e0 fs/proc/generic.c:661 snmp6_register_dev+0xc3/0x140 net/ipv6/proc.c:258 ipv6_add_dev+0x73e/0x1370 net/ipv6/addrconf.c:421 addrconf_notify+0x794/0x1010 net/ipv6/addrconf.c:3654 notifier_call_chain+0x1b6/0x3e0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2268 [inline] call_netdevice_notifiers net/core/dev.c:2282 [inline] register_netdevice+0x1608/0x1ae0 net/core/dev.c:11143 team_newlink+0x114/0x160 drivers/net/team/team_core.c:2231 rtnl_newlink_create+0x30d/0xb00 net/core/rtnetlink.c:3823 __rtnl_newlink net/core/rtnetlink.c:3940 [inline] rtnl_newlink+0x16d6/0x1c70 net/core/rtnetlink.c:4055 rtnetlink_rcv_msg+0x7cc/0xb70 net/core/rtnetlink.c:6944 netlink_rcv_skb+0x205/0x470 net/netlink/af_netlink.c:2534 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x758/0x8d0 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:727 __sys_sendto+0x3bd/0x520 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+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd48ef907bc 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:00007ffdfb38a4b0 EFLAGS: 00000293 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007fd48fce4620 RCX: 00007fd48ef907bc RDX: 0000000000000038 RSI: 00007fd48fce4670 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007ffdfb38a504 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003 R13: 0000000000000000 R14: 00007fd48fce4670 R15: 0000000000000000