INFO: task syz.4.124:7134 blocked for more than 145 seconds. Not tainted 6.15.0-rc1-syzkaller-g2fe2b96c3818 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.124 state:D stack:0 pid:7134 tgid:7133 ppid:6475 task_flags:0x400140 flags:0x00000009 Call trace: __switch_to+0x414/0x788 arch/arm64/kernel/process.c:701 (T) context_switch kernel/sched/core.c:5382 [inline] __schedule+0x16a4/0x2c80 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6860 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6917 __mutex_lock_common+0xda8/0x2604 kernel/locking/mutex.c:678 __mutex_lock kernel/locking/mutex.c:746 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:798 bio_find_or_create_slab block/bio.c:122 [inline] bioset_init+0x1d0/0x6cc block/bio.c:1705 bch2_fs_alloc fs/bcachefs/super.c:926 [inline] bch2_fs_open+0x2000/0x2a48 fs/bcachefs/super.c:2219 bch2_fs_get_tree+0x598/0x12cc fs/bcachefs/fs.c:2172 vfs_get_tree+0x90/0x28c fs/super.c:1759 do_new_mount+0x278/0x900 fs/namespace.c:3879 path_mount+0x590/0xe04 fs/namespace.c:4206 do_mount fs/namespace.c:4219 [inline] __do_sys_mount fs/namespace.c:4430 [inline] __se_sys_mount fs/namespace.c:4407 [inline] __arm64_sys_mount+0x4f4/0x5d0 fs/namespace.c:4407 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 INFO: task syz.4.124:7134 is blocked on a mutex likely owned by task syz-executor:6482. task:syz-executor state:R running task stack:0 pid:6482 tgid:6482 ppid:6472 task_flags:0x400140 flags:0x0000000c Call trace: __switch_to+0x414/0x788 arch/arm64/kernel/process.c:701 (T) context_switch kernel/sched/core.c:5382 [inline] __schedule+0x16a4/0x2c80 kernel/sched/core.c:6767 preempt_schedule_common+0xe8/0x1dc kernel/sched/core.c:6947 preempt_schedule+0x60/0x80 kernel/sched/core.c:6971 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x94/0x98 kernel/locking/spinlock.c:194 kasan_quarantine_remove_cache+0x248/0x3f0 mm/kasan/quarantine.c:372 kasan_cache_shutdown+0x24/0x34 mm/kasan/generic.c:212 kmem_cache_destroy+0x80/0x174 mm/slab_common.c:521 bio_put_slab block/bio.c:155 [inline] bioset_exit+0x328/0x42c block/bio.c:1664 bch2_fs_fs_io_buffered_exit+0x24/0x34 fs/bcachefs/fs-io-buffered.c:1089 __bch2_fs_free fs/bcachefs/super.c:566 [inline] bch2_fs_release+0x1c0/0x720 fs/bcachefs/super.c:631 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x2a8/0x41c lib/kobject.c:737 bch2_fs_free+0x314/0x384 fs/bcachefs/super.c:694 bch2_kill_sb+0x48/0x58 fs/bcachefs/fs.c:2304 deactivate_locked_super+0xc4/0x12c fs/super.c:473 deactivate_super+0xe0/0x100 fs/super.c:506 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1435 __cleanup_mnt+0x20/0x30 fs/namespace.c:1442 task_work_run+0x230/0x2e0 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Showing all locks held in the system: 1 lock held by kthreadd/2: 2 locks held by kworker/0:1/11: 3 locks held by kworker/u8:0/12: 3 locks held by kworker/u8:1/14: 2 locks held by kworker/1:0/24: 1 lock held by khungtaskd/32: #0: ffff800090127de0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x4/0x48 include/linux/rcupdate.h:330 3 locks held by kworker/u8:2/44: 3 locks held by kworker/u8:3/45: 1 lock held by pr/ttyAMA0/46: 3 locks held by kworker/u8:4/62: 3 locks held by kworker/u8:5/204: 3 locks held by kworker/u8:6/658: 3 locks held by kworker/R-ipv6_/4126: #0: ffff0000d29a5148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x674/0x1638 kernel/workqueue.c:3212 #1: ffff8000a3e97b20 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x708/0x1638 kernel/workqueue.c:3212 #2: ffff8000930815a8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:80 5 locks held by kworker/R-bat_e/4207: 3 locks held by kworker/u8:7/4354: 2 locks held by syslogd/6072: 1 lock held by udevd/6087: 3 locks held by dhcpcd/6141: 2 locks held by getty/6223: #0: ffff0000d78f10a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80009c1ce2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x46c/0x123c drivers/tty/n_tty.c:2222 3 locks held by syz-executor/6482: 1 lock held by syz-executor/6485: 2 locks held by kworker/1:4/6527: 2 locks held by kworker/1:5/6528: 4 locks held by kworker/1:9/6562: #0: ffff0000c0028d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x674/0x1638 kernel/workqueue.c:3212 #1: ffff8000a59b7b80 (reg_work){+.+.}-{0:0}, at: process_one_work+0x708/0x1638 kernel/workqueue.c:3212 #2: ffff8000930815a8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:80 #3: ffff0000d4208768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: class_wiphy_constructor include/net/cfg80211.h:6092 [inline] #3: ffff0000d4208768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: reg_process_self_managed_hints+0xcc/0x1d0 net/wireless/reg.c:3209 2 locks held by syz.0.102/7066: #0: ffff0000dd73a008 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #0: ffff0000dd73a008 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: __sock_release net/socket.c:646 [inline] #0: ffff0000dd73a008 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: sock_close+0x80/0x1e8 net/socket.c:1391 #1: ffff80009012d338 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #1: ffff80009012d338 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x324/0x67c kernel/rcu/tree_exp.h:998 1 lock held by syz.4.124/7134: #0: ffff800090843a88 (bio_slab_lock){+.+.}-{4:4}, at: bio_find_or_create_slab block/bio.c:122 [inline] #0: ffff800090843a88 (bio_slab_lock){+.+.}-{4:4}, at: bioset_init+0x1d0/0x6cc block/bio.c:1705 3 locks held by kworker/u8:8/7140: 3 locks held by kworker/u8:9/7142: 3 locks held by kworker/u8:10/7143: #0: ffff0000c0031948 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_one_work+0x674/0x1638 kernel/workqueue.c:3212 #1: ffff8000a1927b80 ((reg_check_chans).work){+.+.}-{0:0}, at: process_one_work+0x708/0x1638 kernel/workqueue.c:3212 #2: ffff8000930815a8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:80 1 lock held by syz-executor/7144: #0: ffff80009012d338 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline] #0: ffff80009012d338 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x354/0x67c kernel/rcu/tree_exp.h:998 3 locks held by kworker/u8:11/7146: #0: ffff0000c0031948 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_one_work+0x674/0x1638 kernel/workqueue.c:3212 #1: ffff8000a19a7b80 ((crda_timeout).work){+.+.}-{0:0}, at: process_one_work+0x708/0x1638 kernel/workqueue.c:3212 #2: ffff8000930815a8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:80 4 locks held by kworker/u8:12/7147: 3 locks held by syz-executor/7149: 4 locks held by kworker/u8:13/7150: =============================================