INFO: task syz.7.1396:13037 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.7.1396 state:D stack:20216 pid:13037 tgid:13036 ppid:11677 task_flags:0x400140 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5360 [inline]
__schedule+0x1798/0x4cc0 kernel/sched/core.c:6964
__schedule_loop kernel/sched/core.c:7046 [inline]
schedule+0x165/0x360 kernel/sched/core.c:7061
__closure_sync+0x163/0x220 lib/closure.c:146
bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:315 [inline]
bch2_set_nr_journal_buckets_loop+0x1338/0x1710 fs/bcachefs/journal.c:1287
bch2_dev_journal_alloc+0x175/0x2c0 fs/bcachefs/journal.c:1400
bch2_fs_journal_alloc+0x46d/0x4e0 fs/bcachefs/journal.c:1412
bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:484 [inline]
__bch2_run_recovery_passes+0x3bd/0x1060 fs/bcachefs/recovery_passes.c:539
bch2_run_recovery_passes+0x184/0x210 fs/bcachefs/recovery_passes.c:610
bch2_fs_recovery+0x2690/0x3a50 fs/bcachefs/recovery.c:1016
bch2_fs_start+0xaaf/0xda0 fs/bcachefs/super.c:1213
bch2_fs_get_tree+0xb39/0x1520 fs/bcachefs/fs.c:2488
vfs_get_tree+0x92/0x2b0 fs/super.c:1751
fc_mount fs/namespace.c:1274 [inline]
do_new_mount_fc fs/namespace.c:3726 [inline]
do_new_mount+0x302/0xa10 fs/namespace.c:3802
do_mount fs/namespace.c:4125 [inline]
__do_sys_mount fs/namespace.c:4324 [inline]
__se_sys_mount+0x313/0x410 fs/namespace.c:4301
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fada519034a
RSP: 002b:00007fada609ee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fada609eef0 RCX: 00007fada519034a
RDX: 0000200000000040 RSI: 0000200000000000 RDI: 00007fada609eeb0
RBP: 0000200000000040 R08: 00007fada609eef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000000
R13: 00007fada609eeb0 R14: 000000000000593e R15: 00002000000000c0
Showing all locks held in the system:
1 lock held by rcu_exp_gp_kthr/18:
1 lock held by khungtaskd/31:
#0: ffffffff8e33c820 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff8e33c820 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#0: ffffffff8e33c820 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6775
2 locks held by getty/5619:
#0: ffff88803073c0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900036c32f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222
6 locks held by kworker/1:1/10922:
#0: ffff8881446e6148 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3238 [inline]
#0: ffff8881446e6148 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3346
#1: ffffc90003b3fba0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3239 [inline]
#1: ffffc90003b3fba0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3346
#2: ffff888028976198 (&dev->mutex
){....}-{4:4}
, at: device_lock include/linux/device.h:914 [inline]
, at: hub_event+0x184/0x4a20 drivers/usb/core/hub.c:5898
#3: ffff888143b62518 (&port_dev->status_lock){+.+.}-{4:4}, at: usb_lock_port drivers/usb/core/hub.c:3251 [inline]
#3: ffff888143b62518 (&port_dev->status_lock){+.+.}-{4:4}, at: hub_port_connect drivers/usb/core/hub.c:5463 [inline]
#3: ffff888143b62518 (&port_dev->status_lock){+.+.}-{4:4}, at: hub_port_connect_change drivers/usb/core/hub.c:5706 [inline]
#3: ffff888143b62518 (&port_dev->status_lock){+.+.}-{4:4}, at: port_event drivers/usb/core/hub.c:5870 [inline]
#3: ffff888143b62518 (&port_dev->status_lock){+.+.}-{4:4}, at: hub_event+0x21b8/0x4a20 drivers/usb/core/hub.c:5952
#4: ffff888027eb2f68 (hcd->address0_mutex){+.+.}-{4:4}, at: hub_port_connect drivers/usb/core/hub.c:5464 [inline]
#4: ffff888027eb2f68 (hcd->address0_mutex){+.+.}-{4:4}, at: hub_port_connect_change drivers/usb/core/hub.c:5706 [inline]
#4: ffff888027eb2f68 (hcd->address0_mutex){+.+.}-{4:4}, at: port_event drivers/usb/core/hub.c:5870 [inline]
#4: ffff888027eb2f68 (hcd->address0_mutex){+.+.}-{4:4}, at: hub_event+0x21e5/0x4a20 drivers/usb/core/hub.c:5952
#5: ffffffff8efe6cf0 (ehci_cf_port_reset_rwsem
){.+.+}-{4:4}, at: hub_port_reset+0x163/0x1750 drivers/usb/core/hub.c:3066
2 locks held by kworker/u8:16/14810:
#0: ffff8880b8639f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xad/0x140 kernel/sched/core.c:644
#1: ffff8880b8724008 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x53/0x880 kernel/sched/psi.c:933
2 locks held by kworker/u8:24/14820:
#0: ffff88801e38d148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3238 [inline]
#0: ffff88801e38d148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3346
#1: ffffc90003a5fba0 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3239 [inline]
#1: ffffc90003a5fba0 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3346
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:332 [inline]
watchdog+0xf60/0xfa0 kernel/hung_task.c:495
kthread+0x711/0x8a0 kernel/kthread.c:463
ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158
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: 12992 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:select_task_rq_fair+0x43f/0x3570 kernel/sched/fair.c:-1
Code: 06 48 89 44 24 30 45 31 f6 eb 0f 48 8b 1b 4d 89 fe 48 85 db 0f 84 da 00 00 00 4c 8d 6b 3c 4d 89 ef 49 c1 ef 03 43 0f b6 04 27 <84> c0 0f 85 8d 00 00 00 41 8b 45 00 80 7c 24 10 00 74 0c 49 89 df
RSP: 0018:ffffc90000a08bf0 EFLAGS: 00000807
RAX: 0000000000000000 RBX: ffff88801cedac00 RCX: b5153b4b97c1cb00
RDX: 0000000000000000 RSI: ffffffff8ddae1af RDI: ffffffff8c036f00
RBP: 0000000000000008 R08: 0000000000000000 R09: ffffffff81944309
R10: dffffc0000000000 R11: ffffffff81944000 R12: dffffc0000000000
R13: ffff88801cedac3c R14: 0000000000000000 R15: 1ffff110039db587
FS: 00005555730d8500(0000) GS:ffff888125ae8000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffee4b1fb88 CR3: 000000007faa4000 CR4: 00000000003526f0
Call Trace:
select_task_rq kernel/sched/core.c:3607 [inline]
try_to_wake_up+0x4d8/0x12b0 kernel/sched/core.c:4316
hrtimer_wakeup+0x4e/0x60 kernel/time/hrtimer.c:2013
__run_hrtimer kernel/time/hrtimer.c:1777 [inline]
__hrtimer_run_queues+0x52c/0xc60 kernel/time/hrtimer.c:1841
hrtimer_interrupt+0x45b/0xaa0 kernel/time/hrtimer.c:1903
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1041 [inline]
__sysvec_apic_timer_interrupt+0x10b/0x410 arch/x86/kernel/apic/apic.c:1058
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1052 [inline]
sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1052
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2034 [inline]
RIP: 0010:vprintk_emit+0x49d/0x590 kernel/printk/printk.c:2422
Code: 0f 84 34 ff ff ff e8 72 9b 1f 00 fb eb 44 e8 6a 9b 1f 00 e8 15 e2 e2 09 4d 85 f6 74 94 e8 5b 9b 1f 00 fb 48 c7 c7 60 08 33 8e <31> f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 45 31 c9 53 e8 6b 3b
RSP: 0018:ffffc9000424f9e0 EFLAGS: 00000293
RAX: ffffffff81a02015 RBX: ffffffff81a01e6e RCX: ffff88802ef45ac0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8e330860
RBP: ffffc9000424faf0 R08: ffffffff8fc3f337 R09: 1ffffffff1f87e66
R10: dffffc0000000000 R11: fffffbfff1f87e67 R12: 0000000000000000
R13: 000000000000001f R14: 0000000000000200 R15: 1ffff92000849f40
bch2_print_maybe_redirect fs/bcachefs/super.c:137 [inline]
__bch2_print+0x176/0x220 fs/bcachefs/super.c:156
__bch2_fs_stop+0xc8/0x900 fs/bcachefs/super.c:672
generic_shutdown_super+0x135/0x2c0 fs/super.c:642
bch2_kill_sb+0x41/0x50 fs/bcachefs/fs.c:2618
deactivate_locked_super+0xbc/0x130 fs/super.c:473
cleanup_mnt+0x425/0x4c0 fs/namespace.c:1393
task_work_run+0x1d4/0x260 kernel/task_work.c:227
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
exit_to_user_mode_loop+0xec/0x130 kernel/entry/common.c:43
exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline]
do_syscall_64+0x2bd/0xfa0 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f919cd8fed7
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffcb7a58788 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f919ce11c05 RCX: 00007f919cd8fed7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffcb7a58840
RBP: 00007ffcb7a58840 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffcb7a598d0
R13: 00007f919ce11c05 R14: 00000000000bc045 R15: 00007ffcb7a59910