Hello,
syzbot found the following issue on:
HEAD commit: 015e94d0 Linux 4.19.146
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=12f154e3900000
kernel config:
https://syzkaller.appspot.com/x/.config?x=243dd74ad58a8a57
dashboard link:
https://syzkaller.appspot.com/bug?extid=47cbfebdba9d70c27250
compiler: gcc (GCC) 10.1.0-syz 20200507
Unfortunately, I don't have any reproducer for this issue yet.
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+47cbfe...@syzkaller.appspotmail.com
loop1: rw=0, want=563, limit=249
loop2: rw=0, want=2046, limit=71
attempt to access beyond end of device
attempt to access beyond end of device
------------[ cut here ]------------
kernel BUG at fs/ntfs/aops.c:203!
loop1: rw=0, want=564, limit=249
loop2: rw=0, want=2047, limit=71
attempt to access beyond end of device
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 20852 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
attempt to access beyond end of device
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:203 [inline]
RIP: 0010:ntfs_readpage+0x1c0b/0x24d0 fs/ntfs/aops.c:452
Code: ff e8 a9 93 16 ff 48 8b 9d 80 fd ff ff 31 ff 48 c1 eb 03 83 e3 01 89 de e8 c2 94 16 ff 84 db 0f 85 0b f0 ff ff e8 85 93 16 ff <0f> 0b 48 c7 c7 80 e3 bf 89 e8 87 bb 5a 01 e8 72 93 16 ff 0f 0b 48
loop2: rw=0, want=2048, limit=71
RSP: 0018:ffff888051c9f758 EFLAGS: 00010216
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000c263000
RDX: 0000000000004e78 RSI: ffffffff825b2f5b RDI: 0000000000000001
RBP: ffff88808067eac8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: ffff88808067e848 R14: 0000000000000001 R15: ffffea0000febd00
FS: 00007f18e7e6b700(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000334fad8 CR3: 000000009e45e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
do_read_cache_page+0x533/0x1080 mm/filemap.c:2828
read_mapping_page include/linux/pagemap.h:402 [inline]
ntfs_map_page fs/ntfs/aops.h:89 [inline]
map_mft_record_page fs/ntfs/mft.c:87 [inline]
map_mft_record+0x228/0xd00 fs/ntfs/mft.c:170
ntfs_read_locked_inode+0x19c/0x5490 fs/ntfs/inode.c:575
ntfs_read_inode_mount+0xcba/0x23b0 fs/ntfs/inode.c:2100
ntfs_fill_super+0x1761/0x89d2 fs/ntfs/super.c:2871
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 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:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f18e7e6aa88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f18e7e6ab20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f18e7e6aae0
RBP: 00007f18e7e6aae0 R08: 00007f18e7e6ab20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 000000002007dc00
Modules linked in:
---[ end trace d8d8bed3273d29cc ]---
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:203 [inline]
RIP: 0010:ntfs_readpage+0x1c0b/0x24d0 fs/ntfs/aops.c:452
loop1: rw=0, want=565, limit=249
Code: ff e8 a9 93 16 ff 48 8b 9d 80 fd ff ff 31 ff 48 c1 eb 03 83 e3 01 89 de e8 c2 94 16 ff 84 db 0f 85 0b f0 ff ff e8 85 93 16 ff <0f> 0b 48 c7 c7 80 e3 bf 89 e8 87 bb 5a 01 e8 72 93 16 ff 0f 0b 48
RSP: 0018:ffff888051c9f758 EFLAGS: 00010216
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000c263000
RDX: 0000000000004e78 RSI: ffffffff825b2f5b RDI: 0000000000000001
RBP: ffff88808067eac8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: ffff88808067e848 R14: 0000000000000001 R15: ffffea0000febd00
FS: 00007f18e7e6b700(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000035ddad8 CR3: 000000009e45e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400