syzbot


kernel BUG in ntfs_iget

Status: upstream: reported C repro on 2023/05/15 07:12
Bug presence: origin:lts-only
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+2a0cbbd463aec4712bb9@syzkaller.appspotmail.com
First crash: 1032d, last: 8d04h
Fix commit to backport (bisect log) :
tree: upstream
commit 7ffa8f3d30236e0ab897c30bdb01224ff1fe1c89
Author: Matthew Wilcox (Oracle) <willy@infradead.org>
Date: Mon Jan 15 07:20:25 2024 +0000

  fs: Remove NTFS classic

  
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2024/11/03 linux-5.15.y (ToT) 72244eab0dad C [report] kernel BUG in ntfs_iget
2024/11/03 upstream (ToT) 11066801dd4b C Didn't crash
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ntfs_iget ntfs3 -1 C error done 73 735d 1112d 25/29 fixed on 2024/03/20 11:33
linux-6.1 kernel BUG in ntfs_iget origin:upstream missing-backport -1 C done 7 490d 1033d 0/3 upstream: reported C repro on 2023/05/14 00:47
Last patch testing requests (10)
Created Duration User Patch Repo Result
2026/02/03 01:04 10m retest repro linux-5.15.y error
2026/01/07 19:04 23m retest repro linux-5.15.y report log
2025/12/24 06:40 21m retest repro linux-5.15.y report log
2025/12/24 06:40 10m retest repro linux-5.15.y report log
2025/12/24 06:40 10m retest repro linux-5.15.y report log
2025/12/24 06:40 10m retest repro linux-5.15.y error
2025/11/24 18:06 21m retest repro linux-5.15.y report log
2025/10/28 16:40 10m retest repro linux-5.15.y report log
2025/10/13 19:46 37m retest repro linux-5.15.y report log
2025/10/13 19:46 14m retest repro linux-5.15.y report log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2025/03/09 00:34 9h15m fix candidate upstream OK (1) job log
2024/10/13 17:36 1m fix candidate upstream error job log
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:
WARNING: The mand mount option has been deprecated and
         and is ignored by this kernel. Remove the mand
         option from the mount to silence this warning.
=======================================================
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!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4308 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
RIP: 0010:__ntfs_malloc fs/ntfs/malloc.h:31 [inline]
RIP: 0010:ntfs_malloc_nofs+0xfd/0x100 fs/ntfs/malloc.h:52
Code: 17 e8 a7 64 e6 fe 48 89 df be 42 0c 00 00 5b 41 5e 41 5f e9 55 3b 20 ff e8 90 64 e6 fe 31 c0 5b 41 5e 41 5f c3 e8 83 64 e6 fe <0f> 0b 90 55 41 57 41 56 41 55 41 54 53 48 89 fb 49 bc 00 00 00 00
RSP: 0018:ffffc9000330f888 EFLAGS: 00010293
RAX: ffffffff8292bdbd RBX: 0000000000000000 RCX: ffff8880228c5940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88805ccc0050 R08: ffff88805ccc0057 R09: 1ffff1100b99800a
R10: dffffc0000000000 R11: ffffed100b99800b R12: 1ffff1100f3da6a2
R13: ffff888079ed3508 R14: dffffc0000000000 R15: ffff888079ed3538
FS:  000055558f7d5500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3e61f8f9c0 CR3: 000000007d2f4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ntfs_read_locked_inode+0x2145/0x4de0 fs/ntfs/inode.c:703
 ntfs_iget+0x108/0x1a0 fs/ntfs/inode.c:177
 load_and_init_mft_mirror fs/ntfs/super.c:1027 [inline]
 load_system_files+0xd8/0x55a0 fs/ntfs/super.c:1772
 ntfs_fill_super+0x19e0/0x2c90 fs/ntfs/super.c:2894
 mount_bdev+0x287/0x3c0 fs/super.c:1400
 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x24a/0xa40 fs/namespace.c:3034
 do_mount fs/namespace.c:3377 [inline]
 __do_sys_mount fs/namespace.c:3585 [inline]
 __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3562
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f716f8a5a0a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe4e9e13b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe4e9e1440 RCX: 00007f716f8a5a0a
RDX: 0000200000000040 RSI: 000020000001ecc0 RDI: 00007ffe4e9e1400
RBP: 0000200000000040 R08: 00007ffe4e9e1440 R09: 0000000000000050
R10: 0000000000000050 R11: 0000000000000246 R12: 000020000001ecc0
R13: 00007ffe4e9e1400 R14: 000000000000113a R15: 0000200000000180
 </TASK>
Modules linked in:
---[ end trace ae96f53dca2e1210 ]---
RIP: 0010:__ntfs_malloc fs/ntfs/malloc.h:31 [inline]
RIP: 0010:ntfs_malloc_nofs+0xfd/0x100 fs/ntfs/malloc.h:52
Code: 17 e8 a7 64 e6 fe 48 89 df be 42 0c 00 00 5b 41 5e 41 5f e9 55 3b 20 ff e8 90 64 e6 fe 31 c0 5b 41 5e 41 5f c3 e8 83 64 e6 fe <0f> 0b 90 55 41 57 41 56 41 55 41 54 53 48 89 fb 49 bc 00 00 00 00
RSP: 0018:ffffc9000330f888 EFLAGS: 00010293
RAX: ffffffff8292bdbd RBX: 0000000000000000 RCX: ffff8880228c5940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88805ccc0050 R08: ffff88805ccc0057 R09: 1ffff1100b99800a
R10: dffffc0000000000 R11: ffffed100b99800b R12: 1ffff1100f3da6a2
R13: ffff888079ed3508 R14: dffffc0000000000 R15: ffff888079ed3538
FS:  000055558f7d5500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3e61f8f9c0 CR3: 000000007d2f4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/03/04 04:33 linux-5.15.y 3330a8d33e08 4180d919 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan 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
2025/04/10 11:19 linux-5.15.y 0c935c049b5c 988b336c .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/12/20 13:55 linux-5.15.y 91786f140358 0f61b415 .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/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
2025/04/10 10:52 linux-5.15.y 0c935c049b5c 988b336c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 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.