[v6.6] kernel BUG in ntfs_read_folio

0 views
Skip to first unread message

syzbot

unread,
Apr 12, 2026, 11:31:24 PM (11 days ago) Apr 12
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 8cee53b8eaeb Linux 6.6.134
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12ab274e580000
kernel config: https://syzkaller.appspot.com/x/.config?x=c5b35c4db8465904
dashboard link: https://syzkaller.appspot.com/bug?extid=3687978360fc6d49c5d2
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/4c0eb6df7b4a/disk-8cee53b8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/38626ee912e4/vmlinux-8cee53b8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/646a84f3433a/bzImage-8cee53b8.xz

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

loop1: detected capacity change from 0 to 4096
------------[ cut here ]------------
kernel BUG at fs/ntfs/aops.c:186!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 7662 Comm: syz.1.404 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline]
RIP: 0010:ntfs_read_folio+0x26f8/0x2990 fs/ntfs/aops.c:436
Code: bc 24 80 00 00 00 00 0f 84 cf 00 00 00 e8 e0 79 c6 fe e9 43 02 00 00 e8 d6 79 c6 fe 0f 0b e8 cf 79 c6 fe 0f 0b e8 c8 79 c6 fe <0f> 0b 48 8b 7c 24 18 be 08 00 00 00 e8 17 b3 1e ff 48 b8 00 00 00
RSP: 0018:ffffc9000e4275c0 EFLAGS: 00010283
RAX: ffffffff82c0a838 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc9000d6fc000 RSI: 000000000000723d RDI: 000000000000723e
RBP: ffffc9000e4277b0 R08: ffff88805f218057 R09: 1ffff1100be4300a
R10: dffffc0000000000 R11: ffffed100be4300b R12: dffffc0000000000
R13: 1ffffd40002b3cc8 R14: ffff88805fe4b000 R15: ffffea000159e640
FS: 00007f4d1d2d16c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4d123f6e00 CR3: 000000006342c000 CR4: 00000000003506f0
Call Trace:
<TASK>
filemap_read_folio+0x172/0x760 mm/filemap.c:2420
do_read_cache_folio+0x468/0x7d0 mm/filemap.c:3804
do_read_cache_page+0x32/0x250 mm/filemap.c:3870
read_mapping_page include/linux/pagemap.h:892 [inline]
ntfs_map_page fs/ntfs/aops.h:75 [inline]
map_mft_record_page fs/ntfs/mft.c:73 [inline]
map_mft_record+0x1e3/0x650 fs/ntfs/mft.c:156
ntfs_read_locked_inode+0x1ae/0x4e40 fs/ntfs/inode.c:550
ntfs_read_inode_mount+0xf6f/0x28f0 fs/ntfs/inode.c:2098
ntfs_fill_super+0x16dd/0x2a50 fs/ntfs/super.c:2863
mount_bdev+0x221/0x2d0 fs/super.c:1643
legacy_get_tree+0xea/0x180 fs/fs_context.c:662
vfs_get_tree+0x8c/0x280 fs/super.c:1764
do_new_mount+0x24b/0xa40 fs/namespace.c:3386
do_mount fs/namespace.c:3726 [inline]
__do_sys_mount fs/namespace.c:3935 [inline]
__se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3912
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f4d1c39da8a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4d1d2d0e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f4d1d2d0ee0 RCX: 00007f4d1c39da8a
RDX: 000020000001ec80 RSI: 000020000001ecc0 RDI: 00007f4d1d2d0ea0
RBP: 000020000001ec80 R08: 00007f4d1d2d0ee0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000020000001ecc0
R13: 00007f4d1d2d0ea0 R14: 000000000001ec5f R15: 000020000001ed00
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline]
RIP: 0010:ntfs_read_folio+0x26f8/0x2990 fs/ntfs/aops.c:436
Code: bc 24 80 00 00 00 00 0f 84 cf 00 00 00 e8 e0 79 c6 fe e9 43 02 00 00 e8 d6 79 c6 fe 0f 0b e8 cf 79 c6 fe 0f 0b e8 c8 79 c6 fe <0f> 0b 48 8b 7c 24 18 be 08 00 00 00 e8 17 b3 1e ff 48 b8 00 00 00
RSP: 0018:ffffc9000e4275c0 EFLAGS: 00010283
RAX: ffffffff82c0a838 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc9000d6fc000 RSI: 000000000000723d RDI: 000000000000723e
RBP: ffffc9000e4277b0 R08: ffff88805f218057 R09: 1ffff1100be4300a
R10: dffffc0000000000 R11: ffffed100be4300b R12: dffffc0000000000
R13: 1ffffd40002b3cc8 R14: ffff88805fe4b000 R15: ffffea000159e640
FS: 00007f4d1d2d16c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555615e3a28 CR3: 000000006342c000 CR4: 00000000003506f0


