syzbot


INFO: task hung in ntfs_fallocate

Status: upstream: reported C repro on 2025/12/05 05:04
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+3829f3f96d42c57315fe@syzkaller.appspotmail.com
First crash: 56d, last: 1d11h
Cause bisection: the cause commit could be any of (bisect log):
  1997cdc3e727 fs/ntfs3: Use variable length array instead of fixed size
  c935c6687886 fs/ntfs3: Redesign ntfs_create_inode to return error code instead of inode
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] INFO: task hung in ntfs_fallocate 0 (1) 2025/12/05 05:04
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in ntfs_fallocate 1 1 907d 907d 0/3 auto-obsoleted due to no activity on 2023/11/11 09:02
linux-5.15 INFO: task hung in ntfs_fallocate origin:lts-only 1 C error 11 11d 13d 0/3 upstream: reported C repro on 2026/01/13 10:08
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/12/15 08:50 16m retest repro upstream report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2026/01/18 05:44 2h19m bisect fix upstream OK (0) job log log

Sample crash report:
INFO: task syz.0.17:6089 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.17        state:D stack:29224 pid:6089  tgid:6083  ppid:6000   task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5325 [inline]
 __schedule+0x16f3/0x4c20 kernel/sched/core.c:6929
 __schedule_loop kernel/sched/core.c:7011 [inline]
 rt_mutex_schedule+0x77/0xf0 kernel/sched/core.c:7307
 rt_mutex_slowlock_block kernel/locking/rtmutex.c:1647 [inline]
 __rt_mutex_slowlock kernel/locking/rtmutex.c:1721 [inline]
 __rt_mutex_slowlock_locked+0x1e04/0x25e0 kernel/locking/rtmutex.c:1760
 rt_mutex_slowlock+0xb5/0x160 kernel/locking/rtmutex.c:1800
 __rt_mutex_lock kernel/locking/rtmutex.c:1815 [inline]
 rwbase_write_lock+0x14f/0x750 kernel/locking/rwbase_rt.c:244
 inode_lock include/linux/fs.h:980 [inline]
 ntfs_fallocate+0x2f1/0x10b0 fs/ntfs3/file.c:560
 vfs_fallocate+0x672/0x7f0 fs/open.c:342
 ksys_fallocate fs/open.c:366 [inline]
 __do_sys_fallocate fs/open.c:371 [inline]
 __se_sys_fallocate fs/open.c:369 [inline]
 __x64_sys_fallocate+0xc0/0x110 fs/open.c:369
 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:0x7fbb943cf749
RSP: 002b:00007fbb93a15038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007fbb94626090 RCX: 00007fbb943cf749
RDX: 0000000000000923 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007fbb94453f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000008000c66 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fbb94626128 R14: 00007fbb94626090 R15: 00007fff784f6d78
 </TASK>

Showing all locks held in the system:
4 locks held by kworker/u8:2/37:
1 lock held by khungtaskd/39:
 #0: ffffffff8d5aa880 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
 #0: ffffffff8d5aa880 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline]
 #0: ffffffff8d5aa880 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6775
2 locks held by kworker/u8:8/1179:
2 locks held by getty/5560:
 #0: ffff88823bf780a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc90003e832e0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x444/0x1400 drivers/tty/n_tty.c:2222
3 locks held by syz.0.17/6084:
2 locks held by syz.0.17/6089:
 #0: ffff8880362c0480 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3113 [inline]
 #0: ffff8880362c0480 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x5f9/0x7f0 fs/open.c:341
 #1: ffff88804155f6f8 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:980 [inline]
 #1: ffff88804155f6f8 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: ntfs_fallocate+0x2f1/0x10b0 fs/ntfs3/file.c:560
2 locks held by syz.1.18/6165:
2 locks held by syz.1.18/6166:
 #0: ffff88803c8a2480 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3113 [inline]
 #0: ffff88803c8a2480 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x5f9/0x7f0 fs/open.c:341
 #1: ffff8880551def48 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:980 [inline]
 #1: ffff8880551def48 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: ntfs_fallocate+0x2f1/0x10b0 fs/ntfs3/file.c:560
3 locks held by syz.2.19/6190:
2 locks held by syz.2.19/6191:
 #0: ffff888037542480 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3113 [inline]
 #0: ffff888037542480 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x5f9/0x7f0 fs/open.c:341
 #1: ffff8880550c4128 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:980 [inline]
 #1: ffff8880550c4128 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: ntfs_fallocate+0x2f1/0x10b0 fs/ntfs3/file.c:560
2 locks held by syz.3.20/6222:
2 locks held by syz.3.20/6223:
 #0: ffff8880522d4480 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3113 [inline]
 #0: ffff8880522d4480 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x5f9/0x7f0 fs/open.c:341
 #1: ffff8880551d9ab8 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:980 [inline]
 #1: ffff8880551d9ab8 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: ntfs_fallocate+0x2f1/0x10b0 fs/ntfs3/file.c:560
