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: 570d, last: 33d
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 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ntfs_iget ntfs3 C error done 73 274d 651d 25/28 fixed on 2024/03/20 11:33
linux-6.1 kernel BUG in ntfs_iget origin:upstream missing-backport C done 7 29d 572d 0/3 upstream: reported C repro on 2023/05/14 00:47
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/10/11 06:55 10m retest repro linux-5.15.y report log
2024/10/11 06:55 10m retest repro linux-5.15.y report log
2024/10/11 06:55 11m retest repro linux-5.15.y report log
2024/10/11 06:55 8m retest repro linux-5.15.y report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
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:
ntfs: (device loop0): is_boot_sector_ntfs(): Invalid boot sector checksum.
ntfs: (device loop0): map_mft_record_page(): Mft record 0x1 is corrupt.  Run chkdsk.
ntfs: (device loop0): map_mft_record(): Failed with error code 5.
ntfs: (device loop0): ntfs_read_locked_inode(): Failed with error code -5.  Marking corrupt inode 0x1 as bad.  Run chkdsk.
ntfs: (device loop0): load_system_files(): Failed to load $MFTMirr.  Mounting read-only.  Run ntfsfix and/or chkdsk.
------------[ cut here ]------------
kernel BUG at fs/ntfs/malloc.h:31!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3497 Comm: syz-executor210 Not tainted 5.15.115-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/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 77 a0 e1 fe 48 89 df be 42 0c 00 00 5b 41 5e 41 5f e9 45 2c 1f ff e8 60 a0 e1 fe 31 c0 5b 41 5e 41 5f c3 e8 53 a0 e1 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:ffffc9000210f7f8 EFLAGS: 00010293
RAX: ffffffff829e58fd RBX: 0000000000000000 RCX: ffff8880139f3b80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff888070a82118 R08: ffffffff829e582d R09: ffffed100e8ab323
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888074559be0 R14: ffff888070a82147 R15: dffffc0000000000
FS:  00005555566d9300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e7afba45d0 CR3: 000000001bc7d000 CR4: 00000000003506e0
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_upcase fs/ntfs/super.c:1655 [inline]
 load_system_files+0x1c11/0x5700 fs/ntfs/super.c:1810
 ntfs_fill_super+0x1c7f/0x2e20 fs/ntfs/super.c:2894
 mount_bdev+0x2c9/0x3f0 fs/super.c:1378
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:610
 vfs_get_tree+0x88/0x270 fs/super.c:1508
 do_new_mount+0x28b/0xae0 fs/namespace.c:2994
 do_mount fs/namespace.c:3337 [inline]
 __do_sys_mount fs/namespace.c:3545 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3522
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fa819fc6b1a
Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe2f13b488 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fa819fc6b1a
RDX: 000000002001f1c0 RSI: 000000002001f200 RDI: 00007ffe2f13b4a0
RBP: 00007ffe2f13b4a0 R08: 00007ffe2f13b4e0 R09: 0000000000000987
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004
R13: 00005555566d92c0 R14: 0000000000000000 R15: 00007ffe2f13b4e0
 </TASK>
Modules linked in:
---[ end trace 7a0d4b380f94b9ce ]---
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 77 a0 e1 fe 48 89 df be 42 0c 00 00 5b 41 5e 41 5f e9 45 2c 1f ff e8 60 a0 e1 fe 31 c0 5b 41 5e 41 5f c3 e8 53 a0 e1 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:ffffc9000210f7f8 EFLAGS: 00010293
RAX: ffffffff829e58fd RBX: 0000000000000000 RCX: ffff8880139f3b80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff888070a82118 R08: ffffffff829e582d R09: ffffed100e8ab323
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888074559be0 R14: ffff888070a82147 R15: dffffc0000000000
FS:  00005555566d9300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e7afba45d0 CR3: 000000001bc7d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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
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.