---
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.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Apr 13, 2026, 12:01:32 AM (11 days ago) Apr 13
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 8cee53b8eaeb Linux 6.6.134
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1382d106580000
kernel config: https://syzkaller.appspot.com/x/.config?x=c5b35c4db8465904
dashboard link: https://syzkaller.appspot.com/bug?extid=3687978360fc6d49c5d2
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=161860ce580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=105c9036580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/86499f642ff0/mount_0.gz

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

syz.0.17[5920]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
loop0: detected capacity change from 0 to 4096
------------[ cut here ]------------
kernel BUG at fs/ntfs/aops.c:186!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5920 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline]
RIP: 0010:ntfs_read_folio+0x26f8/0x2990 fs/ntfs/aops.c:436
Code: bc 24 80 00 00 00 00 0f 84 cf 00 00 00 e8 e0 79 c6 fe e9 43 02 00 00 e8 d6 79 c6 fe 0f 0b e8 cf 79 c6 fe 0f 0b e8 c8 79 c6 fe <0f> 0b 48 8b 7c 24 18 be 08 00 00 00 e8 17 b3 1e ff 48 b8 00 00 00
RSP: 0018:ffffc900032e75c0 EFLAGS: 00010293
RAX: ffffffff82c0a838 RBX: 0000000000000000 RCX: ffff888029be0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900032e77b0 R08: ffff88805e150057 R09: 1ffff1100bc2a00a
R10: dffffc0000000000 R11: ffffed100bc2a00b R12: dffffc0000000000
R13: 1ffffd40002ea228 R14: ffff888078099000 R15: ffffea0001751140
FS: 0000555581282500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f337b44b53c CR3: 0000000071cd3000 CR4: 00000000003506e0
Call Trace:
<TASK>
filemap_read_folio+0x172/0x760 mm/filemap.c:2420
do_read_cache_folio+0x468/0x7d0 mm/filemap.c:3804
do_read_cache_page+0x32/0x250 mm/filemap.c:3870
read_mapping_page include/linux/pagemap.h:892 [inline]
ntfs_map_page fs/ntfs/aops.h:75 [inline]
map_mft_record_page fs/ntfs/mft.c:73 [inline]
map_mft_record+0x1e3/0x650 fs/ntfs/mft.c:156
ntfs_read_locked_inode+0x1ae/0x4e40 fs/ntfs/inode.c:550
ntfs_read_inode_mount+0xf6f/0x28f0 fs/ntfs/inode.c:2098
ntfs_fill_super+0x16dd/0x2a50 fs/ntfs/super.c:2863
mount_bdev+0x221/0x2d0 fs/super.c:1643
legacy_get_tree+0xea/0x180 fs/fs_context.c:662
vfs_get_tree+0x8c/0x280 fs/super.c:1764
do_new_mount+0x24b/0xa40 fs/namespace.c:3386
do_mount fs/namespace.c:3726 [inline]
__do_sys_mount fs/namespace.c:3935 [inline]
__se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3912
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f337b39da8a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffce22b49c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffce22b4a50 RCX: 00007f337b39da8a
RDX: 000020000001ec80 RSI: 000020000001ecc0 RDI: 00007ffce22b4a10
RBP: 000020000001ec80 R08: 00007ffce22b4a50 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000020000001ecc0
R13: 00007ffce22b4a10 R14: 000000000001ec5f R15: 000020000001ed00
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline]
RIP: 0010:ntfs_read_folio+0x26f8/0x2990 fs/ntfs/aops.c:436
Code: bc 24 80 00 00 00 00 0f 84 cf 00 00 00 e8 e0 79 c6 fe e9 43 02 00 00 e8 d6 79 c6 fe 0f 0b e8 cf 79 c6 fe 0f 0b e8 c8 79 c6 fe <0f> 0b 48 8b 7c 24 18 be 08 00 00 00 e8 17 b3 1e ff 48 b8 00 00 00
RSP: 0018:ffffc900032e75c0 EFLAGS: 00010293
RAX: ffffffff82c0a838 RBX: 0000000000000000 RCX: ffff888029be0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900032e77b0 R08: ffff88805e150057 R09: 1ffff1100bc2a00a
R10: dffffc0000000000 R11: ffffed100bc2a00b R12: dffffc0000000000
R13: 1ffffd40002ea228 R14: ffff888078099000 R15: ffffea0001751140
FS: 0000555581282500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f337b44b53c CR3: 0000000071cd3000 CR4: 00000000003506e0


---
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