INFO: task syz.3.4:5338 blocked for more than 143 seconds.
Not tainted 6.11.0-syzkaller-02520-gadfc3ded5c33 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.4 state:D stack:26864 pid:5338 tgid:5311 ppid:5228 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5188 [inline]
__schedule+0x17ae/0x4a10 kernel/sched/core.c:6529
__schedule_loop kernel/sched/core.c:6606 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6621
io_schedule+0x8d/0x110 kernel/sched/core.c:7401
folio_wait_bit_common+0x882/0x12b0 mm/filemap.c:1307
folio_wait_writeback+0xe7/0x1e0 mm/page-writeback.c:3189
__filemap_fdatawait_range+0x181/0x410 mm/filemap.c:532
filemap_write_and_wait_range+0x1e9/0x290 mm/filemap.c:694
bch2_write_invalidate_inode_pages_range+0x82/0x120 fs/bcachefs/fs-io-pagecache.c:61
bchfs_fcollapse_finsert+0x207/0x640 fs/bcachefs/fs-io.c:577
bch2_fallocate_dispatch+0x3c9/0x540
vfs_fallocate+0x569/0x6e0 fs/open.c:333
ksys_fallocate fs/open.c:356 [inline]
__do_sys_fallocate fs/open.c:364 [inline]
__se_sys_fallocate fs/open.c:362 [inline]
__x64_sys_fallocate+0xbd/0x110 fs/open.c:362
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:0x7f21d897def9
RSP: 002b:00007f21d9844038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f21d8b36058 RCX: 00007f21d897def9
RDX: 0000000000000000 RSI: 0000000000000020 RDI: 0000000000000006
RBP: 00007f21d89f0b76 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000008000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f21d8b36058 R15: 00007fffcd9bb138
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8e738660 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline]
#0: ffffffff8e738660 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline]
#0: ffffffff8e738660 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6626
2 locks held by kworker/u8:8/2976:
#0: ffff88801ff69148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline]
#0: ffff88801ff69148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312
#1: ffffc90009ca7d00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline]
#1: ffffc90009ca7d00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312
2 locks held by getty/4973:
#0: ffff8880352880a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
1 lock held by syz.3.4/5312:
#0: ffff888027828420 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2930 [inline]
#0: ffff888027828420 (sb_writers#12){.+.+}-{0:0}, at: vfs_writev+0x2d1/0xba0 fs/read_write.c:1062
2 locks held by syz.3.4/5338:
#0: ffff888027828420 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2930 [inline]
#0: ffff888027828420 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x4fe/0x6e0 fs/open.c:332
#1: ffff88805d719768 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline]
#1: ffff88805d719768 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: bch2_fallocate_dispatch+0x1e2/0x540 fs/bcachefs/fs-io.c:781
5 locks held by syz.3.4/5339:
#0: ffff888027828420 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515
#1: ffff88805d528148 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline]
#1: ffff88805d528148 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: do_truncate+0x20c/0x310 fs/open.c:63
#2: ffff88805c780a18 (&c->snapshot_create_lock){.+.+}-{3:3}, at: bch2_truncate+0x16c/0x2c0 fs/bcachefs/io_misc.c:290
#3:
ffff88805c7842c0 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline]
ffff88805c7842c0 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline]
ffff88805c7842c0 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7de/0xd20 fs/bcachefs/btree_iter.c:3200
#4: ffff88805c7a6690 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197
3 locks held by bch-reclaim/loo/5327:
2 locks held by syz.0.50/5800:
#0: ffff8880278280e0 (&type->s_umount_key#77){.+.+}-{3:3}, at: __super_lock fs/super.c:58 [inline]
#0: ffff8880278280e0 (&type->s_umount_key#77){.+.+}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120
#1: ffff888027828938 (&s->s_sync_lock){+.+.}-{3:3}, at: wait_sb_inodes fs/fs-writeback.c:2619 [inline]
#1: ffff888027828938 (&s->s_sync_lock){+.+.}-{3:3}, at: sync_inodes_sb+0x335/0xb40 fs/fs-writeback.c:2802
2 locks held by syz.0.141/6424:
#0: ffff8880278280e0 (&type->s_umount_key#77){.+.+}-{3:3}, at: __super_lock fs/super.c:58 [inline]
#0: ffff8880278280e0 (&type->s_umount_key#77){.+.+}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120
#1: ffff888027828938 (&s->s_sync_lock){+.+.}-{3:3}, at: wait_sb_inodes fs/fs-writeback.c:2619 [inline]
#1: ffff888027828938 (&s->s_sync_lock){+.+.}-{3:3}, at: sync_inodes_sb+0x335/0xb40 fs/fs-writeback.c:2802
2 locks held by syz.1.149/6583:
#0: ffff8880278280e0 (&type->s_umount_key#77){.+.+}-{3:3}, at: __super_lock fs/super.c:58 [inline]
#0: ffff8880278280e0 (&type->s_umount_key#77){.+.+}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120
#1: ffff888027828938 (&s->s_sync_lock){+.+.}-{3:3}, at: wait_sb_inodes fs/fs-writeback.c:2619 [inline]
#1: ffff888027828938 (&s->s_sync_lock){+.+.}-{3:3}, at: sync_inodes_sb+0x335/0xb40 fs/fs-writeback.c:2802
2 locks held by syz.3.151/6586:
2 locks held by syz.0.142/6592:
1 lock held by syz.4.154/6598:
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-syzkaller-02520-gadfc3ded5c33 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
Call Trace:
__dump_stack lib/dump_stack.c:93 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119
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+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 UID: 0 PID: 6265 Comm: syz-executor Not tainted 6.11.0-syzkaller-02520-gadfc3ded5c33 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:lock_is_held_type+0x0/0x190 kernel/locking/lockdep.c:5816
Code: f5 90 0f 0b 90 90 90 eb b5 e8 2c fc ff ff 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 41 57 41 56 41 55 41 54 53 48 83 ec 10 65 48 8b 04
RSP: 0018:ffffc9000498f428 EFLAGS: 00000082
RAX: 0000000000000000 RBX: ffff88804bd5d8a8 RCX: ffff88801fb8bc00
RDX: ffff88801fb8bc00 RSI: 00000000ffffffff RDI: ffff88804bd5d8a8
RBP: 0000000000000001 R08: ffffffff8bac6d79 R09: 1ffff1100bafab5f
R10: dffffc0000000000 R11: ffffed100bafab60 R12: 0000000000000000
R13: ffffea00012b0640 R14: ffff88805d7d59c0 R15: 0000000000000000
FS: 000055555c11f500(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555c142608 CR3: 000000007dc16000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_is_held include/linux/lockdep.h:249 [inline]
xa_entry_locked include/linux/xarray.h:1229 [inline]
xas_store+0x90e/0x1890 lib/xarray.c:836
page_cache_delete mm/filemap.c:149 [inline]
__filemap_remove_folio+0x585/0x9e0 mm/filemap.c:232
filemap_remove_folio+0x108/0x2e0 mm/filemap.c:264
truncate_inode_folio+0x5d/0x70 mm/truncate.c:178
shmem_undo_range+0x45d/0x1df0 mm/shmem.c:1019
shmem_truncate_range mm/shmem.c:1132 [inline]
shmem_evict_inode+0x29b/0xa80 mm/shmem.c:1260
evict+0x4e8/0x9b0 fs/inode.c:731
__dentry_kill+0x20d/0x630 fs/dcache.c:615
dput+0x19f/0x2b0 fs/dcache.c:857
__fput+0x5d2/0x880 fs/file_table.c:439
task_work_run+0x24f/0x310 kernel/task_work.c:228
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:328 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x168/0x370 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1d25f7cb8a
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 13 8c 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 73 8c 02 00 8b 44 24
RSP: 002b:00007ffe127a45c0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007f1d25f7cb8a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffe127a460c R08: 0000000000000000 R09: 00007ffe127a4327
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032
R13: 000000000003a8b7 R14: 000000000003a130 R15: 00007ffe127a4660