INFO: task bch-copygc/loop:5866 blocked for more than 143 seconds.
Not tainted 6.13.0-rc3-next-20241220-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-copygc/loop state:D stack:18064 pid:5866 tgid:5866 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5371 [inline]
__schedule+0x189f/0x4c80 kernel/sched/core.c:6758
__schedule_loop kernel/sched/core.c:6835 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6850
__closure_sync+0x259/0x2f0 lib/closure.c:146
bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:237 [inline]
__bch2_write+0x57ac/0x5eb0 fs/bcachefs/io_write.c:1520
bch2_write+0x85b/0x15f0 fs/bcachefs/io_write.c:1649
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:424
move_write fs/bcachefs/move.c:135 [inline]
bch2_moving_ctxt_do_pending_writes+0x44c/0x8d0 fs/bcachefs/move.c:166
bch2_move_ratelimit+0x76c/0xeb0 fs/bcachefs/move.c:512
bch2_evacuate_bucket+0xfe9/0x3280 fs/bcachefs/move.c:747
bch2_copygc+0x42c1/0x4c90 fs/bcachefs/movinggc.c:240
bch2_copygc_thread+0x6ef/0xba0 fs/bcachefs/movinggc.c:381
kthread+0x7a9/0x920 kernel/kthread.c:464
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148
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:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744
2 locks held by getty/5590:
#0: ffff8880319dc0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
2 locks held by syz-executor387/6282:
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc3-next-20241220-syzkaller #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:234 [inline]
watchdog+0xff6/0x1040 kernel/hung_task.c:397
kthread+0x7a9/0x920 kernel/kthread.c:464
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 6282 Comm: syz-executor387 Not tainted 6.13.0-rc3-next-20241220-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:hlock_class kernel/locking/lockdep.c:240 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4875 [inline]
RIP: 0010:__lock_acquire+0x8ac/0x2100 kernel/locking/lockdep.c:5176
Code: 00 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 40 78 2d 94 be 08 00 00 00 e8 6e 08 8b 00 48 0f a3 1d 96 de 92 12 73 1a <48> 69 c3 c8 00 00 00 48 8d 98 00 f7 c4 93 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc9000481f5b0 EFLAGS: 00000057
RAX: 0000000000000001 RBX: 00000000000005c9 RCX: ffffffff819a99a2
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff942d78f8
RBP: 00000000ffffffff R08: ffffffff942d78ff R09: 1ffffffff285af1f
R10: dffffc0000000000 R11: fffffbfff285af20 R12: 0000000000000000
R13: ffff88802ce66508 R14: 0000000000000000 R15: ffff88802ce66508
FS: 000055557d507380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f65bddff000 CR3: 000000007ce90000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849
rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
rcu_read_lock include/linux/rcupdate.h:849 [inline]
filemap_get_entry+0x144/0x3b0 mm/filemap.c:1820
shmem_get_folio_gfp+0x285/0x1840 mm/shmem.c:2345
shmem_get_folio mm/shmem.c:2527 [inline]
shmem_write_begin+0x165/0x350 mm/shmem.c:3177
generic_perform_write+0x346/0x990 mm/filemap.c:4122
shmem_file_write_iter+0xf9/0x120 mm/shmem.c:3353
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
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:0x7f65c53fcea0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d e1 e1 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007ffe4a619478 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffe4a619490 RCX: 00007f65c53fcea0
RDX: 0000000001000000 RSI: 00007f65bce00000 RDI: 0000000000000003
RBP: 00007f65bce00000 R08: 00000000000058dc R09: 00000000000058d8
R10: 0000000000000002 R11: 0000000000000202 R12: 00007ffe4a619630
R13: 00007ffe4a6194d0 R14: 0000000000000003 R15: 0000000001000000
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.590 msecs