INFO: task bch-copygc/loop:5229 blocked for more than 143 seconds. Not tainted 6.11.0-syzkaller-02574-ga430d95c5efa #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-copygc/loop state:D stack:20272 pid:5229 tgid:5229 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x17ae/0x4a10 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6621 __closure_sync+0x259/0x2f0 lib/closure.c:146 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:238 [inline] __bch2_write+0x55a7/0x5d20 fs/bcachefs/io_write.c:1506 bch2_write+0x947/0x1670 fs/bcachefs/io_write.c:1633 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_data_update_read_done+0x22e/0x330 fs/bcachefs/data_update.c:423 move_write fs/bcachefs/move.c:133 [inline] bch2_moving_ctxt_do_pending_writes+0x44c/0x8d0 fs/bcachefs/move.c:164 bch2_move_ratelimit+0x76c/0xeb0 fs/bcachefs/move.c:492 bch2_evacuate_bucket+0x2618/0x34d0 fs/bcachefs/move.c:702 bch2_copygc+0x3a03/0x4650 fs/bcachefs/movinggc.c:234 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 Showing all locks held in the system: 2 locks held by kworker/u8:1/12: #0: ffff8880b883e718 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:560 #1: ffff8880b8828948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:989 1 lock held by khungtaskd/30: #0: ffffffff8e738660 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline] #0: ffffffff8e738660 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline] #0: ffffffff8e738660 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6626 2 locks held by getty/4975: #0: ffff8880305740a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 1 lock held by syz-executor328/6041: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-syzkaller-02574-ga430d95c5efa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 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: 101 PID: 5029 Comm: dhcpcd Not tainted 6.11.0-syzkaller-02574-ga430d95c5efa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:trace_lock_release include/trace/events/lock.h:69 [inline] RIP: 0010:lock_release+0xb8/0xa30 kernel/locking/lockdep.c:5770 Code: 08 0f 83 fe 05 00 00 89 c3 48 89 d8 48 c1 e8 06 48 8d 3c c5 e8 80 fa 8f be 08 00 00 00 e8 f0 b9 87 00 48 0f a3 1d 70 71 8a 0e <73> 16 e8 91 ce 09 00 84 c0 75 0d 80 3d fc 4a 74 0e 00 0f 84 fc 05 RSP: 0018:ffffc90002e3f5e0 EFLAGS: 00000057 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81700f70 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8ffa80e8 RBP: ffffc90002e3f710 R08: ffffffff8ffa80ef R09: 1ffffffff1ff501d R10: dffffc0000000000 R11: fffffbfff1ff501e R12: 1ffff920005c7ec8 R13: ffffffff84b36271 R14: ffffc90002e3f740 R15: dffffc0000000000 FS: 00007f0b03df2740(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa352611130 CR3: 0000000026d3c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline] _raw_spin_unlock_irqrestore+0x79/0x140 kernel/locking/spinlock.c:194 __debug_check_no_obj_freed lib/debugobjects.c:999 [inline] debug_check_no_obj_freed+0x561/0x580 lib/debugobjects.c:1020 slab_free_hook mm/slub.c:2217 [inline] slab_free mm/slub.c:4474 [inline] kmem_cache_free+0x10f/0x350 mm/slub.c:4549 __unix_dgram_recvmsg+0xcea/0x12f0 net/unix/af_unix.c:2520 sock_recvmsg_nosec net/socket.c:1052 [inline] sock_recvmsg+0x22f/0x280 net/socket.c:1074 sock_read_iter+0x2c4/0x3d0 net/socket.c:1144 new_sync_read fs/read_write.c:488 [inline] vfs_read+0x9bb/0xbc0 fs/read_write.c:569 ksys_read+0x1a0/0x2c0 fs/read_write.c:712 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:0x7f0b03ebcb6a Code: 00 3d 00 00 41 00 75 0d 50 48 8d 3d 2d 08 0a 00 e8 ea 7d 01 00 31 c0 e9 07 ff ff ff 64 8b 04 25 18 00 00 00 85 c0 75 1b 0f 05 <48> 3d 00 f0 ff ff 76 6c 48 8b 15 8f a2 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007fff45ec19b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fff45ed1c18 RCX: 00007f0b03ebcb6a RDX: 00000000000100e0 RSI: 00007fff45ec1a18 RDI: 000000000000000e RBP: 000056545c8ae9c7 R08: 000000000000000e R09: 0000000000000000 R10: 00007fff45ed1e60 R11: 0000000000000246 R12: 000056546906c6c0 R13: 000056546906ce30 R14: 00007fff45ec1a18 R15: 0000000000000000 INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.264 msecs