2 locks held by syz.4.21/6254:
2 locks held by syz.4.21/6255:
 #0: ffff88803a092480 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3113 [inline]
 #0: ffff88803a092480 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x5f9/0x7f0 fs/open.c:341
 #1: ffff888055180b58 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:980 [inline]
 #1: ffff888055180b58 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: ntfs_fallocate+0x2f1/0x10b0 fs/ntfs3/file.c:560
3 locks held by syz.5.22/6285:
2 locks held by syz.5.22/6286:
 #0: ffff88814dc12480 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3113 [inline]
 #0: ffff88814dc12480 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x5f9/0x7f0 fs/open.c:341
 #1: ffff8880550c2a18 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:980 [inline]
 #1: ffff8880550c2a18 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: ntfs_fallocate+0x2f1/0x10b0 fs/ntfs3/file.c:560
2 locks held by syz.6.24/6327:
2 locks held by syz.6.24/6328:
 #0: ffff88802ef2c480 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3113 [inline]
 #0: ffff88802ef2c480 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x5f9/0x7f0 fs/open.c:341
 #1: ffff8880552d6798 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:980 [inline]
 #1: ffff8880552d6798 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: ntfs_fallocate+0x2f1/0x10b0 fs/ntfs3/file.c:560
2 locks held by syz-executor/6330:
 #0: ffffffff8ed670b0 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
 #0: ffffffff8ed670b0 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline]
 #0: ffffffff8ed670b0 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250 net/core/rtnetlink.c:570
 #1: ffffffff8e863d78 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline]
 #1: ffffffff8e863d78 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline]
 #1: ffffffff8e863d78 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8e9/0x1c80 net/core/rtnetlink.c:4064

=============================================

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 39 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Call Trace:
 <TASK>
 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
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 6222 Comm: syz.3.20 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:lookup_chain_cache kernel/locking/lockdep.c:3801 [inline]
RIP: 0010:lookup_chain_cache_add kernel/locking/lockdep.c:3821 [inline]
RIP: 0010:validate_chain+0xa4/0x2140 kernel/locking/lockdep.c:3876
Code: c6 2c 87 e6 8c e8 9c d0 e6 ff 90 0f 0b 90 90 90 48 bb eb 83 b5 80 46 86 c8 61 49 0f af df 48 c1 eb 2d 48 8b 04 dd 40 63 66 92 <48> 85 c0 0f 94 c1 48 83 c0 f8 0f 94 c2 08 ca 0f 84 24 01 00 00 e8
RSP: 0018:ffffc900041ff578 EFLAGS: 00000802
RAX: ffffffff92cbbdd8 RBX: 000000000006a55e RCX: 0000000000040000
RDX: 0000000000000000 RSI: ffff888025f047b0 RDI: ffff888025f03c00
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff82fe95af
R10: dffffc0000000000 R11: ffffed100aa3b309 R12: 0000000000000000
R13: ffff888025f04760 R14: ffff888025f047b0 R15: 4ed7cc28fbe4c237
FS:  00007efc548166c0(0000) GS:ffff888126df4000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcf91b0da8 CR3: 00000000348e6000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __lock_acquire+0xab9/0xd20 kernel/locking/lockdep.c:5237
 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
 down_read+0x97/0x1f0 kernel/locking/rwsem.c:1537
 attr_data_get_block+0x10f/0x1ec0 fs/ntfs3/attrib.c:906
 ntfs_compress_write+0x59b/0x1c10 fs/ntfs3/file.c:1009
 ntfs_file_write_iter+0x4cf/0x870 fs/ntfs3/file.c:1252
 new_sync_write fs/read_write.c:593 [inline]
 vfs_write+0x5d5/0xb40 fs/read_write.c:686
 ksys_pwrite64 fs/read_write.c:793 [inline]
 __do_sys_pwrite64 fs/read_write.c:801 [inline]
 __se_sys_pwrite64 fs/read_write.c:798 [inline]
 __x64_sys_pwrite64+0x196/0x220 fs/read_write.c:798
 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:0x7efc551af749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007efc54816038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007efc55405fa0 RCX: 00007efc551af749
RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000006
RBP: 00007efc55233f91 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fecc R11: 0000000000000246 R12: 0000000000000000
R13: 00007efc55406038 R14: 00007efc55405fa0 R15: 00007fff8ce48068
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/01 04:53 upstream e69c7c175115 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: task hung in ntfs_fallocate
2026/01/25 08:40 upstream 5dbeeb268b63 40acda8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in ntfs_fallocate
2025/12/01 01:51 upstream e69c7c175115 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in ntfs_fallocate
* Struck through repros no longer work on HEAD.