syzbot


kernel BUG in ntfs_lookup_inode_by_name

Status: upstream: reported C repro on 2023/07/21 09:46
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+47be101ffe992f905aab@syzkaller.appspotmail.com
First crash: 281d, last: 15d
Bug presence (2)
Date Name Commit Repro Result
2023/07/21 upstream (ToT) f7e3a1bafdea C [report] kernel BUG in ntfs_lookup_inode_by_name
2024/04/17 upstream (ToT) 96fca68c4fbf C Failed due to an error; will retry later
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in ntfs_lookup_inode_by_name origin:upstream missing-backport C error 10 6d18h 281d 0/3 upstream: reported C repro on 2023/07/21 14:47
linux-4.19 kernel BUG in ntfs_lookup_inode_by_name ntfs C error 3 491d 691d 0/1 upstream: reported C repro on 2022/06/06 10:51
linux-4.14 kernel BUG in ntfs_lookup_inode_by_name ntfs C error 2 489d 690d 0/1 upstream: reported C repro on 2022/06/07 08:28
upstream kernel BUG in ntfs_lookup_inode_by_name ntfs3 C inconclusive inconclusive 42 103d 643d 0/26 auto-obsoleted due to no activity on 2024/04/24 13:28
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2024/04/12 10:31 2h53m bisect fix linux-6.1.y job log (0) log
2024/02/24 10:13 1h01m bisect fix linux-6.1.y job log (0) log
2024/01/15 21:02 2h05m bisect fix linux-6.1.y job log (0) log
2023/12/16 02:49 1h01m bisect fix linux-6.1.y job log (0) log
2023/11/15 07:27 1h01m bisect fix linux-6.1.y job log (0) log
2023/10/14 01:52 1h46m bisect fix linux-6.1.y job log (0) log

Sample crash report:
ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute.
ntfs: (device loop0): ntfs_read_block(): Failed to read from inode 0xa, attribute type 0x80, vcn 0x1, offset 0x0 because its location on disk could not be determined even after retrying (error code -5).
ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute.
ntfs: volume version 3.1.
------------[ cut here ]------------
kernel BUG at fs/ntfs/dir.c:86!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3540 Comm: syz-executor358 Not tainted 6.1.81-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:ntfs_lookup_inode_by_name+0x2c8e/0x2ca0 fs/ntfs/dir.c:86
Code: ff 89 d1 80 e1 07 38 c1 0f 8c 8a fa ff ff be 08 00 00 00 48 8b 3c 24 e8 e0 b7 20 ff 48 8b 14 24 e9 73 fa ff ff e8 72 41 c9 fe <0f> 0b e8 6b 41 c9 fe 0f 0b 66 0f 1f 84 00 00 00 00 00 55 41 57 41
RSP: 0018:ffffc90003a0f7f0 EFLAGS: 00010293
RAX: ffffffff82c13d9e RBX: 0000000000000000 RCX: ffff8880196a3b80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000004000
RBP: ffffc90003a0f9d0 R08: ffffffff82c111b7 R09: ffffed100e0824a2
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888070412100
R13: ffff888018f5c000 R14: dffffc0000000000 R15: ffff8880761d9000
FS:  0000555555aba380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558dbe76c0e8 CR3: 000000001fc64000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 check_windows_hibernation_status+0xec/0x4c0 fs/ntfs/super.c:1274
 load_system_files+0x35d7/0x4830 fs/ntfs/super.c:1989
 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+0x2ba/0xb40 fs/namespace.c:3051
 do_mount fs/namespace.c:3394 [inline]
 __do_sys_mount fs/namespace.c:3602 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3579
 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:0x7feabe2f0cfa
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:00007fffd5722bd8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fffd5722bf0 RCX: 00007feabe2f0cfa
RDX: 0000000020000040 RSI: 000000002001ecc0 RDI: 00007fffd5722bf0
RBP: 0000000000000004 R08: 00007fffd5722c30 R09: 000000000001ec66
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000
R13: 00007fffd5722c30 R14: 0000000000000003 R15: 0000000000200000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ntfs_lookup_inode_by_name+0x2c8e/0x2ca0 fs/ntfs/dir.c:86
Code: ff 89 d1 80 e1 07 38 c1 0f 8c 8a fa ff ff be 08 00 00 00 48 8b 3c 24 e8 e0 b7 20 ff 48 8b 14 24 e9 73 fa ff ff e8 72 41 c9 fe <0f> 0b e8 6b 41 c9 fe 0f 0b 66 0f 1f 84 00 00 00 00 00 55 41 57 41
RSP: 0018:ffffc90003a0f7f0 EFLAGS: 00010293
RAX: ffffffff82c13d9e RBX: 0000000000000000 RCX: ffff8880196a3b80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000004000
RBP: ffffc90003a0f9d0 R08: ffffffff82c111b7 R09: ffffed100e0824a2
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888070412100
R13: ffff888018f5c000 R14: dffffc0000000000 R15: ffff8880761d9000
FS:  0000555555aba380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562e249e5c28 CR3: 000000001fc64000 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
2024/03/10 17:01 linux-6.1.y 61adba85cc40 6ee49f2e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in ntfs_lookup_inode_by_name
2024/03/06 05:27 linux-6.1.y a3eb3a74aa8c f39a7eed .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in ntfs_lookup_inode_by_name
2024/03/06 05:00 linux-6.1.y a3eb3a74aa8c f39a7eed .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in ntfs_lookup_inode_by_name
2023/07/21 13:43 linux-6.1.y a456e1743881 28847498 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in ntfs_lookup_inode_by_name
2023/09/05 20:20 linux-6.1.y c2cbfe5f5122 0b6286dc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_lookup_inode_by_name
2023/09/02 03:42 linux-6.1.y a2943d2d9a00 696ea0d2 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_lookup_inode_by_name
2023/07/21 13:44 linux-6.1.y a456e1743881 28847498 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_lookup_inode_by_name
2023/07/21 10:45 linux-6.1.y a456e1743881 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_lookup_inode_by_name
2023/08/29 23:28 linux-6.1.y 024f76bca9d0 ce731e62 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_lookup_inode_by_name
2023/07/21 09:45 linux-6.1.y a456e1743881 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_lookup_inode_by_name
* Struck through repros no longer work on HEAD.