syzbot has found a reproducer for the following issue on:
HEAD commit: 8a7f2a5c5aa1 Linux 5.15.110
git tree: linux-5.15.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=17690884280000
kernel config:
https://syzkaller.appspot.com/x/.config?x=ba8d5c9d6c5289f
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=1074800a280000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=126d4424280000
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/fc04f54c047f/disk-8a7f2a5c.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/6b4ba4cb1191/vmlinux-8a7f2a5c.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/d927dc3f9670/bzImage-8a7f2a5c.xz
mounted in repro:
https://storage.googleapis.com/syzbot-assets/801a46d6e2d2/mount_0.gz
loop0: detected capacity change from 0 to 4096
ntfs: (device loop0): parse_options(): Option utf8 is no longer supported, using option nls=utf8. Please use option nls=utf8 in the future and make sure utf8 is compiled either as a module or into the kernel.
------------[ cut here ]------------
kernel BUG at fs/ntfs/aops.c:186!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3498 Comm: syz-executor435 Not tainted 5.15.110-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline]
RIP: 0010:ntfs_readpage+0x2209/0x2210 fs/ntfs/aops.c:435
Code: 61 e5 fe 0f 0b e8 37 61 e5 fe 49 ff cf 4c 89 7c 24 10 48 8b 7c 24 10 48 c7 c6 60 7f b9 8a e8 4e 32 1b ff 0f 0b e8 17 61 e5 fe <0f> 0b 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 38 48
RSP: 0018:ffffc90002c0f6a0 EFLAGS: 00010293
RAX: ffffffff829a7d69 RBX: 0000000000000000 RCX: ffff888013d98000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002c0f858 R08: ffffffff829a6672 R09: ffffed100ebf100b
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001c37780
R13: ffff888075f88320 R14: dffffc0000000000 R15: ffff888078b41800
FS: 00005555559bd300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557b90f79008 CR3: 0000000071bc5000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
do_read_cache_page+0x752/0x1040
read_mapping_page include/linux/pagemap.h:515 [inline]
ntfs_map_page+0x25/0x390 fs/ntfs/aops.h:75
map_mft_record_page fs/ntfs/mft.c:73 [inline]
map_mft_record+0x1ec/0x850 fs/ntfs/mft.c:156
ntfs_read_locked_inode+0x199/0x49c0 fs/ntfs/inode.c:550
ntfs_read_inode_mount+0xda2/0x2660 fs/ntfs/inode.c:2098
ntfs_fill_super+0x1a16/0x2e20 fs/ntfs/super.c:2857
mount_bdev+0x26d/0x3a0 fs/super.c:1378
legacy_get_tree+0xeb/0x180 fs/fs_context.c:610
vfs_get_tree+0x88/0x270 fs/super.c:1508
do_new_mount+0x28b/0xad0 fs/namespace.c:2994
do_mount fs/namespace.c:3337 [inline]
__do_sys_mount fs/namespace.c:3545 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3522
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:0x7f024e917fca
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:00007ffe87b88378 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f024e917fca
RDX: 0000000020000000 RSI: 000000002001ee80 RDI: 00007ffe87b88390
RBP: 00007ffe87b88390 R08: 00007ffe87b883d0 R09: 00007ffe87b883e0
R10: 0000000001800800 R11: 0000000000000286 R12: 0000000000000004
R13: 00005555559bd2c0 R14: 0000000001800800 R15: 00007ffe87b883d0
</TASK>
Modules linked in:
---[ end trace 32b9ce6030a45719 ]---
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline]
RIP: 0010:ntfs_readpage+0x2209/0x2210 fs/ntfs/aops.c:435
Code: 61 e5 fe 0f 0b e8 37 61 e5 fe 49 ff cf 4c 89 7c 24 10 48 8b 7c 24 10 48 c7 c6 60 7f b9 8a e8 4e 32 1b ff 0f 0b e8 17 61 e5 fe <0f> 0b 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 38 48
RSP: 0018:ffffc90002c0f6a0 EFLAGS: 00010293
RAX: ffffffff829a7d69 RBX: 0000000000000000 RCX: ffff888013d98000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002c0f858 R08: ffffffff829a6672 R09: ffffed100ebf100b
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001c37780
R13: ffff888075f88320 R14: dffffc0000000000 R15: ffff888078b41800
FS: 00005555559bd300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f024e8f0630 CR3: 0000000071bc5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.