INFO: task syz.1.281:8317 blocked for more than 143 seconds. Not tainted 6.16.0-rc4-syzkaller-00308-ga79a588fc176 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.281 state:D stack:17544 pid:8317 tgid:8316 ppid:5841 task_flags:0x400140 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5396 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6785 __schedule_loop kernel/sched/core.c:6863 [inline] schedule+0x165/0x360 kernel/sched/core.c:6878 io_schedule+0x81/0xe0 kernel/sched/core.c:7723 folio_wait_bit_common+0x6b0/0xb90 mm/filemap.c:1317 folio_lock include/linux/pagemap.h:1114 [inline] invalidate_inode_pages2_range+0x557/0xa80 mm/truncate.c:690 bch2_write_invalidate_inode_pages_range+0xc5/0x110 fs/bcachefs/fs-io-pagecache.c:68 bchfs_fcollapse_finsert+0x1f2/0x470 fs/bcachefs/fs-io.c:614 bch2_fallocate_dispatch+0x2a4/0x410 fs/bcachefs/fs-io.c:-1 vfs_fallocate+0x6a3/0x830 fs/open.c:341 ksys_fallocate fs/open.c:365 [inline] __do_sys_fallocate fs/open.c:370 [inline] __se_sys_fallocate fs/open.c:368 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:368 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:0x7f504fd8e929 RSP: 002b:00007f5050c5e038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f504ffb5fa0 RCX: 00007f504fd8e929 RDX: 0000000000004000 RSI: 0000000000000020 RDI: 0000000000000004 RBP: 00007f504fe10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f504ffb5fa0 R15: 00007ffcc3dfe9f8 INFO: task syz.1.281:8379 blocked for more than 144 seconds. Not tainted 6.16.0-rc4-syzkaller-00308-ga79a588fc176 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.281 state:D stack:23848 pid:8379 tgid:8316 ppid:5841 task_flags:0x440040 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5396 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6785 __schedule_loop kernel/sched/core.c:6863 [inline] schedule+0x165/0x360 kernel/sched/core.c:6878 __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_readahead mm/filemap.c:2571 [inline] filemap_get_pages+0xb22/0x1ea0 mm/filemap.c:2616 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 vfs_copy_file_range+0xabc/0x1310 fs/read_write.c:1627 __do_sys_copy_file_range fs/read_write.c:1677 [inline] __se_sys_copy_file_range+0x2fb/0x470 fs/read_write.c:1644 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:0x7f504fd8e929 RSP: 002b:00007f5050c3d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007f504ffb6080 RCX: 00007f504fd8e929 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f504fe10b39 R08: 0000000000000b51 R09: 0000000000000000 R10: 00002000000000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f504ffb6080 R15: 00007ffcc3dfe9f8 Showing all locks held in the system: 2 locks held by kworker/u8:1/13: 1 lock held by khungtaskd/31: #0: ffffffff8e13ee20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8e13ee20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8e13ee20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6770 3 locks held by kworker/u8:2/36: #0: ffff888030657948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff888030657948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3321 #1: ffffc90000ac7bc0 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90000ac7bc0 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3321 #2: ffffffff8f50ad48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] #2: ffffffff8f50ad48 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_dad_work+0x112/0x14b0 net/ipv6/addrconf.c:4198 3 locks held by kworker/u8:3/44: #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: ffffc90000b47bc0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90000b47bc0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3321 #2: ffffffff8f50ad48 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:303 5 locks held by kworker/u8:7/3557: #0: ffff88801b2fb948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801b2fb948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3321 #1: ffffc9000c7a7bc0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000c7a7bc0 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3321 #2: ffffffff8f4fe150 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf7/0x800 net/core/net_namespace.c:662 #3: ffffffff8f50ad48 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0xdc/0x890 net/core/dev.c:12630 #4: ffffffff8e144938 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline] #4: ffffffff8e144938 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730 kernel/rcu/tree_exp.h:998 1 lock held by dhcpcd/5500: #0: ffffffff8f50ad48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_deladdr+0x198/0x740 net/ipv4/devinet.c:671 2 locks held by getty/5596: #0: ffff8880313840a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900036cb2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222 2 locks held by syz.1.281/8317: #0: ffff888023e54428 (sb_writers#13){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff888023e54428 (sb_writers#13){.+.+}-{0:0}, at: vfs_fallocate+0x62a/0x830 fs/open.c:340 #1: ffff888056b44d38 (&sb->s_type->i_mutex_key#21){++++}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff888056b44d38 (&sb->s_type->i_mutex_key#21){++++}-{4:4}, at: bch2_fallocate_dispatch+0x10e/0x410 fs/bcachefs/fs-io.c:827 1 lock held by syz.1.281/8379: #0: ffff888056b44ed8 (mapping.invalidate_lock#16){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff888056b44ed8 (mapping.invalidate_lock#16){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 1 lock held by syz-executor/9215: #0: ffffffff8e144938 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #0: ffffffff8e144938 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730 kernel/rcu/tree_exp.h:998 3 locks held by syz-executor/10418: #0: ffffffff8f570ef0 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218 #1: ffffffff8f570d08 (genl_mutex){+.+.}-{4:4}, at: genl_lock net/netlink/genetlink.c:35 [inline] #1: ffffffff8f570d08 (genl_mutex){+.+.}-{4:4}, at: genl_op_lock net/netlink/genetlink.c:60 [inline] #1: ffffffff8f570d08 (genl_mutex){+.+.}-{4:4}, at: genl_rcv_msg+0x10d/0x790 net/netlink/genetlink.c:1209 #2: ffffffff8f50ad48 (rtnl_mutex){+.+.}-{4:4}, at: ieee80211_register_hw+0x2ec4/0x4120 net/mac80211/main.c:1532 1 lock held by syz-executor/10977: #0: ffffffff8f50ad48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] #0: ffffffff8f50ad48 (rtnl_mutex){+.+.}-{4:4}, at: inet6_rtm_newaddr+0x5b7/0xd20 net/ipv6/addrconf.c:5031 3 locks held by syz.3.544/11094: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.16.0-rc4-syzkaller-00308-ga79a588fc176 #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: 11094 Comm: syz.3.544 Not tainted 6.16.0-rc4-syzkaller-00308-ga79a588fc176 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__bfs kernel/locking/lockdep.c:1818 [inline] RIP: 0010:__bfs_backwards kernel/locking/lockdep.c:1863 [inline] RIP: 0010:check_irq_usage kernel/locking/lockdep.c:2799 [inline] RIP: 0010:check_prev_add kernel/locking/lockdep.c:3172 [inline] RIP: 0010:check_prevs_add kernel/locking/lockdep.c:3287 [inline] RIP: 0010:validate_chain+0xfd7/0x2140 kernel/locking/lockdep.c:3911 Code: 25 ff 0f 00 00 39 05 a4 30 06 12 73 06 89 05 9c 30 06 12 49 8b 04 24 48 89 de 48 39 e8 0f 84 33 fe ff ff 4c 89 68 30 48 8b 00 <48> 39 e8 75 f4 48 89 de e9 1f fe ff ff 48 c7 c7 30 fd 00 8e 48 89 RSP: 0018:ffffc9000b7e6ef8 EFLAGS: 00000002 RAX: ffffffff934c6d40 RBX: 00000000000003dc RCX: 00000000000002c5 RDX: 0000000000000008 RSI: 00000000000003dc RDI: ffff88801e2e3c00 RBP: ffffffff934c6d40 R08: ffffc9000b7e6ec0 R09: 0000000000000020 R10: dffffc0000000000 R11: ffffffff819ea240 R12: ffffffff96387848 R13: ffffffff96391088 R14: ffff88801e2e4790 R15: 00000000000002c4 FS: 00007fe194ed56c0(0000) GS:ffff888125c50000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000240 CR3: 0000000078aaa000 CR4: 00000000003526f0 Call Trace: __lock_acquire+0xab9/0xd20 kernel/locking/lockdep.c:5240 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5871 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa7/0xf0 kernel/locking/spinlock.c:162 sb_mark_inode_writeback+0x8c/0x340 fs/fs-writeback.c:1333 __folio_start_writeback+0x769/0xbf0 mm/page-writeback.c:3088 __bch2_writepage+0xf25/0x2790 fs/bcachefs/fs-io-buffered.c:603 write_cache_pages+0x61/0x100 mm/page-writeback.c:2614 bch2_writepages+0xf9/0x2d0 fs/bcachefs/fs-io-buffered.c:666 do_writepages+0x32b/0x550 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_write_and_wait_range+0x217/0x310 mm/filemap.c:691 __generic_remap_file_range_prep+0x939/0xbe0 fs/remap_range.c:329 generic_remap_file_range_prep+0x3e/0x60 fs/remap_range.c:371 bch2_remap_file_range+0x4dc/0xd10 fs/bcachefs/fs-io.c:912 vfs_copy_file_range+0xd53/0x1310 fs/read_write.c:1591 __do_sys_copy_file_range fs/read_write.c:1677 [inline] __se_sys_copy_file_range+0x2fb/0x470 fs/read_write.c:1644 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:0x7fe193f8e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe194ed5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007fe1941b5fa0 RCX: 00007fe193f8e929 RDX: 0000000000000008 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 00007fe194010b39 R08: fffffbffa003e45b R09: 0700000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe1941b5fa0 R15: 00007ffdb786ed48