INFO: task syz.0.190:7214 blocked for more than 143 seconds.
Not tainted 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.190 state:D stack:21824 pid:7214 tgid:7189 ppid:5815 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
io_schedule+0x8d/0x110 kernel/sched/core.c:7681
folio_wait_bit_common+0x882/0x12b0 mm/filemap.c:1308
folio_wait_writeback+0xe7/0x1e0 mm/page-writeback.c:3194
truncate_inode_partial_folio+0xb1/0x640 mm/truncate.c:192
truncate_inode_pages_range+0x60a/0xfc0 mm/truncate.c:338
truncate_inode_pages mm/truncate.c:407 [inline]
truncate_pagecache mm/truncate.c:715 [inline]
truncate_setsize+0xcf/0xf0 mm/truncate.c:740
bchfs_truncate+0x6f3/0xc90 fs/bcachefs/fs-io.c:441
notify_change+0xbca/0xe90 fs/attr.c:552
do_truncate+0x220/0x310 fs/open.c:65
handle_truncate fs/namei.c:3449 [inline]
do_open fs/namei.c:3832 [inline]
path_openat+0x2e1e/0x3590 fs/namei.c:3987
do_filp_open+0x27f/0x4e0 fs/namei.c:4014
do_sys_openat2+0x13e/0x1d0 fs/open.c:1402
do_sys_open fs/open.c:1417 [inline]
__do_sys_creat fs/open.c:1495 [inline]
__se_sys_creat fs/open.c:1489 [inline]
__x64_sys_creat+0x123/0x170 fs/open.c:1489
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:0x7efda977ff19
RSP: 002b:00007efdaa5d0058 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007efda9946080 RCX: 00007efda977ff19
RDX: 0000000000000000 RSI: 0000000000000125 RDI: 0000000020000000
RBP: 00007efda97f3986 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007efda9946080 R15: 00007ffc54c0b998
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8e937aa0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937aa0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937aa0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744
2 locks held by kworker/u8:6/1147:
2 locks held by getty/5570:
#0: ffff88814d6820a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
3 locks held by kworker/1:5/5871:
#0: ffff88801ac80948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801ac80948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310
#1: ffffc900041a7d00 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc900041a7d00 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
#2: ffff88804dafe240 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x2d1/0x4130 drivers/net/netdevsim/fib.c:1490
2 locks held by kworker/u8:9/5916:
#0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310
#1: ffffc90004327d00 (connector_reaper_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90004327d00 (connector_reaper_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
2 locks held by syz.0.190/7190:
#0: ffff88807c7c09b8 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x254/0x320 fs/file.c:1191
#1: ffff88807eb0c420 (sb_writers#31){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2964 [inline]
#1: ffff88807eb0c420 (sb_writers#31){.+.+}-{0:0}, at: vfs_write+0x225/0xd30 fs/read_write.c:675
2 locks held by syz.0.190/7214:
#0: ffff88807eb0c420 (sb_writers#31){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515
#1: ffff88805895a6c8 (&sb->s_type->i_mutex_key#40){++++}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline]
#1: ffff88805895a6c8 (&sb->s_type->i_mutex_key#40){++++}-{4:4}, at: do_truncate+0x20c/0x310 fs/open.c:63
4 locks held by bch-reclaim/loo/7207:
#0: ffff88805124b0a8 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x167/0x560 fs/bcachefs/journal_reclaim.c:739
#1: ffff888051204398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#1: ffff888051204398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline]
#1: ffff888051204398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228
#2: ffff888051204740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1b19/0x1cc0 fs/bcachefs/btree_write_buffer.c:516
#3: ffff8880512266d0 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197
2 locks held by syz.5.251/7897:
#0: ffff88807eb0c0e0 (&type->s_umount_key#66){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff88807eb0c0e0 (&type->s_umount_key#66){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120
#1: ffff88807eb0c948 (&s->s_sync_lock){+.+.}-{4:4}, at: wait_sb_inodes fs/fs-writeback.c:2641 [inline]
#1: ffff88807eb0c948 (&s->s_sync_lock){+.+.}-{4:4}, at: sync_inodes_sb+0x32e/0xb50 fs/fs-writeback.c:2824
2 locks held by syz.9.345/8912:
#0: ffff88807eb0c0e0 (&type->s_umount_key#66){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff88807eb0c0e0 (&type->s_umount_key#66){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120
#1: ffff88807eb0c948 (&s->s_sync_lock){+.+.}-{4:4}, at: wait_sb_inodes fs/fs-writeback.c:2641 [inline]
#1: ffff88807eb0c948 (&s->s_sync_lock){+.+.}-{4:4}, at: sync_inodes_sb+0x32e/0xb50 fs/fs-writeback.c:2824
3 locks held by syz-executor/9238:
2 locks held by syz-executor/9986:
2 locks held by syz.8.453/11009:
1 lock held by syz.3.455/10961:
#0: ffff88807881e0e0 (&type->s_umount_key#69/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 fs/super.c:344
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:234 [inline]
watchdog+0xff6/0x1040 kernel/hung_task.c:397
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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 9238 Comm: syz-executor Not tainted 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:io_serial_in+0x76/0xb0 drivers/tty/serial/8250/8250_port.c:409
Code: 40 af 4f fc 89 e9 41 d3 e6 48 83 c3 40 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 21 6b b7 fc 44 03 33 44 89 f2 ec <0f> b6 c0 5b 41 5e 41 5f 5d c3 cc cc cc cc 89 e9 80 e1 07 38 c1 7c
RSP: 0018:ffffc9000c55e9d8 EFLAGS: 00000006
RAX: 1ffffffff34d9e05 RBX: ffffffff9a6cf5e0 RCX: 0000000000000000
RDX: 00000000000003f9 RSI: 0000000000000000 RDI: 0000000000000020
RBP: 0000000000000000 R08: ffffffff854fc286 R09: fffff520018abd1c
R10: dffffc0000000000 R11: ffffffff854fc240 R12: dffffc0000000000
R13: 1ffff920018abd58 R14: 00000000000003f9 R15: dffffc0000000000
FS: 000055558bd6a500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa1fbe4f318 CR3: 00000000695d6000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
serial_port_in include/linux/serial_core.h:791 [inline]
serial8250_console_write+0x4de/0x1ed0 drivers/tty/serial/8250/8250_port.c:3376
console_emit_next_record kernel/printk/printk.c:3122 [inline]
console_flush_all+0x869/0xeb0 kernel/printk/printk.c:3210
__console_flush_and_unlock kernel/printk/printk.c:3269 [inline]
console_unlock+0x14f/0x3b0 kernel/printk/printk.c:3309
vprintk_emit+0x730/0xa10 kernel/printk/printk.c:2432
_printk+0xd5/0x120 kernel/printk/printk.c:2457
dump_stack_print_info+0x113/0x1f0 lib/dump_stack.c:57
__dump_stack lib/dump_stack.c:93 [inline]
dump_stack_lvl+0x235/0x360 lib/dump_stack.c:120
__f2fs_is_valid_blkaddr+0xe16/0x1460 fs/f2fs/checkpoint.c:213
f2fs_map_blocks+0xdbc/0x4fa0 fs/f2fs/data.c:1599
f2fs_read_single_page fs/f2fs/data.c:2109 [inline]
f2fs_mpage_readpages+0xc43/0x2090 fs/f2fs/data.c:2434
read_pages+0x176/0x830 mm/readahead.c:160
page_cache_ra_unbounded+0x797/0x8c0 mm/readahead.c:295
page_cache_sync_readahead include/linux/pagemap.h:1397 [inline]
f2fs_readdir+0x5b9/0xbe0 fs/f2fs/dir.c:1056
iterate_dir+0x571/0x800 fs/readdir.c:108
__do_sys_getdents64 fs/readdir.c:403 [inline]
__se_sys_getdents64+0x1e2/0x4b0 fs/readdir.c:389
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:0x7fa886bb2873
Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 a2 3e f8 ff 66 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7 d8
RSP: 002b:00007ffd3af04178 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 000055558bd85600 RCX: 00007fa886bb2873
RDX: 0000000000008000 RSI: 000055558bd85600 RDI: 0000000000000005
RBP: 000055558bd855d4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffa8
R13: 0000000000000010 R14: 000055558bd855d0 R15: 00007ffd3af06420