INFO: task syz.2.106:6923 blocked for more than 143 seconds. Not tainted 6.16.0-rc6-syzkaller-00121-g6832a9317eee #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.106 state:D stack:17224 pid:6923 tgid:6922 ppid:5847 task_flags:0x440140 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5397 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6786 __schedule_loop kernel/sched/core.c:6864 [inline] schedule+0x165/0x360 kernel/sched/core.c:6879 __bch2_two_state_lock+0x1ea/0x370 fs/bcachefs/two_state_shared_lock.c:7 bch2_two_state_lock fs/bcachefs/two_state_shared_lock.h:55 [inline] bch2_readahead+0x94f/0x1100 fs/bcachefs/fs-io-buffered.c:296 read_pages+0x17a/0x580 mm/readahead.c:160 page_cache_ra_order+0xa24/0xc70 mm/readahead.c:515 filemap_get_pages+0x43c/0x1ea0 mm/filemap.c:2602 filemap_splice_read+0x4fc/0xbc0 mm/filemap.c:2990 do_splice_read fs/splice.c:979 [inline] splice_direct_to_actor+0x4a9/0xcc0 fs/splice.c:1083 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x181/0x270 fs/splice.c:1227 do_sendfile+0x4da/0x7e0 fs/read_write.c:1370 __do_sys_sendfile64 fs/read_write.c:1431 [inline] __se_sys_sendfile64+0x13e/0x190 fs/read_write.c:1417 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:0x7f556d18e9a9 RSP: 002b:00007f556e050038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f556d3b5fa0 RCX: 00007f556d18e9a9 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000008 RBP: 00007f556d210ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000e3aa6ea R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f556d3b5fa0 R15: 00007ffdf0003ea8 INFO: task syz.2.106:6966 blocked for more than 144 seconds. Not tainted 6.16.0-rc6-syzkaller-00121-g6832a9317eee #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.106 state:D stack:25640 pid:6966 tgid:6922 ppid:5847 task_flags:0x400040 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5397 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6786 __schedule_loop kernel/sched/core.c:6864 [inline] schedule+0x165/0x360 kernel/sched/core.c:6879 io_schedule+0x81/0xe0 kernel/sched/core.c:7724 folio_wait_bit_common+0x6b0/0xb90 mm/filemap.c:1317 folio_lock include/linux/pagemap.h:1114 [inline] truncate_inode_pages_range+0xa77/0xda0 mm/truncate.c:433 bchfs_fpunch+0x1d8/0x520 fs/bcachefs/fs-io.c:570 bch2_fallocate_dispatch+0x2bc/0x410 fs/bcachefs/fs-io.c:838 vfs_fallocate+0x6a3/0x830 fs/open.c:341 ioctl_preallocate fs/ioctl.c:290 [inline] file_ioctl+0x611/0x780 fs/ioctl.c:-1 do_vfs_ioctl+0xe80/0x1990 fs/ioctl.c:886 __do_sys_ioctl fs/ioctl.c:905 [inline] __se_sys_ioctl+0x82/0x170 fs/ioctl.c:893 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:0x7f556d18e9a9 RSP: 002b:00007f556e02f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f556d3b6080 RCX: 00007f556d18e9a9 RDX: 0000200000000100 RSI: 0000000040305829 RDI: 0000000000000006 RBP: 00007f556d210ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f556d3b6080 R15: 00007ffdf0003ea8 Showing all locks held in the system: 1 lock held by pool_workqueue_/3: 4 locks held by kworker/u8:0/12: 1 lock held by khungtaskd/31: #0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6770 5 locks held by kworker/u8:6/1146: 3 locks held by kworker/u8:8/1165: #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3321 #1: ffffc90003edfbc0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90003edfbc0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3321 #2: ffffffff8f509988 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:303 2 locks held by kworker/u8:9/3500: 2 locks held by getty/5600: #0: ffff8880317e30a0 (&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 3 locks held by kworker/0:5/5922: #0: ffff88801a480d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801a480d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3321 #1: ffffc900045afbc0 (deferred_process_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc900045afbc0 (deferred_process_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3321 #2: ffffffff8f509988 (rtnl_mutex){+.+.}-{4:4}, at: switchdev_deferred_process_work+0xe/0x20 net/switchdev/switchdev.c:104 1 lock held by syz.2.106/6923: #0: ffff888076693810 (mapping.invalidate_lock#8){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff888076693810 (mapping.invalidate_lock#8){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 2 locks held by syz.2.106/6966: #0: ffff888027d00428 (sb_writers#21){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff888027d00428 (sb_writers#21){.+.+}-{0:0}, at: vfs_fallocate+0x62a/0x830 fs/open.c:340 #1: ffff888076693670 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff888076693670 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: bch2_fallocate_dispatch+0x10e/0x410 fs/bcachefs/fs-io.c:827 1 lock held by syz.3.235/8281: #0: ffff88807bef8428 (sb_writers#21){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff88807bef8428 (sb_writers#21){.+.+}-{0:0}, at: vfs_write+0x211/0xa90 fs/read_write.c:682 2 locks held by syz.3.235/8319: #0: ffff88807bef8428 (sb_writers#21){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:557 #1: ffff888076695c68 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: inode_lock_killable include/linux/fs.h:874 [inline] #1: ffff888076695c68 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: do_truncate+0x171/0x220 fs/open.c:63 3 locks held by syz.3.235/8321: #0: ffff88807bef8428 (sb_writers#21){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:557 #1: ffff888056902740 (&sb->s_type->i_mutex_key#27/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:914 [inline] #1: ffff888056902740 (&sb->s_type->i_mutex_key#27/1){+.+.}-{4:4}, at: lock_rename fs/namei.c:3281 [inline] #1: ffff888056902740 (&sb->s_type->i_mutex_key#27/1){+.+.}-{4:4}, at: do_renameat2+0x3dd/0xc50 fs/namei.c:5232 #2: ffff888076695c68 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #2: ffff888076695c68 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: lock_two_nondirectories+0xe7/0x180 fs/inode.c:1233 2 locks held by syz-executor/8332: #0: ffff8880242c20e0 (&type->s_umount_key#64){++++}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff8880242c20e0 (&type->s_umount_key#64){++++}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff8880242c20e0 (&type->s_umount_key#64){++++}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:506 #1: ffff88803a380278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xf8/0x900 fs/bcachefs/super.c:676 2 locks held by syz-executor/9238: #0: ffffffff8f4fcd90 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x304/0x4d0 net/core/net_namespace.c:570 #1: ffffffff8f509988 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock_killable include/linux/rtnetlink.h:145 [inline] #1: ffffffff8f509988 (rtnl_mutex){+.+.}-{4:4}, at: register_netdev+0x18/0x60 net/core/dev.c:11218 2 locks held by syz.4.313/9268: 3 locks held by sed/9291: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.16.0-rc6-syzkaller-00121-g6832a9317eee #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+0x3fc/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: 12 Comm: kworker/u8:0 Not tainted 6.16.0-rc6-syzkaller-00121-g6832a9317eee #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: netns cleanup_net RIP: 0010:__lock_is_held kernel/locking/lockdep.c:5601 [inline] RIP: 0010:lock_is_held_type+0xb6/0x190 kernel/locking/lockdep.c:5943 Code: eb 48 81 c3 f0 0a 00 00 45 31 ff 49 83 ff 31 73 24 48 89 df 4c 89 f6 e8 78 02 00 00 85 c0 75 2a 49 ff c7 49 63 85 e8 0a 00 00 <48> 83 c3 28 49 39 c7 7c d8 eb 11 48 c7 c7 f0 04 01 8e 4c 89 fe e8 RSP: 0018:ffffc900001172f8 EFLAGS: 00000006 RAX: 0000000000000005 RBX: ffff88801d29e590 RCX: 0ac016fd0981ff00 RDX: 0000000000000000 RSI: ffffffff8e13f140 RDI: ffff88801d29e590 RBP: 00000000ffffffff R08: 0000000000000000 R09: ffffffff8259b64c R10: dffffc0000000000 R11: ffffed1008cd38b5 R12: 0000000000000246 R13: ffff88801d29da00 R14: ffffffff8e13f140 R15: 0000000000000005 FS: 0000000000000000(0000) GS:ffff888125c59000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdf100ce88 CR3: 000000002feac000 CR4: 00000000003526f0 Call Trace: lock_is_held include/linux/lockdep.h:249 [inline] __might_resched+0xa6/0x610 kernel/sched/core.c:8762 down_write+0x76/0x1f0 kernel/locking/rwsem.c:1576 kernfs_unlink_sibling+0x71/0x180 fs/kernfs/dir.c:424 __kernfs_remove+0x353/0x570 fs/kernfs/dir.c:1514 kernfs_remove_by_name_ns+0xaf/0x130 fs/kernfs/dir.c:1717 kernfs_remove_by_name include/linux/kernfs.h:633 [inline] sysfs_unmerge_group+0xd4/0x140 fs/sysfs/group.c:402 rpm_sysfs_remove drivers/base/power/sysfs.c:823 [inline] dpm_sysfs_remove+0x76/0xd0 drivers/base/power/sysfs.c:832 device_del+0x251/0x8e0 drivers/base/core.c:3856 unregister_netdevice_many_notify+0x1d52/0x2320 net/core/dev.c:12112 ops_exit_rtnl_list net/core/net_namespace.c:188 [inline] ops_undo_list+0x3dc/0x990 net/core/net_namespace.c:249 cleanup_net+0x4c5/0x800 net/core/net_namespace.c:686 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3321 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3402 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245