syzbot


kernel BUG in ntfs_lookup_inode_by_name

Status: upstream: reported C repro on 2022/07/24 08:53
Labels: ntfs (incorrect?)
Reported-by: syzbot+d532380eef771ac0034b@syzkaller.appspotmail.com
First crash: 325d, last: 7d23h

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: kernel BUG in ntfs_lookup_inode_by_name (log)
Repro: C syz .config

Fix bisection: the fix commit could be any of (bisect log):
  3245cb65fd91 Merge tag 'devicetree-fixes-for-6.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
  9abf2313adc1 Linux 6.1-rc1
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly ntfs report 0 (1) 2023/03/31 15:00
[syzbot] kernel BUG in ntfs_lookup_inode_by_name 0 (1) 2022/07/24 08:53
Similar bugs (2)
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 169d 369d 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 167d 368d 0/1 upstream: reported C repro on 2022/06/07 08:28
Last patch testing requests (3)
Created Duration User Patch Repo Result
2023/03/27 22:32 33m retest repro upstream report log
2023/03/27 22:32 18m retest repro upstream OK log
2023/03/27 22:32 15m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log

Sample crash report:
memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4992 'syz-executor222'
loop0: detected capacity change from 0 to 4096
ntfs: volume version 3.1.
------------[ cut here ]------------
kernel BUG at fs/ntfs/dir.c:86!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4992 Comm: syz-executor222 Not tainted 6.4.0-rc4-syzkaller-00204-gc43a6ff9f93f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:ntfs_lookup_inode_by_name+0x2c92/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 7c 9e 20 ff 48 8b 14 24 e9 73 fa ff ff e8 1e c9 c8 fe <0f> 0b e8 17 c9 c8 fe 0f 0b 0f 1f 44 00 00 55 41 57 41 56 41 54 53
RSP: 0018:ffffc900039cf7f0 EFLAGS: 00010293
RAX: ffffffff82c2b612 RBX: 0000000000000000 RCX: ffff888026831dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000004000
RBP: ffffc900039cf9d0 R08: ffffffff82c28a2b R09: ffffed100f15f8c2
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888078afc200
R13: ffff88807eaa6000 R14: dffffc0000000000 R15: ffff88807bc19000
FS:  0000555556075300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b03962aa18 CR3: 000000007e997000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 check_windows_hibernation_status+0xf0/0x4c0 fs/ntfs/super.c:1282
 load_system_files+0x35db/0x4840 fs/ntfs/super.c:1997
 ntfs_fill_super+0x19b3/0x2bd0 fs/ntfs/super.c:2900
 mount_bdev+0x2d0/0x3f0 fs/super.c:1380
 legacy_get_tree+0xef/0x190 fs/fs_context.c:610
 vfs_get_tree+0x8c/0x270 fs/super.c:1510
 do_new_mount+0x28f/0xae0 fs/namespace.c:3039
 do_mount fs/namespace.c:3382 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3930cee00a
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:00007fffde5dbb58 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f3930cee00a
RDX: 000000002001ee40 RSI: 0000000020000040 RDI: 00007fffde5dbb70
RBP: 00007fffde5dbb70 R08: 00007fffde5dbbb0 R09: 00007fffde5dbbc0
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004
R13: 00005555560752c0 R14: 0000000000000000 R15: 00007fffde5dbbb0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ntfs_lookup_inode_by_name+0x2c92/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 7c 9e 20 ff 48 8b 14 24 e9 73 fa ff ff e8 1e c9 c8 fe <0f> 0b e8 17 c9 c8 fe 0f 0b 0f 1f 44 00 00 55 41 57 41 56 41 54 53
RSP: 0018:ffffc900039cf7f0 EFLAGS: 00010293
RAX: ffffffff82c2b612 RBX: 0000000000000000 RCX: ffff888026831dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000004000
RBP: ffffc900039cf9d0 R08: ffffffff82c28a2b R09: ffffed100f15f8c2
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888078afc200
R13: ffff88807eaa6000 R14: dffffc0000000000 R15: ffff88807bc19000
FS:  0000555556075300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b03962aa18 CR3: 000000007e997000 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 Manager Title
2023/06/02 23:05 upstream c43a6ff9f93f a4ae4f42 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in ntfs_lookup_inode_by_name
2022/12/17 18:07 upstream 77856d911a8c 05494336 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in ntfs_lookup_inode_by_name
2022/12/17 22:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 05494336 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in ntfs_lookup_inode_by_name
2022/09/15 02:55 upstream 3245cb65fd91 b884348d .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root kernel BUG in ntfs_lookup_inode_by_name
2022/07/20 08:51 upstream ca85855bdcae 775344bc .config strace log report syz C ci-upstream-kasan-gce-root kernel BUG in ntfs_lookup_inode_by_name
* Struck through repros no longer work on HEAD.