syzbot


kernel BUG in ntfs_attr_vcn_to_lcn_nolock

Status: upstream: reported C repro on 2022/12/16 07:22
Subsystems: ntfs
[Documentation on labels]
Reported-by: syzbot+87b559b5b018682decc5@syzkaller.appspotmail.com
First crash: 736d, last: 702d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in ntfs_attr_vcn_to_lcn_nolock ntfs C 1 658d 727d 0/1 upstream: reported C repro on 2022/12/24 17:52

Sample crash report:
ntfs: volume version 3.1.
------------[ cut here ]------------
kernel BUG at fs/ntfs/attrib.c:353!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8092 Comm: syz-executor877 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:ntfs_attr_vcn_to_lcn_nolock+0x1a8/0x440 fs/ntfs/attrib.c:353
Code: 03 80 3c 02 00 0f 85 6f 02 00 00 4c 8b bd 80 00 00 00 e9 1b ff ff ff e8 26 f8 1c ff 0f 0b e8 1f f8 1c ff 0f 0b e8 18 f8 1c ff <0f> 0b e8 11 f8 1c ff 4c 89 fe 48 c7 c7 fe ff ff ff e8 92 f9 1c ff
RSP: 0018:ffff88809dee7cb8 EFLAGS: 00010293
RAX: ffff8880b3e98600 RBX: 0000000000000001 RCX: ffffffff82458c24
RDX: 0000000000000000 RSI: ffffffff82458d58 RDI: 0000000000000007
RBP: ffff88808b491740 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: fffffffff9b52000
R13: 0000000000000000 R14: 000000000000000b R15: ffff88808b491740
FS:  0000555556cef300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056067ca73fe0 CR3: 00000000abc4d000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ntfs_bmap+0x2ed/0x600 fs/ntfs/aops.c:1603
 ioctl_fibmap fs/ioctl.c:67 [inline]
 file_ioctl fs/ioctl.c:493 [inline]
 do_vfs_ioctl+0xf0c/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f812ed0c339
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007ffe811aad88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f812ed0c339
RDX: 0000000020000040 RSI: 0000000000000001 RDI: 0000000000000004
RBP: 00007f812eccbbd0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f812eccbc60
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace a7d9232338c699a5 ]---
RIP: 0010:ntfs_attr_vcn_to_lcn_nolock+0x1a8/0x440 fs/ntfs/attrib.c:353
Code: 03 80 3c 02 00 0f 85 6f 02 00 00 4c 8b bd 80 00 00 00 e9 1b ff ff ff e8 26 f8 1c ff 0f 0b e8 1f f8 1c ff 0f 0b e8 18 f8 1c ff <0f> 0b e8 11 f8 1c ff 4c 89 fe 48 c7 c7 fe ff ff ff e8 92 f9 1c ff
RSP: 0018:ffff88809dee7cb8 EFLAGS: 00010293
RAX: ffff8880b3e98600 RBX: 0000000000000001 RCX: ffffffff82458c24
RDX: 0000000000000000 RSI: ffffffff82458d58 RDI: 0000000000000007
RBP: ffff88808b491740 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: fffffffff9b52000
R13: 0000000000000000 R14: 000000000000000b R15: ffff88808b491740
FS:  0000555556cef300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5da30da010 CR3: 00000000abc4d000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/20 15:19 linux-4.19.y 3f8a27f9e27b c52b2efb .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in ntfs_attr_vcn_to_lcn_nolock
2022/12/16 07:35 linux-4.19.y 3f8a27f9e27b 6f9c033e .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in ntfs_attr_vcn_to_lcn_nolock
2023/01/19 14:10 linux-4.19.y 3f8a27f9e27b 66fca3ae .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in ntfs_attr_vcn_to_lcn_nolock
2022/12/16 07:21 linux-4.19.y 3f8a27f9e27b 6f9c033e .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in ntfs_attr_vcn_to_lcn_nolock
* Struck through repros no longer work on HEAD.