syzbot


kernel BUG in ntfs_iget

Status: upstream: reported C repro on 2023/05/15 07:12
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+2a0cbbd463aec4712bb9@syzkaller.appspotmail.com
First crash: 347d, last: 13d
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/04/12 linux-5.15.y (ToT) cdfd0a7f0139 C [report] kernel BUG in ntfs_iget
2023/05/18 upstream (ToT) 4d6d4c7f541d C [report] kernel BUG in ntfs_iget
2024/04/12 upstream (ToT) 586b5dfb51b9 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ntfs_iget ntfs3 C error done 73 50d 427d 26/26 fixed on 2024/03/20 11:33
linux-6.1 kernel BUG in ntfs_iget origin:upstream C error 5 116d 348d 0/3 upstream: reported C repro on 2023/05/14 00:47

Sample crash report:
loop0: detected capacity change from 0 to 4096
------------[ cut here ]------------
kernel BUG at fs/ntfs/malloc.h:31!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3962 Comm: syz-executor421 Not tainted 5.15.149-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __ntfs_malloc fs/ntfs/malloc.h:31 [inline]
pc : ntfs_malloc_nofs+0x10c/0x110 fs/ntfs/malloc.h:52
lr : __ntfs_malloc fs/ntfs/malloc.h:31 [inline]
lr : ntfs_malloc_nofs+0x10c/0x110 fs/ntfs/malloc.h:52
sp : ffff80001c8774e0
x29: ffff80001c8774e0 x28: ffff0000dc208840 x27: ffff0000dc208a04
x26: 0000000000000000 x25: dfff800000000000 x24: ffff00018946b918
x23: ffff00018946b800 x22: ffff0000dc208ba0 x21: 1fffe0003128d723
x20: ffff0000da392000 x19: 0000000000000000 x18: 0000000000000000
x17: 0000000000000000 x16: ffff80000952da14 x15: 00000000fffffffe
x14: ffff0000c83f1b40 x13: 0000000000ff0100 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000c83f1b40
x8 : ffff8000095368c8 x7 : ffff0000d9eaa100 x6 : ffff0000d9eaa100
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000095368f4
x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 __ntfs_malloc fs/ntfs/malloc.h:31 [inline]
 ntfs_malloc_nofs+0x10c/0x110 fs/ntfs/malloc.h:52
 ntfs_read_locked_inode+0x1838/0x38f0 fs/ntfs/inode.c:703
 ntfs_iget+0x110/0x19c fs/ntfs/inode.c:177
 load_and_init_mft_mirror fs/ntfs/super.c:1027 [inline]
 load_system_files+0xe0/0x4228 fs/ntfs/super.c:1772
 ntfs_fill_super+0x1670/0x24e8 fs/ntfs/super.c:2894
 mount_bdev+0x274/0x370 fs/super.c:1387
 ntfs_mount+0x44/0x58 fs/ntfs/super.c:3051
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611
 vfs_get_tree+0x90/0x274 fs/super.c:1517
 do_new_mount+0x278/0x8fc fs/namespace.c:3005
 path_mount+0x594/0x101c fs/namespace.c:3335
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount fs/namespace.c:3533 [inline]
 __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3533
 __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: 97be2af0 aa1f03e0 17ffffdf 97be2aed (d4210000) 
---[ end trace 7cd1037b64f0bf71 ]---

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/26 07:59 linux-5.15.y 458ce51d0356 8d446f15 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_iget
2023/05/15 07:11 linux-5.15.y b0ece631f84a 2b9ba477 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_iget
2023/06/08 14:29 linux-5.15.y d7af3e5ba454 058b3a5a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ntfs_iget
2024/03/01 03:50 linux-5.15.y 458ce51d0356 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_iget
2024/02/26 07:40 linux-5.15.y 458ce51d0356 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_iget
* Struck through repros no longer work on HEAD.