syzbot


kernel BUG in ntfs_iget

Status: upstream: reported C repro on 2023/05/14 00:47
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+1ff3652b68ef82812137@syzkaller.appspotmail.com
First crash: 292d, last: 60d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2024/01/01 upstream (ToT) 610a9b8f49fb C [report] kernel BUG in ntfs_iget
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 72 41d 372d 0/26 upstream: reported C repro on 2023/02/23 12:51
linux-5.15 kernel BUG in ntfs_iget origin:upstream C error 5 9h28m 291d 0/3 upstream: reported C repro on 2023/05/15 07:12
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/10/01 03:24 10m bisect fix linux-6.1.y error job log (0)
2023/08/01 20:59 2h33m bisect fix linux-6.1.y job log (0) 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: 3541 Comm: syz-executor295 Not tainted 6.1.69-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
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 07 79 c7 fe 48 89 df be 42 0c 00 00 5b 41 5e 41 5f e9 d5 68 11 ff e8 f0 78 c7 fe 31 c0 5b 41 5e 41 5f c3 e8 e3 78 c7 fe <0f> 0b 90 55 41 57 41 56 41 55 41 54 53 49 89 fe 49 bc 00 00 00 00
RSP: 0018:ffffc90003a0f818 EFLAGS: 00010293
RAX: ffffffff82c3152d RBX: 0000000000000000 RCX: ffff888014380000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff888072d8e510 R08: ffffffff82c3145d R09: ffffed100e7b3113
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888073d98b60 R14: ffff888072d8e53f R15: dffffc0000000000
FS:  00005555557ff380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005612c31e39e8 CR3: 0000000019f49000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ntfs_read_locked_inode+0x1fd5/0x49c0 fs/ntfs/inode.c:703
 ntfs_iget+0x10f/0x190 fs/ntfs/inode.c:177
 load_and_init_mft_mirror fs/ntfs/super.c:1027 [inline]
 load_system_files+0xfc/0x4830 fs/ntfs/super.c:1772
 ntfs_fill_super+0x19b0/0x2bd0 fs/ntfs/super.c:2892
 mount_bdev+0x2c9/0x3f0 fs/super.c:1432
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:632
 vfs_get_tree+0x88/0x270 fs/super.c:1562
 do_new_mount+0x28b/0xae0 fs/namespace.c:3040
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3a18dcc8ba
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff824cc418 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fff824cc430 RCX: 00007f3a18dcc8ba
RDX: 0000000020000040 RSI: 000000002001ecc0 RDI: 00007fff824cc430
RBP: 0000000000000004 R08: 00007fff824cc470 R09: 0000000000001132
R10: 0000000000000050 R11: 0000000000000286 R12: 0000000000000050
R13: 00007fff824cc470 R14: 0000000000000003 R15: 000000000005a688
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
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 07 79 c7 fe 48 89 df be 42 0c 00 00 5b 41 5e 41 5f e9 d5 68 11 ff e8 f0 78 c7 fe 31 c0 5b 41 5e 41 5f c3 e8 e3 78 c7 fe <0f> 0b 90 55 41 57 41 56 41 55 41 54 53 49 89 fe 49 bc 00 00 00 00
RSP: 0018:ffffc90003a0f818 EFLAGS: 00010293
RAX: ffffffff82c3152d RBX: 0000000000000000 RCX: ffff888014380000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff888072d8e510 R08: ffffffff82c3145d R09: ffffed100e7b3113
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888073d98b60 R14: ffff888072d8e53f R15: dffffc0000000000
FS:  00005555557ff380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005612c31e39e8 CR3: 0000000019f49000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/31 22:20 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in ntfs_iget
2023/05/14 00:47 linux-6.1.y bf4ad6fa4e53 2b9ba477 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_iget
2023/06/12 06:42 linux-6.1.y 2f3918bc53fb 49519f06 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in ntfs_iget
2023/12/31 22:07 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_iget
2023/06/18 07:54 linux-6.1.y ca87e77a2ef8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_iget
* Struck through repros no longer work on HEAD.