INFO: task kworker/0:2:3084 blocked for more than 147 seconds. Not tainted 6.15.0-rc1-next-20250411-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:2 state:D stack:23640 pid:3084 tgid:3084 ppid:2 task_flags:0x4208060 flags:0x00004000 Workqueue: xfs-sync/loop4 xfs_flush_inodes_worker Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b9a/0x5250 kernel/sched/core.c:6769 __schedule_loop kernel/sched/core.c:6847 [inline] schedule+0x163/0x360 kernel/sched/core.c:6862 wb_wait_for_completion+0x166/0x270 fs/fs-writeback.c:216 sync_inodes_sb+0x28f/0xb50 fs/fs-writeback.c:2833 xfs_flush_inodes_worker+0x61/0x80 fs/xfs/xfs_super.c:639 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xac3/0x18e0 kernel/workqueue.c:3319 worker_thread+0x870/0xd50 kernel/workqueue.c:3400 kthread+0x7b7/0x940 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 INFO: task syz.4.101:6470 blocked for more than 148 seconds. Not tainted 6.15.0-rc1-next-20250411-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.101 state:D stack:19888 pid:6470 tgid:6469 ppid:5841 task_flags:0x400740 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b9a/0x5250 kernel/sched/core.c:6769 __schedule_loop kernel/sched/core.c:6847 [inline] schedule+0x163/0x360 kernel/sched/core.c:6862 schedule_timeout+0xb1/0x2b0 kernel/time/sleep_timeout.c:75 do_wait_for_common kernel/sched/completion.c:95 [inline] __wait_for_common kernel/sched/completion.c:116 [inline] wait_for_common kernel/sched/completion.c:127 [inline] wait_for_completion+0x32f/0x600 kernel/sched/completion.c:148 __flush_work+0xa48/0xc60 kernel/workqueue.c:4244 xfs_file_buffered_write+0x2d5/0x930 fs/xfs/xfs_file.c:932 __kernel_write_iter+0x439/0x990 fs/read_write.c:617 dump_emit_page fs/coredump.c:885 [inline] dump_user_range+0x940/0xef0 fs/coredump.c:959 elf_core_dump+0x4098/0x4af0 fs/binfmt_elf.c:2128 do_coredump+0x22c3/0x3260 fs/coredump.c:759 get_signal+0x13ed/0x1730 kernel/signal.c:3019 arch_do_signal_or_restart+0x98/0x840 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f316144f750 RSP: 002b:00007f315f3f5b38 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000000 RBX: 00007f31617b5fa8 RCX: 00007f316158e169 RDX: 00007f315f3f5b40 RSI: 00007f315f3f5c70 RDI: 000000000000000b RBP: 00007f31617b5fa0 R08: 7fffffffffffffff R09: 0000000000000000 R10: 0000200000000000 R11: 0000000000000246 R12: 00007f31617b5fac R13: 0000000000000000 R14: 00007ffc03d0add0 R15: 00007ffc03d0aeb8 Showing all locks held in the system: 1 lock held by khungtaskd/31: #0: ffffffff8ed3f180 ( rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764 3 locks held by kworker/1:3/978: #0: ffff88801b080d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801b080d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc90003b2fc60 (deferred_process_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90003b2fc60 (deferred_process_work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffffffff90103248 ( rtnl_mutex){+.+.}-{4:4}, at: switchdev_deferred_process_work+0xe/0x20 net/switchdev/switchdev.c:104 4 locks held by kworker/0:2/3084: #0: ffff888031b6e148 ((wq_completion)xfs-sync/loop4){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff888031b6e148 ((wq_completion)xfs-sync/loop4){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc9000c45fc60 ((work_completion)(&mp->m_flush_inodes_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000c45fc60 ((work_completion)(&mp->m_flush_inodes_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffff888030d9a0e0 ( &type->s_umount_key#50){++++}-{4:4}, at: xfs_flush_inodes_worker+0x45/0x80 fs/xfs/xfs_super.c:638 #3: ffff888143fa07d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline] #3: ffff888143fa07d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x270/0xb50 fs/fs-writeback.c:2831 1 lock held by dhcpcd/5497: #0: ffffffff90103248 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] #0: ffffffff90103248 (rtnl_mutex){+.+.}-{4:4}, at: devinet_ioctl+0x34e/0x1d80 net/ipv4/devinet.c:1121 2 locks held by getty/5581: #0: ffff88814d8b90a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000334b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4} , at: n_tty_read+0x5bb/0x1700 drivers/tty/n_tty.c:2222 5 locks held by kworker/u8:11/6398: #0: ffff88801bef6148 ( (wq_completion)netns ){+.+.}-{0:0} , at: process_one_work kernel/workqueue.c:3213 [inline] , at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc900058f7c60 ( net_cleanup_work ){+.+.}-{0:0} , at: process_one_work kernel/workqueue.c:3214 [inline] , at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffffffff900f6710 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x17c/0xd60 net/core/net_namespace.c:608 #3: ffffffff90103248 (rtnl_mutex){+.+.}-{4:4}, at: cleanup_net+0x6c1/0xd60 net/core/net_namespace.c:644 #4: ffffffff8ed446b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline] #4: ffffffff8ed446b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x384/0x830 kernel/rcu/tree_exp.h:998 3 locks held by kworker/u8:13/6402: #0: ffff88801b089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801b089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc9000555fc60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000555fc60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffffffff90103248 ( rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:303 12 locks held by kworker/u8:14/6404: 2 locks held by syz.4.101/6470: #0: ffff888030d9a428 (sb_writers#12){.+.+}-{0:0}, at: do_coredump+0x2288/0x3260 fs/coredump.c:758 #1: ffff88805b2348f0 (&sb->s_type->i_mutex_key#19){++++}-{4:4}, at: xfs_ilock+0x102/0x3d0 fs/xfs/xfs_inode.c:149 2 locks held by syz.0.212/6943: #0: ffff888030d9a0e0 (&type->s_umount_key#50){++++}-{4:4}, at: __super_lock fs/super.c:59 [inline] #0: ffff888030d9a0e0 (&type->s_umount_key#50){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:121 #1: ffff888143fa07d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline] #1: ffff888143fa07d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x270/0xb50 fs/fs-writeback.c:2831 6 locks held by syz.5.232/7032: #0: ffff888055ba40e0 (&type->s_umount_key#49/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 fs/super.c:345 #1: ffff88804b200278 (&c->state_lock){++++}-{4:4}, at: bch2_check_allocations+0x178/0x6930 fs/bcachefs/btree_gc.c:1023 #2: ffff88804b226590 (&c->gc_lock){++++}-{4:4}, at: bch2_check_allocations+0x18d/0x6930 fs/bcachefs/btree_gc.c:1024 #3: ffff88807c920158 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked fs/bcachefs/btree_locking.h:198 [inline] #3: ffff88807c920158 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0x9e3/0x1d40 fs/bcachefs/btree_iter.c:3316 #4: ffff88804b204218 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #4: ffff88804b204218 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #4: ffff88804b204218 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0x9a/0x1a0 fs/bcachefs/btree_iter.c:3232 #5: ffff88804b261c58 (&c->fsck_error_msgs_lock){+.+.}-{4:4}, at: __bch2_fsck_err+0x415/0x14e0 fs/bcachefs/error.c:458 2 locks held by syz-executor/7126: #0: ffffffff8f896560 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8f896560 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8f896560 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x22/0x250 net/core/rtnetlink.c:570 #1: ffffffff90103248 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #1: ffffffff90103248 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline] #1: ffffffff90103248 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xd68/0x1fe0 net/core/rtnetlink.c:4067 1 lock held by syz-executor/7224: #0: ffffffff90103248 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] #0: ffffffff90103248 (rtnl_mutex){+.+.}-{4:4}, at: inet6_rtm_newaddr+0x831/0x11b0 net/ipv6/addrconf.c:5028 2 locks held by syz-executor/7254: #0: ffffffff900f6710 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x328/0x570 net/core/net_namespace.c:514 #1: ffffffff90103248 (rtnl_mutex){+.+.}-{4:4}, at: ip_tunnel_init_net+0x2a7/0x810 net/ipv4/ip_tunnel.c:1160 1 lock held by syz.2.275/7283: #0: ffffffff90103248 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #0: ffffffff90103248 (rtnl_mutex){+.+.}-{4:4}, at: rtnetlink_rcv_msg+0x767/0xd70 net/core/rtnetlink.c:6964 1 lock held by syz.3.276/7289: #0: ffffffff90103248 ( rtnl_mutex ){+.+.}-{4:4} , at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] , at: dev_ioctl+0x806/0x1380 net/core/dev_ioctl.c:820 2 locks held by syz.3.276/7292: #0: ffffffff900e7c08 ( br_ioctl_mutex ){+.+.}-{4:4} , at: br_ioctl_call net/socket.c:1161 [inline] , at: sock_ioctl+0x55e/0x900 net/socket.c:1265 #1: ffffffff90103248 ( rtnl_mutex ){+.+.}-{4:4} , at: br_ioctl_stub+0x1a1/0xdd0 net/bridge/br_ioctl.c:418 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc1-next-20250411-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x4ab/0x4e0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline] watchdog+0x1058/0x10a0 kernel/hung_task.c:437 kthread+0x7b7/0x940 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 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: 6404 Comm: kworker/u8:14 Not tainted 6.15.0-rc1-next-20250411-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: writeback wb_workfn (flush-7:4) RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:37 [inline] RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:114 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:128 [inline] RIP: 0010:lock_is_held_type+0x72/0x1a0 kernel/locking/lockdep.c:5934 Code: 25 08 00 6a 93 41 83 bc 24 ec 0a 00 00 00 0f 85 e7 00 00 00 41 89 f6 49 89 ff 48 c7 04 24 00 00 00 00 9c 8f 04 24 4c 8b 2c 24 48 c7 c7 07 7d 77 8e e8 41 1b 00 00 65 ff 05 1a 19 37 07 41 83 RSP: 0018:ffffc90000007a58 EFLAGS: 00000046 RAX: 0000000000000000 RBX: 00000000ffffffff RCX: dffffc0000000000 RDX: 1ffff92000000f68 RSI: 00000000ffffffff RDI: ffff88802e274628 RBP: ffffffff936a0020 R08: ffffffff906041b7 R09: 1ffffffff20c0836 R10: dffffc0000000000 R11: ffffffff81954e40 R12: ffff8880272bda00 R13: 0000000000000046 R14: 00000000ffffffff R15: ffff88802e274628 FS: 0000000000000000(0000) GS:ffff888124f80000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055557900e5c8 CR3: 000000007bff0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:249 [inline] select_task_rq_fair+0x10d/0x3bc0 kernel/sched/fair.c:8583 select_task_rq kernel/sched/core.c:3583 [inline] try_to_wake_up+0x663/0x15d0 kernel/sched/core.c:4313 hrtimer_wakeup+0x62/0x80 kernel/time/hrtimer.c:1997 __run_hrtimer kernel/time/hrtimer.c:1761 [inline] __hrtimer_run_queues+0x5a6/0xd40 kernel/time/hrtimer.c:1825 hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1887 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x110/0x420 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2061 [inline] RIP: 0010:vprintk_emit+0x731/0xa40 kernel/printk/printk.c:2449 Code: 00 e8 63 39 21 00 4c 8d bc 24 a0 00 00 00 4d 85 e4 75 07 e8 51 39 21 00 eb 06 e8 4a 39 21 00 fb 49 bc 00 00 00 00 00 fc ff df <48> c7 c7 a0 ac c1 8e 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 RSP: 0018:ffffc900054fdb40 EFLAGS: 00000293 RAX: ffffffff81a240f6 RBX: 0000000000000000 RCX: ffff8880272bda00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900054fdc50 R08: ffffffff81a240cf R09: 1ffffffff20c0836 R10: dffffc0000000000 R11: fffffbfff20c0837 R12: dffffc0000000000 R13: 1ffff92000a9fb6c R14: ffffffff81a23f22 R15: ffffc900054fdbe0 _printk+0xd5/0x120 kernel/printk/printk.c:2475 __xfs_printk fs/xfs/xfs_message.c:24 [inline] _xfs_alert_tag+0x1dd/0x300 fs/xfs/xfs_message.c:74 xfs_buf_verifier_error+0x152/0x2a0 fs/xfs/xfs_error.c:455 xfs_agfl_read_verify+0x187/0x230 fs/xfs/libxfs/xfs_alloc.c:-1 __xfs_buf_ioend+0x34b/0x700 fs/xfs/xfs_buf.c:1176 xfs_buf_iowait+0x180/0x4c0 fs/xfs/xfs_buf.c:1410 _xfs_buf_read fs/xfs/xfs_buf.c:645 [inline] xfs_buf_read_map+0x3c4/0xb20 fs/xfs/xfs_buf.c:711 xfs_trans_read_buf_map+0x261/0xa90 fs/xfs/xfs_trans_buf.c:304 xfs_trans_read_buf fs/xfs/xfs_trans.h:212 [inline] xfs_alloc_read_agfl+0x27a/0x4c0 fs/xfs/libxfs/xfs_alloc.c:885 xfs_alloc_fix_freelist+0xd77/0x1b90 fs/xfs/libxfs/xfs_alloc.c:2961 xfs_alloc_vextent_prepare_ag+0xf9/0x6b0 fs/xfs/libxfs/xfs_alloc.c:3541 xfs_alloc_vextent_iterate_ags+0x141/0x950 fs/xfs/libxfs/xfs_alloc.c:3725 xfs_alloc_vextent_start_ag+0x406/0x980 fs/xfs/libxfs/xfs_alloc.c:3814 xfs_bmap_btalloc_best_length fs/xfs/libxfs/xfs_bmap.c:3622 [inline] xfs_bmap_btalloc fs/xfs/libxfs/xfs_bmap.c:3667 [inline] xfs_bmapi_allocate+0x1b17/0x3640 fs/xfs/libxfs/xfs_bmap.c:3942 xfs_bmapi_convert_one_delalloc fs/xfs/libxfs/xfs_bmap.c:4451 [inline] xfs_bmapi_convert_delalloc+0x9b0/0x1a40 fs/xfs/libxfs/xfs_bmap.c:4507 xfs_map_blocks+0x7af/0x1030 fs/xfs/xfs_aops.c:405 iomap_writepage_map_blocks fs/iomap/buffered-io.c:1755 [inline] iomap_writepage_map fs/iomap/buffered-io.c:1905 [inline] iomap_writepages+0x107e/0x3080 fs/iomap/buffered-io.c:1959 xfs_vm_writepages+0x272/0x300 fs/xfs/xfs_aops.c:632 do_writepages+0x38c/0x640 mm/page-writeback.c:2635 __writeback_single_inode+0x14f/0x10d0 fs/fs-writeback.c:1680 writeback_sb_inodes+0x822/0x1360 fs/fs-writeback.c:1976 wb_writeback+0x415/0xb90 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x412/0x10b0 fs/fs-writeback.c:2343 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xac3/0x18e0 kernel/workqueue.c:3319 worker_thread+0x870/0xd50 kernel/workqueue.c:3400 kthread+0x7b7/0x940 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245