syzbot


kernel BUG in ntfs_truncate

Status: upstream: reported C repro on 2025/06/07 18:12
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+1160900da64cca2d5003@syzkaller.appspotmail.com
First crash: 3d05h, last: 1d09h
Bug presence (2)
Date Name Commit Repro Result
2025/06/09 linux-6.1.y (ToT) 58485ff1a74f C [report] kernel BUG in ntfs_truncate
2025/06/09 upstream (ToT) 19272b37aa4f C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in ntfs_truncate origin:lts-only C error 3 24d 304d 0/3 upstream: reported C repro on 2024/08/10 18:43
upstream kernel BUG in ntfs_truncate ntfs3 C error done 4 532d 890d 25/28 fixed on 2024/01/31 13:17

Sample crash report:
ntfs: (device loop0): ntfs_read_block(): Failed to read from inode 0xa, attribute type 0x80, vcn 0x1, offset 0x0 because its location on disk could not be determined even after retrying (error code -5).
ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute.
ntfs: volume version 3.1.
------------[ cut here ]------------
kernel BUG at fs/ntfs/inode.c:2657!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4294 Comm: syz-executor827 Not tainted 6.1.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ntfs_truncate+0x212c/0x2138 fs/ntfs/inode.c:2657
lr : ntfs_truncate+0x212c/0x2138 fs/ntfs/inode.c:2657
sp : ffff8000207878d0
x29: ffff8000207879d0 x28: ffff0000dfb373d0 x27: 00000000087fdc00
x26: 0000000000000000 x25: ffff0000dd9801e8 x24: ffff0000dfb373d0
x23: 0000000000002400 x22: dfff800000000000 x21: ffff0000dfb37380
x20: 0000000000000020 x19: 0000000008800000 x18: 0000000000000072
x17: ffff8000181a1000 x16: ffff8000082e743c x15: ffff800017c81fc0
x14: ffff0000dfc5ddd8 x13: 1ffff00002a0e0b1 x12: 0000000000ff0100
x11: ff0080000953ee18 x10: 0000000000000000 x9 : ffff80000953ee18
x8 : ffff0000dfc5d340 x7 : ffff800008a4bc9c x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000082e7550
x2 : 0000000000000001 x1 : ffff800011f695a0 x0 : 0000000000000001
Call trace:
 ntfs_truncate+0x212c/0x2138 fs/ntfs/inode.c:2657
 ntfs_truncate_vfs fs/ntfs/inode.c:2862 [inline]
 ntfs_setattr+0x260/0x320 fs/ntfs/inode.c:2914
 notify_change+0xb0c/0xdcc fs/attr.c:499
 do_truncate+0x178/0x1f0 fs/open.c:65
 vfs_truncate+0x23c/0x2b0 fs/open.c:111
 do_sys_truncate+0xe8/0x1b0 fs/open.c:134
 __do_sys_truncate fs/open.c:146 [inline]
 __se_sys_truncate fs/open.c:144 [inline]
 __arm64_sys_truncate+0x5c/0x70 fs/open.c:144
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: 17fffe80 97bd896e d4210000 97bd896c (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/07 20:12 linux-6.1.y 58485ff1a74f 4826c28e .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_truncate
2025/06/07 19:36 linux-6.1.y 58485ff1a74f 4826c28e .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_truncate
2025/06/07 18:56 linux-6.1.y 58485ff1a74f 4826c28e .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_truncate
2025/06/07 18:12 linux-6.1.y 58485ff1a74f 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_truncate
* Struck through repros no longer work on HEAD.