INFO: task syz-executor:5922 blocked for more than 143 seconds. Not tainted 6.14.0-syzkaller-11144-g1e7857b28020 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor state:D stack:20904 pid:5922 tgid:5922 ppid:1 task_flags:0x400140 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 schedule_timeout+0xb1/0x2b0 kernel/time/sleep_timeout.c:75 do_wait_for_common kernel/sched/completion.c:95 [inline] __wait_for_common kernel/sched/completion.c:116 [inline] wait_for_common kernel/sched/completion.c:127 [inline] wait_for_completion+0x32f/0x600 kernel/sched/completion.c:148 kthread_stop+0x1a1/0x640 kernel/kthread.c:791 bch2_copygc_stop+0x4f/0x150 fs/bcachefs/movinggc.c:424 __bch2_fs_read_only+0x47/0x450 fs/bcachefs/super.c:262 bch2_fs_read_only+0xd16/0x1400 fs/bcachefs/super.c:353 __bch2_fs_stop+0x107/0x5b0 fs/bcachefs/super.c:631 generic_shutdown_super+0x139/0x2d0 fs/super.c:642 bch2_kill_sb+0x41/0x50 fs/bcachefs/fs.c:2302 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x422/0x4c0 fs/namespace.c:1435 task_work_run+0x251/0x310 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa17f58e497 RSP: 002b:00007fffaa904a18 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fa17f60e08c RCX: 00007fa17f58e497 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fffaa904ad0 RBP: 00007fffaa904ad0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fffaa905b60 R13: 00007fa17f60e08c R14: 000000000001a4c5 R15: 00007fffaa905ba0 Showing all locks held in the system: 1 lock held by khungtaskd/31: #0: ffffffff8ed3b560 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8ed3b560 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8ed3b560 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764 2 locks held by kworker/u8:5/748: 2 locks held by getty/5584: #0: ffff88803132d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000334b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x53d/0x16b0 drivers/tty/n_tty.c:2211 2 locks held by syz-executor/5922: #0: ffff8880298900e0 (&type->s_umount_key#84){+.+.}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff8880298900e0 (&type->s_umount_key#84){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff8880298900e0 (&type->s_umount_key#84){+.+.}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 #1: ffff888057f00278 (&c->state_lock){+.+.}-{4:4}, at: __bch2_fs_stop+0xff/0x5b0 fs/bcachefs/super.c:630 2 locks held by bch-copygc/loop/6071: #0: ffff888057f04210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #0: ffff888057f04210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #0: ffff888057f04210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0x9a/0x1a0 fs/bcachefs/btree_iter.c:3211 #1: ffff888057f26550 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x68a/0x1680 fs/bcachefs/btree_update_interior.c:1182 1 lock held by syz-executor/6317: 1 lock held by syz.0.892/8462: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.14.0-syzkaller-11144-g1e7857b28020 #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:236 [inline] watchdog+0x1058/0x10a0 kernel/hung_task.c:399 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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 8462 Comm: syz.0.892 Not tainted 6.14.0-syzkaller-11144-g1e7857b28020 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:trace_hardirqs_off+0x19/0x40 kernel/trace/trace_preemptirq.c:106 Code: 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 53 48 8b 5c 24 08 48 89 df e8 4e 70 5a 0a 65 8b 05 17 65 99 11 <85> c0 74 06 5b c3 cc cc cc cc 65 c7 05 02 65 99 11 01 00 00 00 48 RSP: 0018:ffffc900046ced50 EFLAGS: 00000086 RAX: 0000000000000000 RBX: ffffffff821cd5c5 RCX: 1ffff11027fff87a RDX: 0000000000000000 RSI: ffffffff8e67d321 RDI: ffffffff8ca0b080 RBP: ffffc900046cee28 R08: ffff88813fffc8ff R09: 1ffff11027fff91f R10: dffffc0000000000 R11: ffffed1027fff920 R12: 1ffff920008d9db0 R13: dffffc0000000000 R14: ffff88813fffc3d0 R15: ffffc900046cedc0 FS: 0000000000000000(0000) GS:ffff8881250e4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d917ff8 CR3: 0000000033688000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: seqcount_lockdep_reader_access+0x105/0x1e0 include/linux/seqlock.h:71 read_seqbegin include/linux/seqlock.h:836 [inline] zone_span_seqbegin include/linux/memory_hotplug.h:103 [inline] page_outside_zone_boundaries mm/page_alloc.c:440 [inline] bad_range+0x5f/0x280 mm/page_alloc.c:459 rmqueue mm/page_alloc.c:3155 [inline] get_page_from_freelist+0x3a96/0x3c50 mm/page_alloc.c:3535 __alloc_frozen_pages_noprof+0x266/0x580 mm/page_alloc.c:4806 alloc_pages_mpol+0x339/0x690 mm/mempolicy.c:2301 alloc_frozen_pages_noprof mm/mempolicy.c:2372 [inline] alloc_pages_noprof+0x121/0x190 mm/mempolicy.c:2392 get_free_pages_noprof+0xc/0x30 mm/page_alloc.c:4865 tlb_remove_table+0x116/0x550 mm/mmu_gather.c:359 __pte_free_tlb arch/x86/include/asm/pgalloc.h:56 [inline] free_pte_range mm/memory.c:192 [inline] free_pmd_range mm/memory.c:210 [inline] free_pud_range mm/memory.c:244 [inline] free_p4d_range mm/memory.c:278 [inline] free_pgd_range+0x72c/0xde0 mm/memory.c:358 free_pgtables+0x71b/0x840 mm/memory.c:-1 exit_mmap+0x5a9/0xdd0 mm/mmap.c:1295 __mmput+0x115/0x410 kernel/fork.c:1360 exit_mm+0x221/0x310 kernel/exit.c:586 do_exit+0x994/0x2950 kernel/exit.c:941 do_group_exit+0x207/0x2c0 kernel/exit.c:1103 get_signal+0x1696/0x1730 kernel/signal.c:3035 arch_do_signal_or_restart+0x98/0x840 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0e18f8d169 Code: Unable to access opcode bytes at 0x7f0e18f8d13f. RSP: 002b:00007f0e19dfa0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f0e191a5fa8 RCX: 00007f0e18f8d169 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f0e191a5fa8 RBP: 00007f0e191a5fa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0e191a5fac R13: 0000000000000000 R14: 00007ffc484ddd70 R15: 00007ffc484dde58