kernel BUG in ntfs_attr_vcn_to_lcn_nolock

10 views
Skip to first unread message

syzbot

unread,
Dec 16, 2022, 2:22:37 AM12/16/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14d78810480000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=87b559b5b018682decc5
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+87b559...@syzkaller.appspotmail.com

ntfs: volume version 3.1.
ntfs: volume version 3.1.
------------[ cut here ]------------
IPVS: ftp: loaded support on port[0] = 21
kernel BUG at fs/ntfs/attrib.c:353!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 17548 Comm: syz-executor.3 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:ffff888048edfcb8 EFLAGS: 00010216
RAX: 0000000000040000 RBX: 0000000000000001 RCX: ffffc9000814e000
RDX: 0000000000000073 RSI: ffffffff82458d58 RDI: 0000000000000007
RBP: ffff88808abaf700 R08: ffffffff8cd25958 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: fffffffff9b52000
R13: 0000000000000000 R14: 000000000000000b R15: ffff88808abaf700
FS: 00007f3cc1187700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055c5d5c5c2e8 CR3: 00000000b46a4000 CR4: 00000000003406f0
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:0x7f3cc2c150d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3cc1187168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f3cc2d34f80 RCX: 00007f3cc2c150d9
RDX: 0000000020000040 RSI: 0000000000000001 RDI: 0000000000000004
RBP: 00007f3cc2c70ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd567897cf R14: 00007f3cc1187300 R15: 0000000000022000
Modules linked in:
ntfs: volume version 3.1.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'.
ntfs: volume version 3.1.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'.
---[ end trace fe91368ff5b3ea57 ]---
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:ffff888048edfcb8 EFLAGS: 00010216
RAX: 0000000000040000 RBX: 0000000000000001 RCX: ffffc9000814e000
RDX: 0000000000000073 RSI: ffffffff82458d58 RDI: 0000000000000007
RBP: ffff88808abaf700 R08: ffffffff8cd25958 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: fffffffff9b52000
R13: 0000000000000000 R14: 000000000000000b R15: ffff88808abaf700
FS: 00007f3cc1187700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fea9771e1b8 CR3: 00000000b46a4000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 20, 2022, 4:52:34 AM12/20/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=168e9777880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=87b559b5b018682decc5
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14a0a11b880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1386c453880000
mounted in repro: https://storage.googleapis.com/syzbot-assets/9cbf181ae53f/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+87b559...@syzkaller.appspotmail.com

ntfs: volume version 3.1.
------------[ cut here ]------------
kernel BUG at fs/ntfs/attrib.c:353!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8110 Comm: syz-executor151 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:ffff88809306fcb8 EFLAGS: 00010293
RAX: ffff8880936902c0 RBX: 0000000000000001 RCX: ffffffff82458c24
RDX: 0000000000000000 RSI: ffffffff82458d58 RDI: 0000000000000007
RBP: ffff88808bf73740 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: fffffffff9b52000
R13: 0000000000000000 R14: 000000000000000b R15: ffff88808bf73740
FS: 0000555555fff300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055633fd64db8 CR3: 0000000097a02000 CR4: 00000000003406f0
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:0x7ff14709a339
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:00007fff1cc6a508 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007ff14709a339
RDX: 0000000020000040 RSI: 0000000000000001 RDI: 0000000000000004
RBP: 00007ff147059bd0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff147059c60
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace b1a247445b4c14a7 ]---
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:ffff88809306fcb8 EFLAGS: 00010293
RAX: ffff8880936902c0 RBX: 0000000000000001 RCX: ffffffff82458c24
RDX: 0000000000000000 RSI: ffffffff82458d58 RDI: 0000000000000007
RBP: ffff88808bf73740 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: fffffffff9b52000
R13: 0000000000000000 R14: 000000000000000b R15: ffff88808bf73740
FS: 0000555555fff300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055633fd64db8 CR3: 0000000097a02000 CR4: 00000000003406f0

syzbot

unread,
Dec 24, 2022, 12:52:41 PM12/24/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c4215ee4771b Linux 4.14.302
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=157f8c2f880000
kernel config: https://syzkaller.appspot.com/x/.config?x=4a9988fe055c9527
dashboard link: https://syzkaller.appspot.com/bug?extid=8aa668aa8643d7c000dd
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16af9550480000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10064b8c480000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c93ba055d204/disk-c4215ee4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/bfbc929a33c1/vmlinux-c4215ee4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/444658051770/bzImage-c4215ee4.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/c0d97ae2b0cc/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+8aa668...@syzkaller.appspotmail.com

ntfs: volume version 3.1.
------------[ cut here ]------------
kernel BUG at fs/ntfs/attrib.c:353!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7997 Comm: syz-executor348 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff888095a762c0 task.stack: ffff888091a20000
RIP: 0010:ntfs_attr_vcn_to_lcn_nolock+0x171/0x3a0 fs/ntfs/attrib.c:353
RSP: 0018:ffff888091a27d10 EFLAGS: 00010297
RAX: ffff888095a762c0 RBX: 0000000000000001 RCX: 000000000000000b
RDX: 0000000000000000 RSI: fffffffff9b52000 RDI: ffff88808df81788
RBP: ffff88808df81740 R08: ffffffff8b9ca628 R09: 00000000000587c0
R10: ffff888095a76b48 R11: ffff888095a762c0 R12: fffffffff9b52000
R13: 0000000000000000 R14: 000000000000000b R15: ffff88808df81a08
FS: 0000555555a38300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f636e240520 CR3: 00000000b339a000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ntfs_bmap+0x27a/0x530 fs/ntfs/aops.c:1604
ioctl_fibmap fs/ioctl.c:66 [inline]
file_ioctl fs/ioctl.c:492 [inline]
do_vfs_ioctl+0xc60/0xff0 fs/ioctl.c:684
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f636e268339
RSP: 002b:00007fffa698fa78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f636e268339
RDX: 0000000020000040 RSI: 0000000000000001 RDI: 0000000000000004
RBP: 00007f636e227bd0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f636e227c60
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: ea 03 80 3c 02 00 0f 85 03 02 00 00 4c 8b bd 80 00 00 00 e9 3d ff ff ff e8 3d 90 44 ff 0f 0b e8 36 90 44 ff 0f 0b e8 2f 90 44 ff <0f> 0b e8 28 90 44 ff 49 83 ff fe 0f 85 85 01 00 00 e8 19 90 44
RIP: ntfs_attr_vcn_to_lcn_nolock+0x171/0x3a0 fs/ntfs/attrib.c:353 RSP: ffff888091a27d10
---[ end trace b52f5ef44230e688 ]---


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages