syzbot


kernel BUG in ntfs_lookup_inode_by_name

Status: upstream: reported C repro on 2023/07/21 14:47
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+ba1b56d761cb7d2aaf7a@syzkaller.appspotmail.com
First crash: 337d, last: 62d
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/04/20 linux-5.15.y (ToT) c52b9710c83d C [report] kernel BUG in ntfs_lookup_inode_by_name
2024/03/06 upstream (ToT) 67be068d31d4 C [report] kernel BUG in ntfs_lookup_inode_by_name
2024/04/20 upstream (ToT) 977b1ef51866 C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in ntfs_lookup_inode_by_name ntfs C error 3 547d 747d 0/1 upstream: reported C repro on 2022/06/06 10:51
linux-6.1 kernel BUG in ntfs_lookup_inode_by_name origin:upstream missing-backport C unreliable 10 19d 337d 0/3 upstream: reported C repro on 2023/07/21 09:46
linux-4.14 kernel BUG in ntfs_lookup_inode_by_name ntfs C error 2 545d 746d 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 159d 699d 0/27 auto-obsoleted due to no activity on 2024/04/24 13:28
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/05/30 22:05 9m fix candidate upstream error job log (0)
2023/10/12 15:13 0m bisect fix linux-5.15.y error job log (0)

Sample crash report:
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: 3500 Comm: syz-executor283 Not tainted 5.15.151-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:ntfs_lookup_inode_by_name+0x2fdf/0x3200 fs/ntfs/dir.c:86
Code: f8 ff ff 48 8b 0c 24 80 e1 07 38 c1 0f 8c 06 f9 ff ff be 08 00 00 00 48 8b 3c 24 e8 cb 93 2c ff e9 f3 f8 ff ff e8 91 d6 e2 fe <0f> 0b e8 8a d6 e2 fe 0f 0b e8 83 d6 e2 fe 4c 89 e7 48 c7 c6 80 e0
RSP: 0018:ffffc90002c577c8 EFLAGS: 00010293
RAX: ffffffff829d5eff RBX: 0000000000000000 RCX: ffff88807451d940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000004000
RBP: dffffc0000000000 R08: ffffffff829d2fd0 R09: ffffed100ec7e5aa
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200058af28
R13: ffff8880796ca000 R14: ffff8880796ca000 R15: ffff8880763f2940
FS:  0000555555fc0380(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055621e07de98 CR3: 0000000023529000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 check_windows_hibernation_status+0xfc/0x6f0 fs/ntfs/super.c:1274
 load_system_files+0x4041/0x5700 fs/ntfs/super.c:1989
 ntfs_fill_super+0x1c7f/0x2e20 fs/ntfs/super.c:2894
 mount_bdev+0x2c9/0x3f0 fs/super.c:1387
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1517
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3005
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533
 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:0x7f25c949fcfa
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:00007ffdce9b1fa8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffdce9b1fc0 RCX: 00007f25c949fcfa
RDX: 0000000020000040 RSI: 000000002001ecc0 RDI: 00007ffdce9b1fc0
RBP: 0000000000000004 R08: 00007ffdce9b2000 R09: 000000000001ec66
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000
R13: 00007ffdce9b2000 R14: 0000000000000003 R15: 0000000000200000
 </TASK>
Modules linked in:
---[ end trace aeccf7e357f98d6d ]---
RIP: 0010:ntfs_lookup_inode_by_name+0x2fdf/0x3200 fs/ntfs/dir.c:86
Code: f8 ff ff 48 8b 0c 24 80 e1 07 38 c1 0f 8c 06 f9 ff ff be 08 00 00 00 48 8b 3c 24 e8 cb 93 2c ff e9 f3 f8 ff ff e8 91 d6 e2 fe <0f> 0b e8 8a d6 e2 fe 0f 0b e8 83 d6 e2 fe 4c 89 e7 48 c7 c6 80 e0
RSP: 0018:ffffc90002c577c8 EFLAGS: 00010293
RAX: ffffffff829d5eff RBX: 0000000000000000 RCX: ffff88807451d940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000004000
RBP: dffffc0000000000 R08: ffffffff829d2fd0 R09: ffffed100ec7e5aa
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200058af28
R13: ffff8880796ca000 R14: ffff8880796ca000 R15: ffff8880763f2940
FS:  0000555555fc0380(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055621e07de98 CR3: 0000000023529000 CR4: 00000000003506e0
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/11 09:48 linux-5.15.y 574362648507 6ee49f2e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ntfs_lookup_inode_by_name
2024/03/07 00:48 linux-5.15.y 574362648507 f39a7eed .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ntfs_lookup_inode_by_name
2024/03/06 15:48 linux-5.15.y 80efc6265290 f39a7eed .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ntfs_lookup_inode_by_name
2023/07/22 06:03 linux-5.15.y d54cfc420586 abdf9bae .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_lookup_inode_by_name
2023/08/24 00:24 linux-5.15.y f6f7927ac664 b81ca3f6 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_lookup_inode_by_name
2023/08/24 00:01 linux-5.15.y f6f7927ac664 b81ca3f6 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_lookup_inode_by_name
2023/08/30 01:41 linux-5.15.y 5ddfe5cc8716 ce731e62 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ntfs_lookup_inode_by_name
2023/07/21 23:05 linux-5.15.y d54cfc420586 abdf9bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ntfs_lookup_inode_by_name
2023/07/22 04:58 linux-5.15.y d54cfc420586 abdf9bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_lookup_inode_by_name
2023/07/21 14:45 linux-5.15.y d54cfc420586 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_lookup_inode_by_name
* Struck through repros no longer work on HEAD.