[v5.15] kernel BUG in ntfs_readpage

1 view
Skip to first unread message

syzbot

unread,
Mar 8, 2023, 11:18:57 AM3/8/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d9b4a0c83a2d Linux 5.15.98
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14fa7e24c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=b57cfa804330c3b7
dashboard link: https://syzkaller.appspot.com/bug?extid=f6244a12190b9b210592
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8088989394e3/disk-d9b4a0c8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2651d6753959/vmlinux-d9b4a0c8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f3fa3f994f9a/Image-d9b4a0c8.gz.xz

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

loop3: detected capacity change from 0 to 4096
------------[ cut here ]------------
kernel BUG at fs/ntfs/aops.c:186!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 25308 Comm: syz-executor.3 Not tainted 5.15.98-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ntfs_read_block fs/ntfs/aops.c:186 [inline]
pc : ntfs_readpage+0x1e00/0x1e04 fs/ntfs/aops.c:435
lr : ntfs_read_block fs/ntfs/aops.c:186 [inline]
lr : ntfs_readpage+0x1e00/0x1e04 fs/ntfs/aops.c:435
sp : ffff80001ea773a0
x29: ffff80001ea77520 x28: 1fffe0002211263e x27: 1fffff80007eedc4
x26: fffffc0003f76e20 x25: fffffc0003f76e00 x24: 1fffff80007eedc4
x23: 1fffe0002211263a x22: ffff000110893208 x21: dfff800000000000
x20: 0000000000000230 x19: ffff0001108934a0 x18: ffff0001b4809868
x17: ff8080000889bb1c x16: ffff80001197a624 x15: ffff80000889bb1c
x14: 0000000000000005 x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000000e14d x10: ffff800022ca9000 x9 : ffff8000094fdbf4
x8 : 000000000000e14e x7 : 0000000000000000 x6 : ffff800008705f78
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000094fc5e4
x2 : ffffffffffffffc0 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
ntfs_read_block fs/ntfs/aops.c:186 [inline]
ntfs_readpage+0x1e00/0x1e04 fs/ntfs/aops.c:435
do_read_cache_page+0x60c/0x950
read_cache_page+0x68/0x84 mm/filemap.c:3565
read_mapping_page include/linux/pagemap.h:515 [inline]
ntfs_map_page fs/ntfs/aops.h:75 [inline]
map_mft_record_page fs/ntfs/mft.c:73 [inline]
map_mft_record+0x19c/0x738 fs/ntfs/mft.c:156
ntfs_read_locked_inode+0x160/0x38f0 fs/ntfs/inode.c:550
ntfs_read_inode_mount+0xbc0/0x2078 fs/ntfs/inode.c:2098
ntfs_fill_super+0x154c/0x24e8 fs/ntfs/super.c:2857
mount_bdev+0x26c/0x368 fs/super.c:1369
ntfs_mount+0x44/0x58 fs/ntfs/super.c:3051
legacy_get_tree+0xd4/0x16c fs/fs_context.c:610
vfs_get_tree+0x90/0x274 fs/super.c:1499
do_new_mount+0x25c/0x8c8 fs/namespace.c:2994
path_mount+0x590/0x104c fs/namespace.c:3324
do_mount fs/namespace.c:3337 [inline]
__do_sys_mount fs/namespace.c:3545 [inline]
__se_sys_mount fs/namespace.c:3522 [inline]
__arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 <unknown>:584
Code: f9406fe0 97caa4ee d4210000 97bf1341 (d4210000)
---[ end trace d14aea4766f17806 ]---


---
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,
May 6, 2023, 6:26:53 AM5/6/23
to syzkaller...@googlegroups.com
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
dashboard link: https://syzkaller.appspot.com/bug?extid=f6244a12190b9b210592
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
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

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

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.
Reply all
Reply to author
Forward
0 new messages