INFO: task kworker/0:5:5287 blocked for more than 143 seconds.
Not tainted 6.11.0-syzkaller-08481-g88264981f208 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:5 state:D stack:23416 pid:5287 tgid:5287 ppid:2 flags:0x00004000
Workqueue: events_long bch2_fs_read_only_work
Call Trace:
context_switch kernel/sched/core.c:5315 [inline]
__schedule+0x1895/0x4b30 kernel/sched/core.c:6674
__schedule_loop kernel/sched/core.c:6751 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6766
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6823
rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1178
__down_write_common kernel/locking/rwsem.c:1306 [inline]
__down_write kernel/locking/rwsem.c:1315 [inline]
down_write+0x1d7/0x220 kernel/locking/rwsem.c:1580
bch2_fs_read_only_work+0x25/0x40 fs/bcachefs/super.c:391
process_one_work kernel/workqueue.c:3229 [inline]
process_scheduled_works+0xa65/0x1850 kernel/workqueue.c:3310
worker_thread+0x870/0xd30 kernel/workqueue.c:3391
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
INFO: task syz.0.78:5678 blocked for more than 144 seconds.
Not tainted 6.11.0-syzkaller-08481-g88264981f208 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.78 state:D stack:16112 pid:5678 tgid:5675 ppid:5226 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5315 [inline]
__schedule+0x1895/0x4b30 kernel/sched/core.c:6674
__schedule_loop kernel/sched/core.c:6751 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6766
schedule_timeout+0xb0/0x310 kernel/time/timer.c:2591
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+0x355/0x620 kernel/sched/completion.c:148
kthread_stop+0x19e/0x640 kernel/kthread.c:710
bch2_copygc_stop+0x4f/0x150 fs/bcachefs/movinggc.c:405
__bch2_fs_read_only+0x47/0x430 fs/bcachefs/super.c:264
bch2_fs_read_only+0xb57/0x1220 fs/bcachefs/super.c:354
__bch2_fs_stop+0x105/0x540 fs/bcachefs/super.c:618
bch2_fs_stop+0x15/0x20 fs/bcachefs/super.c:677
bch2_fs_get_tree+0xd98/0x1700 fs/bcachefs/fs.c:2051
vfs_get_tree+0x92/0x2b0 fs/super.c:1800
do_new_mount+0x2be/0xb40 fs/namespace.c:3507
do_mount fs/namespace.c:3847 [inline]
__do_sys_mount fs/namespace.c:4055 [inline]
__se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4032
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:0x7fbbef77f69a
RSP: 002b:00007fbbf0642e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fbbf0642ef0 RCX: 00007fbbef77f69a
RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007fbbf0642eb0
RBP: 0000000020005d80 R08: 00007fbbf0642ef0 R09: 0000000000000044
R10: 0000000000000044 R11: 0000000000000246 R12: 0000000020000240
R13: 00007fbbf0642eb0 R14: 0000000000005db5 R15: 00000000200003c0
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8e937ee0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937ee0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937ee0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6701
2 locks held by getty/4978:
#0: ffff88814bed50a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
3 locks held by kworker/0:3/5233:
3 locks held by kworker/0:5/5287:
#0: ffff88801ac79148 ((wq_completion)events_long){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801ac79148 ((wq_completion)events_long){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310
#1: ffffc9000325fd00 ((work_completion)(&c->read_only_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc9000325fd00 ((work_completion)(&c->read_only_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310
#2: ffff88805d800278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_read_only_work+0x25/0x40 fs/bcachefs/super.c:391
1 lock held by syz.0.78/5678:
#0: ffff88805d800278 (&c->state_lock){+.+.}-{3:3}, at: __bch2_fs_stop+0xfd/0x540 fs/bcachefs/super.c:617
1 lock held by syz-executor/6822:
#0: ffffffff8e93d478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline]
#0: ffffffff8e93d478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976
1 lock held by syz.5.264/7333:
4 locks held by dhcpcd-run-hook/7359:
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-syzkaller-08481-g88264981f208 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/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: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: 5441 Comm: syz-executor Not tainted 6.11.0-syzkaller-08481-g88264981f208 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:tomoyo_const_part_length security/tomoyo/util.c:642 [inline]
RIP: 0010:tomoyo_fill_path_info+0x9f/0x3a0 security/tomoyo/util.c:682
Code: e8 03 42 0f b6 04 30 84 c0 0f 85 23 01 00 00 49 8d 6d 01 41 0f b6 5d 00 48 89 df 48 c7 c6 20 47 01 8f e8 d4 76 24 fd 83 fb 5c <74> 1a 85 db 0f 84 71 01 00 00 e8 42 71 24 fd b8 01 00 00 00 41 01
RSP: 0018:ffffc90004437b98 EFLAGS: 00000212
RAX: 0000000000000000 RBX: 0000000000000076 RCX: ffff88802139bc00
RDX: 0000000000000002 RSI: ffffffff8f014720 RDI: 0000000000000076
RBP: ffff88802740e9cc R08: 0000000000000001 R09: ffffffff8470485c
R10: 0000000000000002 R11: ffff88802139bc00 R12: ffffc90004437e20
R13: ffff88802740e9cb R14: dffffc0000000000 R15: 000000000000000b
FS: 000055557ef54500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055557ef6f5c8 CR3: 000000002feec000 CR4: 0000000000350ef0
Call Trace:
tomoyo_get_realpath security/tomoyo/file.c:153 [inline]
tomoyo_path_number_perm+0x283/0x880 security/tomoyo/file.c:723
security_file_ioctl+0xc6/0x2a0 security/security.c:2908
__do_sys_ioctl fs/ioctl.c:901 [inline]
__se_sys_ioctl+0x47/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:0x7fe5b417dafb
Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007ffdfa9acc10 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fe5b417dafb
RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000003
RBP: 00007ffdfa9acc9c R08: 0000000000000000 R09: 00007ffdfa9ac9b7
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00000000000468f1 R14: 000000000004579b R15: 00007ffdfa9accf0