INFO: task kworker/1:0:25 blocked for more than 143 seconds.
Not tainted 6.10.0-rc7-syzkaller-00025-ga19ea421490d #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:0 state:D stack:24632 pid:25 tgid:25 ppid:2 flags:0x00004000
Workqueue: events_long bch2_fs_read_only_work
Call Trace:
context_switch kernel/sched/core.c:5408 [inline]
__schedule+0x1796/0x49d0 kernel/sched/core.c:6745
__schedule_loop kernel/sched/core.c:6822 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6837
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6894
rwsem_down_write_slowpath+0xeeb/0x13b0 kernel/locking/rwsem.c:1178
__down_write_common+0x1af/0x200 kernel/locking/rwsem.c:1306
bch2_fs_read_only_work+0x25/0x40 fs/bcachefs/super.c:392
process_one_work kernel/workqueue.c:3248 [inline]
process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3329
worker_thread+0x86d/0xd50 kernel/workqueue.c:3409
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
INFO: task syz.2.31:5347 blocked for more than 144 seconds.
Not tainted 6.10.0-rc7-syzkaller-00025-ga19ea421490d #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.31 state:D stack:16696 pid:5347 tgid:5313 ppid:5084 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5408 [inline]
__schedule+0x1796/0x49d0 kernel/sched/core.c:6745
__schedule_loop kernel/sched/core.c:6822 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6837
__closure_sync+0x259/0x2f0 lib/closure.c:146
closure_sync include/linux/closure.h:194 [inline]
bch2_dev_allocator_remove+0x4f3/0x870 fs/bcachefs/alloc_background.c:2407
__bch2_dev_read_only fs/bcachefs/super.c:1533 [inline]
__bch2_dev_offline+0xa8/0x200 fs/bcachefs/super.c:1222
bch2_dev_offline+0xa3/0x110 fs/bcachefs/super.c:1968
bch2_ioctl_disk_offline+0x8a/0x1b0 fs/bcachefs/chardev.c:390
bch2_fs_ioctl+0x1bdc/0x37d0 fs/bcachefs/chardev.c:920
bch2_fs_file_ioctl+0x870/0x26e0 fs/bcachefs/fs-ioctl.c:532
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:907 [inline]
__se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893
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:0x7fb12b975bd9
RSP: 002b:00007fb12c67b048 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb12bb04110 RCX: 00007fb12b975bd9
RDX: 0000000020000280 RSI: 000000004010bc07 RDI: 0000000000000007
RBP: 00007fb12b9e4e60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fb12bb04110 R15: 00007ffe07a4add8
Showing all locks held in the system:
2 locks held by kworker/u8:0/11:
3 locks held by kworker/1:0/25:
#0: ffff888015081148 ((wq_completion)events_long){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3223 [inline]
#0: ffff888015081148 ((wq_completion)events_long){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3329
#1: ffffc900001f7d00 ((work_completion)(&c->read_only_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3224 [inline]
#1: ffffc900001f7d00 ((work_completion)(&c->read_only_work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3329
#2: ffff88805a700278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_read_only_work+0x25/0x40 fs/bcachefs/super.c:392
1 lock held by khungtaskd/30:
#0: ffffffff8e333f20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
#0: ffffffff8e333f20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline]
#0: ffffffff8e333f20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
1 lock held by syslogd/4517:
#0: ffff8880b943e758 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559
2 locks held by getty/4839:
#0: ffff88802b1ae0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002f162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2211
2 locks held by kworker/0:6/5142:
1 lock held by syz.2.31/5347:
#0: ffff88805a700278 (&c->state_lock){+.+.}-{3:3}, at: bch2_dev_offline+0x26/0x110 fs/bcachefs/super.c:1954
1 lock held by syz-executor/6353:
3 locks held by syz.0.258/7688:
#0: ffff88805fe80988 (&c->sb_lock){+.+.}-{3:3}, at: bch2_fs_alloc+0xd5a/0x20a0 fs/bcachefs/super.c:825
#1: ffff88805fe84980 (&c->mark_lock){++++}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0x1c3/0x290 fs/bcachefs/replicas.c:726
#2: ffffffff8e3392f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
#2: ffffffff8e3392f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:939
1 lock held by syz.4.255/7694:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.10.0-rc7-syzkaller-00025-ga19ea421490d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114
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+0xfde/0x1020 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 PID: 4524 Comm: klogd Not tainted 6.10.0-rc7-syzkaller-00025-ga19ea421490d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0033:0x7f1b0c0b5247
Code: 30 00 75 08 c7 44 24 30 0c 00 00 00 45 31 e4 48 8b 44 24 20 8a 00 84 c0 0f 84 b1 12 00 00 3c 25 74 25 48 8b 54 24 18 4c 29 e2 <48> 83 fa 01 0f 86 8c 12 00 00 48 85 ed 74 06 88 45 00 48 ff c5 49
RSP: 002b:00007ffec04923b0 EFLAGS: 00000282
RAX: 00007f1b0c17213a RBX: 00000000fffffffd RCX: 0000000000000002
RDX: fffffffffffffffd RSI: 00007ffec0492416 RDI: 0000000000000048
RBP: 0000000000000000 R08: 0000000000000002 R09: 0000000000000002
R10: 0000000000000000 R11: 0000000000000003 R12: 0000000000000002
R13: 00007ffec0492628 R14: 00007f1b0c1adc40 R15: 0000000000000000
FS: 00007f1b0bf81380 GS: 0000000000000000