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: 490d, last: 56d
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 193d 571d 25/28 fixed on 2024/03/20 11:33
linux-6.1 kernel BUG in ntfs_iget origin:upstream missing-backport C done 6 138d 491d 0/3 upstream: reported C repro on 2023/05/14 00:47
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2024/08/24 14:48 0m fix candidate upstream error job log
2024/06/23 17:27 6m fix candidate upstream error job log
2023/07/17 03:41 0m bisect fix linux-5.15.y error job log

Sample crash report:
ntfs: (device loop0): is_boot_sector_ntfs(): Invalid boot sector checksum.
ntfs: (device loop0): is_boot_sector_ntfs(): Invalid end of sector marker.
------------[ cut here ]------------
kernel BUG at fs/ntfs/malloc.h:31!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3966 Comm: syz-executor389 Not tainted 5.15.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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 : ffff800018f174e0
x29: ffff800018f174e0 x28: ffff0000df2a0840 x27: ffff0000df2a0a04
x26: 0000000000000000 x25: dfff800000000000 x24: ffff00018947a510
x23: ffff00018947a400 x22: ffff0000df2a0ba0 x21: 1fffe0003128f4a2
x20: ffff0000c9bce000 x19: 0000000000000000 x18: 0000000000000000
x17: 0000000000000000 x16: ffff80000954432c x15: 00000000fffffffe
x14: ffff0000c910d1c0 x13: 0000000000ff0100 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000c910d1c0
x8 : ffff80000954d1e0 x7 : ffff0000c87d1100 x6 : ffff0000c87d1100
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff80000954d20c
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: 97bdd9a7 aa1f03e0 17ffffdf 97bdd9a4 (d4210000) 
---[ end trace b0df6d81f112f5f5 ]---

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/22 04:55 linux-5.15.y 7c6d66f0266f b88348e9 .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_iget
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.