INFO: task bch-copygc/loop:5232 blocked for more than 143 seconds.
Not tainted 6.11.0-syzkaller-04003-gfc1dc0d50780 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-copygc/loop state:D stack:20272 pid:5232 tgid:5232 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5188 [inline]
__schedule+0x1800/0x4a60 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+0x2f2/0x390 kernel/kthread.c:389
ret_from_fork+0x4d/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: ffffffff8e938a60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline]
#0: ffffffff8e938a60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline]
#0: ffffffff8e938a60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6701
3 locks held by syslogd/4659:
#0: ffff8880b883e758 (&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
#2: ffffffff8e938a60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline]
#2: ffffffff8e938a60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline]
#2: ffffffff8e938a60 (rcu_read_lock){....}-{1:2}, at: filemap_get_entry+0x123/0x3b0 mm/filemap.c:1837
1 lock held by klogd/4666:
#0: ffff8880b883e758 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:560
2 locks held by getty/4974:
#0: ffff8880303550a0 (&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
2 locks held by syz-executor426/5221:
#0: ffff8880b883e758 (&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 syz-executor426/5904:
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-syzkaller-04003-gfc1dc0d50780 #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+0x2f2/0x390 kernel/kthread.c:389
ret_from_fork+0x4d/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: 5904 Comm: syz-executor426 Not tainted 6.11.0-syzkaller-04003-gfc1dc0d50780 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:tlb_flush_pte_range include/asm-generic/tlb.h:577 [inline]
RIP: 0010:tlb_remove_tlb_entries include/asm-generic/tlb.h:631 [inline]
RIP: 0010:zap_present_folio_ptes mm/memory.c:1511 [inline]
RIP: 0010:zap_present_ptes mm/memory.c:1576 [inline]
RIP: 0010:zap_pte_range mm/memory.c:1618 [inline]
RIP: 0010:zap_pmd_range mm/memory.c:1736 [inline]
RIP: 0010:zap_pud_range mm/memory.c:1765 [inline]
RIP: 0010:zap_p4d_range mm/memory.c:1786 [inline]
RIP: 0010:unmap_page_range+0x1ab5/0x42c0 mm/memory.c:1807
Code: e8 90 45 62 ff 48 8b 4c 24 20 49 89 ce 49 c1 ee 03 43 80 3c 3e 00 74 0f 48 8b 7c 24 20 e8 e3 ae 1a 00 48 8b 4c 24 20 48 8b 19 <48> 8b 44 24 10 48 39 c3 48 0f 43 d8 48 b8 00 00 00 00 00 fc ff df
RSP: 0018:ffffc900042575a0 EFLAGS: 00000246
RAX: ffffffff8142b58c RBX: 0000000020000000 RCX: ffffc90004257af0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900042578d0 R08: ffffffff8142b531 R09: 1ffffd40003a0a20
R10: dffffc0000000000 R11: fffff940003a0a21 R12: 1ffff1100fc1cc00
R13: 0000000074144025 R14: 1ffff9200084af5e R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1a8b09f130 CR3: 000000006e5f4000 CR4: 0000000000350ef0
Call Trace:
unmap_vmas+0x3cc/0x5f0 mm/memory.c:1897
exit_mmap+0x264/0xc80 mm/mmap.c:3412
__mmput+0x115/0x390 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:571
do_exit+0x9b2/0x27f0 kernel/exit.c:869
do_group_exit+0x207/0x2c0 kernel/exit.c:1031
__do_sys_exit_group kernel/exit.c:1042 [inline]
__se_sys_exit_group kernel/exit.c:1040 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1040
x64_sys_call+0x2634/0x2640 arch/x86/include/generated/asm/syscalls_64.h:232
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:0x7f1a8b01fec9
Code: Unable to access opcode bytes at 0x7f1a8b01fe9f.
RSP: 002b:00007ffe7662a598 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1a8b01fec9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 00007f1a8b0a1370 R08: ffffffffffffffb8 R09: 0000000000005daf
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1a8b0a1370
R13: 0000000000000000 R14: 00007f1a8b0a20e0 R15: 00007f1a8afede80
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 2.102 msecs