syzbot


kernel BUG in ntfs_lookup_inode_by_name

Status: upstream: reported C repro on 2022/06/06 10:51
Subsystems: ntfs
[Documentation on labels]
Reported-by: syzbot+30b7f850c6d98ea461d2@syzkaller.appspotmail.com
First crash: 628d, last: 428d
Fix bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH v2] ntfs: Ensure $Extend is a directory 3 (3) 2023/05/11 07:55
[PATCH] ntfs: Ensure $Extend is a directory 7 (7) 2022/07/26 16:40
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 C error 7 179d 218d 0/3 upstream: reported C repro on 2023/07/21 14:47
linux-6.1 kernel BUG in ntfs_lookup_inode_by_name origin:upstream C 7 16h08m 218d 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 426d 627d 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 40d 580d 0/26 upstream: reported C repro on 2022/07/24 08:53
Last patch testing requests (3)
Created Duration User Patch Repo Result
2022/07/24 22:41 0m soumya.negi97@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git 8e63197ffe7750c94c8ea9d159ce3e46a76bfcf2 error OK
2022/07/24 11:30 7m soumya.negi97@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git 3f8a27f9e27bd78604c0709224cec0ec85a8b106 error OK
2022/07/24 11:03 21m soumya.negi97@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master error OK

Sample crash report:
ntfs: volume version 3.1.
------------[ cut here ]------------
kernel BUG at fs/ntfs/dir.c:99!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8109 Comm: syz-executor107 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:ntfs_lookup_inode_by_name+0xd50/0x3bd0 fs/ntfs/dir.c:99
Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 29 29 00 00 48 8b 44 24 50 49 8d 5d 07 48 c7 00 00 00 00 00 e9 d8 fa ff ff e8 00 dd 1b ff <0f> 0b e8 f9 dc 1b ff 0f 0b e8 f2 dc 1b ff 48 8b 74 24 70 4c 89 e1
RSP: 0018:ffff8880b2d37930 EFLAGS: 00010293
RAX: ffff8880b46fe140 RBX: 0000000000000000 RCX: ffffffff82469b88
RDX: 0000000000000000 RSI: ffffffff8246a870 RDI: 0000000000000003
RBP: ffff8880b34cb240 R08: 0000000000000001 R09: 0000000000004000
R10: 0000000000000003 R11: 0000000000000001 R12: dffffc0000000000
R13: ffff8880b34cb440 R14: ffff8880953185c0 R15: ffff88808bc8b840
FS:  0000555557259300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ce048278c8 CR3: 000000009b262000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 check_windows_hibernation_status+0xd9/0xb10 fs/ntfs/super.c:1288
 load_system_files fs/ntfs/super.c:2003 [inline]
 ntfs_fill_super+0x58be/0x7e10 fs/ntfs/super.c:2908
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2492 [inline]
 do_mount+0x115c/0x2f50 fs/namespace.c:2822
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f1c8a4c400a
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:00007fff9891f228 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f1c8a4c400a
RDX: 000000002001ee40 RSI: 0000000020000040 RDI: 00007fff9891f240
RBP: 00007fff9891f240 R08: 00007fff9891f280 R09: 00007fff9891f290
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004
R13: 00005555572592c0 R14: 0000000000000000 R15: 00007fff9891f280
Modules linked in:
---[ end trace dfec30b708238007 ]---
RIP: 0010:ntfs_lookup_inode_by_name+0xd50/0x3bd0 fs/ntfs/dir.c:99
Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 29 29 00 00 48 8b 44 24 50 49 8d 5d 07 48 c7 00 00 00 00 00 e9 d8 fa ff ff e8 00 dd 1b ff <0f> 0b e8 f9 dc 1b ff 0f 0b e8 f2 dc 1b ff 48 8b 74 24 70 4c 89 e1
RSP: 0018:ffff8880b2d37930 EFLAGS: 00010293
RAX: ffff8880b46fe140 RBX: 0000000000000000 RCX: ffffffff82469b88
RDX: 0000000000000000 RSI: ffffffff8246a870 RDI: 0000000000000003
RBP: ffff8880b34cb240 R08: 0000000000000001 R09: 0000000000004000
R10: 0000000000000003 R11: 0000000000000001 R12: dffffc0000000000
R13: ffff8880b34cb440 R14: ffff8880953185c0 R15: ffff88808bc8b840
FS:  0000555557259300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ce048278c8 CR3: 000000009b262000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/23 05:26 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in ntfs_lookup_inode_by_name
2022/06/06 12:35 linux-4.19.y 3f8a27f9e27b c8857892 .config console log report syz C ci2-linux-4-19 kernel BUG in ntfs_lookup_inode_by_name
2022/06/06 10:50 linux-4.19.y 3f8a27f9e27b c8857892 .config console log report info ci2-linux-4-19 kernel BUG in ntfs_lookup_inode_by_name
* Struck through repros no longer work on HEAD.