INFO: task kworker/u8:0:12 blocked for more than 143 seconds. Not tainted 6.15.0-rc2-syzkaller-00471-g119009db2674 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u8:0 state:D stack:20904 pid:12 tgid:12 ppid:2 task_flags:0x4208060 flags:0x00004000 Workqueue: writeback wb_workfn (flush-bcachefs-27) Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b33/0x51f0 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x163/0x360 kernel/sched/core.c:6860 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6917 __mutex_lock_common kernel/locking/mutex.c:678 [inline] __mutex_lock+0x805/0x10c0 kernel/locking/mutex.c:746 bch2_vfs_write_inode+0x69/0xc0 fs/bcachefs/fs.c:1854 write_inode fs/fs-writeback.c:1525 [inline] __writeback_single_inode+0x708/0x10d0 fs/fs-writeback.c:1745 writeback_sb_inodes+0x822/0x1360 fs/fs-writeback.c:1976 __writeback_inodes_wb+0x11b/0x260 fs/fs-writeback.c:2047 wb_writeback+0x429/0xb90 fs/fs-writeback.c:2158 wb_check_old_data_flush fs/fs-writeback.c:2262 [inline] wb_do_writeback fs/fs-writeback.c:2315 [inline] wb_workfn+0xbbc/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 INFO: task syz.1.159:7511 blocked for more than 143 seconds. Not tainted 6.15.0-rc2-syzkaller-00471-g119009db2674 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.159 state:D stack:18128 pid:7511 tgid:7450 ppid:5822 task_flags:0x400040 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b33/0x51f0 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x163/0x360 kernel/sched/core.c:6860 __closure_sync+0x1c0/0x2a0 lib/closure.c:146 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:254 [inline] bch2_btree_update_start+0x12bd/0x16c0 fs/bcachefs/btree_update_interior.c:1251 bch2_btree_split_leaf+0x12d/0x8a0 fs/bcachefs/btree_update_interior.c:1864 bch2_trans_commit_error+0x1b3/0x1480 fs/bcachefs/btree_trans_commit.c:904 __bch2_trans_commit+0x8886/0x9da0 fs/bcachefs/btree_trans_commit.c:1069 bch2_trans_commit fs/bcachefs/btree_update.h:195 [inline] __bch2_create+0xa79/0xf40 fs/bcachefs/fs.c:576 bch2_mknod fs/bcachefs/fs.c:728 [inline] bch2_create+0xec/0x1c0 fs/bcachefs/fs.c:742 lookup_open fs/namei.c:3701 [inline] open_last_lookups fs/namei.c:3800 [inline] path_openat+0x194b/0x35d0 fs/namei.c:4036 do_filp_open+0x284/0x4e0 fs/namei.c:4066 do_sys_openat2+0x12b/0x1d0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x249/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7efe41f8e169 RSP: 002b:00007efe3fdd5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007efe421b6080 RCX: 00007efe41f8e169 RDX: 000000000000275a RSI: 00002000000001c0 RDI: ffffffffffffff9c RBP: 00007efe42010a68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007efe421b6080 R15: 00007fff1c425c28 Showing all locks held in the system: 4 locks held by kworker/u8:0/12: #0: ffff88801f2cd148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801f2cd148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc90000117c60 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90000117c60 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffff888079c2c0e0 (&type->s_umount_key#69){++++}-{4:4}, at: super_trylock_shared+0x22/0xf0 fs/super.c:562 #3: ffff888078b5d120 (&inode->ei_update_lock){+.+.}-{4:4}, at: bch2_vfs_write_inode+0x69/0xc0 fs/bcachefs/fs.c:1854 1 lock held by khungtaskd/31: #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764 3 locks held by kworker/u8:3/54: 5 locks held by kworker/u9:0/56: 2 locks held by kworker/u8:5/982: #0: ffff888147ac1948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff888147ac1948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc90003907c60 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90003907c60 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 2 locks held by getty/5582: #0: ffff88803691a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900033262f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x5bb/0x1700 drivers/tty/n_tty.c:2222 5 locks held by syz.1.159/7511: #0: ffff888079c2c420 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556 #1: ffff888078b5cd38 (&sb->s_type->i_mutex_key#26){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff888078b5cd38 (&sb->s_type->i_mutex_key#26){++++}-{4:4}, at: open_last_lookups fs/namei.c:3797 [inline] #1: ffff888078b5cd38 (&sb->s_type->i_mutex_key#26){++++}-{4:4}, at: path_openat+0x8af/0x35d0 fs/namei.c:4036 #2: ffff888078b5d120 (&inode->ei_update_lock){+.+.}-{4:4}, at: __bch2_create+0x359/0xf40 fs/bcachefs/fs.c:550 #3: ffff88804e904228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff88804e904228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff88804e904228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0x9a/0x1a0 fs/bcachefs/btree_iter.c:3199 #4: ffff88804e926590 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x68a/0x16c0 fs/bcachefs/btree_update_interior.c:1179 2 locks held by bch-copygc/loop/7509: 1 lock held by syz-executor/8223: 2 locks held by syz.7.352/9563: #0: ffff888079c2c0e0 (&type->s_umount_key#69){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff888079c2c0e0 (&type->s_umount_key#69){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff888079c2a7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline] #1: ffff888079c2a7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x270/0xb50 fs/fs-writeback.c:2831 2 locks held by syz.7.352/9565: #0: ffff888079c2c0e0 (&type->s_umount_key#69){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff888079c2c0e0 (&type->s_umount_key#69){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff888079c2a7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline] #1: ffff888079c2a7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x270/0xb50 fs/fs-writeback.c:2831 2 locks held by syz-executor/9879: 2 locks held by syz.4.420/10394: #0: ffff888079c2c0e0 (&type->s_umount_key#69){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff888079c2c0e0 (&type->s_umount_key#69){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff888079c2a7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline] #1: ffff888079c2a7d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x270/0xb50 fs/fs-writeback.c:2831 1 lock held by syz.3.447/10628: 5 locks held by syz.2.449/10667: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc2-syzkaller-00471-g119009db2674 #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: 10704 Comm: syz-executor Not tainted 6.15.0-rc2-syzkaller-00471-g119009db2674 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:lock_acquire+0x6f/0x2f0 kernel/locking/lockdep.c:5831 Code: f8 08 0f 83 b4 01 00 00 89 c0 48 0f a3 05 a9 53 c0 0e 73 16 e8 52 c6 09 00 84 c0 75 0d f6 05 9d 41 aa 0e 01 0f 84 9b 01 00 00 <83> 3d 6a 82 c0 0e 00 0f 84 e6 00 00 00 48 8b 74 24 70 48 89 df e8 RSP: 0018:ffffc900052bf608 EFLAGS: 00000202 RAX: 0000000000000001 RBX: ffffffff8ed3df20 RCX: 0000000000000002 RDX: 0000000000000000 RSI: ffffffff8ca0e160 RDI: ffffffff8ca0e120 RBP: ffffffff93651020 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000002 R14: 0000000000000001 R15: 0000000000000000 FS: 0000555577fbb500(0000) GS:ffff888124fcf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f68e1ae5000 CR3: 000000005101c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] rcu_read_lock include/linux/rcupdate.h:841 [inline] is_bpf_text_address+0x46/0x2a0 kernel/bpf/core.c:772 kernel_text_address+0xa7/0xe0 kernel/extable.c:125 __kernel_text_address+0xd/0x40 kernel/extable.c:79 unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_orc.c:369 arch_stack_walk+0xff/0x150 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x11a/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x9d/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x236/0x370 mm/slub.c:4372 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] ref_tracker_alloc+0x159/0x4c0 lib/ref_tracker.c:203 __netns_tracker_alloc include/net/net_namespace.h:357 [inline] netns_tracker_alloc include/net/net_namespace.h:366 [inline] get_net_track include/net/net_namespace.h:383 [inline] sk_alloc+0x1ac/0x370 net/core/sock.c:2266 unix_create1+0xb4/0x7a0 net/unix/af_unix.c:-1 unix_create+0x14e/0x200 net/unix/af_unix.c:1082 __sock_create+0x4c0/0xa30 net/socket.c:1541 sock_create net/socket.c:1599 [inline] __sys_socket_create net/socket.c:1636 [inline] __sys_socket+0x14d/0x3c0 net/socket.c:1683 __do_sys_socket net/socket.c:1697 [inline] __se_sys_socket net/socket.c:1695 [inline] __x64_sys_socket+0x7a/0x90 net/socket.c:1695 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f68e0d90087 Code: f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 b8 29 00 00 00 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:00007ffc10780548 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007ffc10780680 RCX: 00007f68e0d90087 RDX: 0000000000000000 RSI: 0000000000080002 RDI: 0000000000000001 RBP: 00007ffc10780560 R08: 000000000000000a R09: 00007ffc10780658 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 00007f68e1ae4620 R14: 0000000000000005 R15: 0000000000000000