INFO: task syz.2.28:5485 blocked for more than 143 seconds. Not tainted 6.11.0-syzkaller-11728-gad46e8f95e93 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.28 state:D stack:27424 pid:5485 tgid:5453 ppid:5218 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5315 [inline] __schedule+0x1843/0x4ae0 kernel/sched/core.c:6675 __schedule_loop kernel/sched/core.c:6752 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6767 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6824 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a7/0xd70 kernel/locking/mutex.c:752 fdget_pos+0x24e/0x320 fs/file.c:1187 ksys_write+0x7e/0x2b0 fs/read_write.c:727 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff3c3d7dff9 RSP: 002b:00007ff3c4afb038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff3c3f36208 RCX: 00007ff3c3d7dff9 RDX: 0000000000000118 RSI: 0000000020000280 RDI: 0000000000000005 RBP: 00007ff3c3df0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007ff3c3f36208 R15: 00007ffe7c78b388 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6701 6 locks held by kworker/u8:7/2935: #0: ffff88801baeb148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801baeb148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc90009df7d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90009df7d00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffffffff8fcb2450 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x16a/0xcc0 net/core/net_namespace.c:580 #3: ffffffff8fcbef48 (rtnl_mutex){+.+.}-{3:3}, at: wiphy_unregister+0x236/0xb00 net/wireless/core.c:1100 #4: ffff888060760768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: wiphy_lock include/net/cfg80211.h:6014 [inline] #4: ffff888060760768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: wiphy_unregister+0x240/0xb00 net/wireless/core.c:1101 #5: ffffffff8e93d338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline] #5: ffffffff8e93d338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x381/0x830 kernel/rcu/tree_exp.h:976 2 locks held by kworker/u8:8/2978: #0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc90009d27d00 ((reaper_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90009d27d00 ((reaper_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 2 locks held by kworker/u8:11/3128: 2 locks held by dhcpcd/4889: #0: ffff88807db006c8 (nlk_cb_mutex-ROUTE){+.+.}-{3:3}, at: netlink_dump+0xcb/0xd80 net/netlink/af_netlink.c:2271 #1: ffffffff8fcbef48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #1: ffffffff8fcbef48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_dumpit+0x99/0x200 net/core/rtnetlink.c:6505 2 locks held by getty/4974: #0: ffff8880334320a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 3 locks held by kworker/1:5/5270: 3 locks held by kworker/0:4/5272: 1 lock held by syz.2.28/5454: #0: ffff88801c72c420 (sb_writers#21){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ffff88801c72c420 (sb_writers#21){.+.+}-{0:0}, at: vfs_writev+0x2d1/0xba0 fs/read_write.c:1062 2 locks held by syz.2.28/5482: #0: ffff8880301b7438 (&f->f_pos_lock){+.+.}-{3:3}, at: fdget_pos+0x24e/0x320 fs/file.c:1187 #1: ffff88801c72c420 (sb_writers#21){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #1: ffff88801c72c420 (sb_writers#21){.+.+}-{0:0}, at: vfs_write+0x224/0xc90 fs/read_write.c:679 1 lock held by syz.2.28/5485: #0: ffff8880301b7438 (&f->f_pos_lock){+.+.}-{3:3}, at: fdget_pos+0x24e/0x320 fs/file.c:1187 2 locks held by bch-copygc/loop/5474: 2 locks held by syz.2.170/6607: #0: ffff88801c72c0e0 (&type->s_umount_key#75){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88801c72c0e0 (&type->s_umount_key#75){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88801c72c938 (&s->s_sync_lock){+.+.}-{3:3}, at: wait_sb_inodes fs/fs-writeback.c:2619 [inline] #1: ffff88801c72c938 (&s->s_sync_lock){+.+.}-{3:3}, at: sync_inodes_sb+0x32e/0xb50 fs/fs-writeback.c:2802 7 locks held by syz-executor/7080: #0: ffff888033524420 (sb_writers#8){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ffff888033524420 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x224/0xc90 fs/read_write.c:679 #1: ffff888011aac088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1ea/0x500 fs/kernfs/file.c:325 #2: ffff888027a87f08 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20e/0x500 fs/kernfs/file.c:326 #3: ffffffff8f55cfc8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216 #4: ffff88805eb8d0e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #4: ffff88805eb8d0e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ffff88805eb8d0e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xce/0x7c0 drivers/base/dd.c:1293 #5: ffff88805eb8f250 (&devlink->lock_key#6){+.+.}-{3:3}, at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1672 #6: ffffffff8fcbef48 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x71/0x5c0 drivers/net/netdevsim/netdev.c:773 1 lock held by syz-executor/7112: #0: ffffffff8fcbef48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff8fcbef48 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6e6/0xcf0 net/core/rtnetlink.c:6643 2 locks held by syz.4.231/7148: 2 locks held by syz.0.189/7153: #0: ffff88804e7e00e0 (&type->s_umount_key#51/1){+.+.}-{3:3}, at: alloc_super+0x221/0x9d0 fs/super.c:344 #1: ffff88805de933c0 (&nilfs_bmap_mdt_lock_key){++++}-{3:3}, at: nilfs_bmap_lookup_at_level+0xb3/0x3b0 fs/nilfs2/bmap.c:68 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-syzkaller-11728-gad46e8f95e93 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xff4/0x1040 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 5474 Comm: bch-copygc/loop Not tainted 6.11.0-syzkaller-11728-gad46e8f95e93 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:check_kcov_mode kernel/kcov.c:194 [inline] RIP: 0010:write_comp_data kernel/kcov.c:246 [inline] RIP: 0010:__sanitizer_cov_trace_cmp4+0x35/0x90 kernel/kcov.c:288 Code: 14 25 80 d7 03 00 65 8b 05 a0 22 6f 7e 25 00 01 ff 00 74 10 3d 00 01 00 00 75 5b 83 ba 1c 16 00 00 00 74 52 8b 82 f8 15 00 00 <83> f8 03 75 47 48 8b 8a 00 16 00 00 44 8b 8a fc 15 00 00 49 c1 e1 RSP: 0018:ffffc9000345e778 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88802455f0d0 RCX: 000000000345e803 RDX: ffff88802e643c00 RSI: 0000000000000040 RDI: 0000000000000040 RBP: ffffc9000345ec68 R08: ffffffff840d473d R09: 0000000000000000 R10: ffffc9000345e820 R11: fffff5200068bd06 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000040 R15: 0000000000000040 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd03e93bbd0 CR3: 000000000e734000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: get_inc_field fs/bcachefs/bkey.c:162 [inline] __bkey_unpack_pos+0x2cd/0x790 fs/bcachefs/bkey.c:302 bkey_unpack_pos_format_checked fs/bcachefs/bkey.h:456 [inline] __bch2_bkey_cmp_left_packed_format_checked fs/bcachefs/bkey.c:1029 [inline] __bch2_bkey_cmp_left_packed+0xed/0x790 fs/bcachefs/bkey.c:1049 bkey_cmp_left_packed fs/bcachefs/bkey.h:88 [inline] bch2_bkey_pack_pos_lossy+0xa08/0x1990 fs/bcachefs/bkey.c:532 bch2_btree_node_iter_init+0x894/0x4280 fs/bcachefs/bset.c:1313 __btree_path_level_init fs/bcachefs/btree_iter.c:615 [inline] bch2_btree_path_level_init+0x4d2/0x9f0 fs/bcachefs/btree_iter.c:635 btree_path_lock_root fs/bcachefs/btree_iter.c:769 [inline] bch2_btree_path_traverse_one+0x10de/0x2940 fs/bcachefs/btree_iter.c:1170 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:247 [inline] __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2197 [inline] bch2_btree_iter_peek_upto+0xb58/0x6f00 fs/bcachefs/btree_iter.c:2297 bch2_btree_iter_peek_upto_type fs/bcachefs/btree_iter.h:685 [inline] bch2_copygc_get_buckets fs/bcachefs/movinggc.c:164 [inline] bch2_copygc+0x8e2/0x4650 fs/bcachefs/movinggc.c:215 bch2_copygc_thread+0x737/0xc20 fs/bcachefs/movinggc.c:375 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244