INFO: task bch-copygc/loop:5230 blocked for more than 143 seconds. Not tainted 6.11.0-syzkaller-11993-g3efc57369a0c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-copygc/loop state:D stack:19904 pid:5230 tgid:5230 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5315 [inline] __schedule+0x1843/0x4ae0 kernel/sched/core.c:6675 __schedule_loop kernel/sched/core.c:6752 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6767 __closure_sync+0x259/0x2f0 lib/closure.c:146 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline] __bch2_write+0x56ad/0x5e30 fs/bcachefs/io_write.c:1504 bch2_write+0x9b5/0x1760 fs/bcachefs/io_write.c:1634 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+0x25fb/0x34e0 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: 1 lock held by khungtaskd/30: #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6701 2 locks held by getty/4975: #0: ffff88814bbf90a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 3 locks held by syz-executor105/5862: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-syzkaller-11993-g3efc57369a0c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 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: 0 PID: 5862 Comm: syz-executor105 Not tainted 6.11.0-syzkaller-11993-g3efc57369a0c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__lock_acquire+0x337/0x2050 kernel/locking/lockdep.c:5133 Code: 85 65 14 00 00 4c 8b a4 24 d0 00 00 00 b8 00 e0 ff ff 23 03 41 81 e0 ff 1f 00 00 44 09 c0 48 89 5c 24 10 89 03 49 8d 5c e9 08 <48> 89 d8 48 c1 e8 03 80 3c 30 00 45 89 c5 74 1e 48 89 df e8 a1 28 RSP: 0018:ffffc9000476f5d0 EFLAGS: 00000006 RAX: 00000000000c003f RBX: ffff888012148ae8 RCX: ffffffff9a396903 RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 000000000000003f RBP: 0000000000000000 R08: 000000000000003f R09: ffff888012148ae0 R10: dffffc0000000000 R11: fffffbfff20376f6 R12: ffffffff816330ba R13: 0000000000000001 R14: 0000000000000000 R15: ffff8880b863ea58 FS: 000055556a7c6380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7ca5bff000 CR3: 0000000079e10000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5822 _raw_spin_lock_nested+0x31/0x40 kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:593 raw_spin_rq_lock kernel/sched/sched.h:1505 [inline] rq_lock kernel/sched/sched.h:1804 [inline] __schedule+0x357/0x4ae0 kernel/sched/core.c:6575 preempt_schedule_notrace+0x100/0x140 kernel/sched/core.c:6947 preempt_schedule_notrace_thunk+0x1a/0x30 arch/x86/entry/thunk.S:13 rcu_is_watching+0x7e/0xb0 kernel/rcu/tree.c:738 trace_lock_acquire include/trace/events/lock.h:24 [inline] lock_acquire+0xe3/0x550 kernel/locking/lockdep.c:5793 sched_submit_work kernel/sched/core.c:6708 [inline] schedule+0xb0/0x320 kernel/sched/core.c:6766 ptrace_stop+0x5b4/0x940 kernel/signal.c:2357 ptrace_do_notify kernel/signal.c:2394 [inline] ptrace_notify+0x255/0x380 kernel/signal.c:2406 ptrace_report_syscall include/linux/ptrace.h:415 [inline] ptrace_report_syscall_exit include/linux/ptrace.h:477 [inline] syscall_exit_work+0xc6/0x190 kernel/entry/common.c:173 syscall_exit_to_user_mode_prepare kernel/entry/common.c:200 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:205 [inline] syscall_exit_to_user_mode+0x279/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7cad0fe6b3 Code: 00 00 00 00 0f 1f 00 83 ff 03 74 7b 83 ff 02 b8 fa ff ff ff 49 89 ca 0f 44 f8 80 3d ce 49 04 00 00 74 14 b8 e6 00 00 00 0f 05 d8 c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec 28 48 89 54 24 10 RSP: 002b:00007ffe2835e928 EFLAGS: 00000202 ORIG_RAX: 00000000000000e6 RAX: 0000000000000000 RBX: 00007ffe2835e980 RCX: 00007f7cad0fe6b3 RDX: 00007ffe2835e940 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000004 R08: 0000000000005db3 R09: 0000000000005daf R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000008044 R13: 00007ffe2835e9c0 R14: 0000000000000003 R15: 000055556a7c6338 INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.426 msecs