syzbot


kernel BUG in ntfs_truncate

Status: upstream: reported C repro on 2024/08/10 18:43
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+8400deac1264d4ea0e0e@syzkaller.appspotmail.com
First crash: 60d, last: 60d
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2024/08/10 linux-5.15.y (ToT) 7e89efd3ae1c C [report] kernel BUG in ntfs_truncate
2024/08/10 upstream (ToT) 5189dafa4cf9 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ntfs_truncate ntfs3 C error done 4 288d 647d 25/28 fixed on 2024/01/31 13:17

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs: volume version 3.1.
------------[ cut here ]------------
kernel BUG at fs/ntfs/inode.c:2536!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4019 Comm: syz-executor259 Not tainted 5.15.164-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ntfs_truncate+0x2034/0x224c fs/ntfs/inode.c:2536
lr : ntfs_truncate+0x2034/0x224c fs/ntfs/inode.c:2536
sp : ffff80001cae73d0
x29: ffff80001cae74b0 x28: dfff800000000000 x27: ffff0000de3552d0
x26: 0000000000000000 x25: ffff0000de355310 x24: 000000000000000a
x23: 0000000000000000 x22: ffff0000caea3038 x21: ffff000189278160
x20: ffff0000de3552f8 x19: ffff0000de355280 x18: 0000000000000000
x17: 0000000000000000 x16: ffff8000095562f0 x15: 00000000ffffffde
x14: ffff0000c8d051c0 x13: 0000000000ff0100 x12: ffffffffffffffff
x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000c8d051c0
x8 : ffff800009557e5c x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000020 x4 : 0000000000000000 x3 : ffff80000804605c
x2 : 0000000000000000 x1 : 00000000ffffffe4 x0 : ffff0000c7f98a80
Call trace:
 ntfs_truncate+0x2034/0x224c fs/ntfs/inode.c:2536
 ntfs_truncate_vfs fs/ntfs/inode.c:2862 [inline]
 ntfs_setattr+0x260/0x320 fs/ntfs/inode.c:2914
 notify_change+0xa34/0xcf8 fs/attr.c:505
 do_truncate+0x1c0/0x28c fs/open.c:65
 handle_truncate fs/namei.c:3265 [inline]
 do_open fs/namei.c:3612 [inline]
 path_openat+0x20c4/0x26cc fs/namei.c:3742
 do_filp_open+0x1a8/0x3b4 fs/namei.c:3769
 do_sys_openat2+0x128/0x3e0 fs/open.c:1253
 do_sys_open fs/open.c:1269 [inline]
 __do_sys_openat fs/open.c:1285 [inline]
 __se_sys_openat fs/open.c:1280 [inline]
 __arm64_sys_openat+0x1f0/0x240 fs/open.c:1280
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: 17fffe5e 97bdae1f d4210000 97bdae1d (d4210000) 
---[ end trace 598ed1c6e8fbb621 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/10 20:48 linux-5.15.y 7e89efd3ae1c 6f4edef4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_truncate
2024/08/10 19:47 linux-5.15.y 7e89efd3ae1c 6f4edef4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_truncate
2024/08/10 18:43 linux-5.15.y 7e89efd3ae1c 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_truncate
* Struck through repros no longer work on HEAD.