[v6.6] kernel BUG in ntfs_perform_write

0 views
Skip to first unread message

syzbot

unread,
Sep 16, 2025, 6:29:37 AM (yesterday) Sep 16
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 60a9e718726f Linux 6.6.106
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15264e42580000
kernel config: https://syzkaller.appspot.com/x/.config?x=12606d4b8832c7e4
dashboard link: https://syzkaller.appspot.com/bug?extid=b09937c85c3b13932fbc
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/eca27e056a5a/disk-60a9e718.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/bc64d4eeb7f6/vmlinux-60a9e718.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a345041561ac/bzImage-60a9e718.xz

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

RBP: 00007f88aa537090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f88a99d6128 R14: 00007f88a99d6090 R15: 00007ffffa777b88
</TASK>
------------[ cut here ]------------
kernel BUG at fs/ntfs/file.c:493!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6446 Comm: syz.1.151 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline]
RIP: 0010:ntfs_perform_write+0x7861/0x79d0 fs/ntfs/file.c:1833
Code: a5 f9 c7 fe 0f 0b e8 9e f9 c7 fe 48 8b 7c 24 20 48 c7 c6 c0 dc dc 8a e8 ad bb 07 ff 0f 0b e8 86 f9 c7 fe 0f 0b e8 7f f9 c7 fe <0f> 0b e8 78 f9 c7 fe 0f 0b e8 71 f9 c7 fe 0f 0b 89 d9 80 e1 07 38
RSP: 0018:ffffc90017f7f7e0 EFLAGS: 00010293
RAX: ffffffff82bd96c1 RBX: 0000000000000000 RCX: ffff88801abf9e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90017f7fc20 R08: ffff88801abf9e00 R09: 0000000000000002
R10: 0000000000000005 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: ffffc90017f7fdb0 R15: 0000000000000001
FS: 00007f88aa5376c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8ebe9a4198 CR3: 0000000027c8a000 CR4: 00000000003506e0
Call Trace:
<TASK>
ntfs_file_write_iter+0x109d/0x19c0 fs/ntfs/file.c:1916
call_write_iter include/linux/fs.h:2018 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x43b/0x940 fs/read_write.c:584
ksys_write+0x147/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f88a978eba9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f88aa537038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f88a99d6090 RCX: 00007f88a978eba9
RDX: 0000000000000060 RSI: 0000200000000080 RDI: 0000000000000004
RBP: 00007f88aa537090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f88a99d6128 R14: 00007f88a99d6090 R15: 00007ffffa777b88
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline]
RIP: 0010:ntfs_perform_write+0x7861/0x79d0 fs/ntfs/file.c:1833
Code: a5 f9 c7 fe 0f 0b e8 9e f9 c7 fe 48 8b 7c 24 20 48 c7 c6 c0 dc dc 8a e8 ad bb 07 ff 0f 0b e8 86 f9 c7 fe 0f 0b e8 7f f9 c7 fe <0f> 0b e8 78 f9 c7 fe 0f 0b e8 71 f9 c7 fe 0f 0b 89 d9 80 e1 07 38
RSP: 0018:ffffc90017f7f7e0 EFLAGS: 00010293
RAX: ffffffff82bd96c1 RBX: 0000000000000000 RCX: ffff88801abf9e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90017f7fc20 R08: ffff88801abf9e00 R09: 0000000000000002
R10: 0000000000000005 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: ffffc90017f7fdb0 R15: 0000000000000001
FS: 00007f88aa5376c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f782dfa3ad8 CR3: 0000000027c8a000 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,
Sep 16, 2025, 9:17:30 AM (yesterday) Sep 16
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 60a9e718726f Linux 6.6.106
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11f2747c580000
kernel config: https://syzkaller.appspot.com/x/.config?x=12606d4b8832c7e4
dashboard link: https://syzkaller.appspot.com/bug?extid=b09937c85c3b13932fbc
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11ce8534580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11b4fb12580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/0da9582c831d/mount_0.gz

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

RBP: 00007ffdae493610 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fd4dd3d5fa0 R14: 00007fd4dd3d5fa0 R15: 0000000000000003
</TASK>
------------[ cut here ]------------
kernel BUG at fs/ntfs/file.c:493!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5945 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline]
RIP: 0010:ntfs_perform_write+0x7861/0x79d0 fs/ntfs/file.c:1833
Code: a5 f9 c7 fe 0f 0b e8 9e f9 c7 fe 48 8b 7c 24 20 48 c7 c6 c0 dc dc 8a e8 ad bb 07 ff 0f 0b e8 86 f9 c7 fe 0f 0b e8 7f f9 c7 fe <0f> 0b e8 78 f9 c7 fe 0f 0b e8 71 f9 c7 fe 0f 0b 89 d9 80 e1 07 38
RSP: 0018:ffffc9000453f7e0 EFLAGS: 00010293
RAX: ffffffff82bd96c1 RBX: 0000000000000000 RCX: ffff88807c04bc00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000453fc20 R08: ffff88807c04bc00 R09: 0000000000000002
R10: 0000000000000005 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: ffffc9000453fdb0 R15: 0000000000000001
FS: 000055556643e500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000001140 CR3: 0000000076def000 CR4: 00000000003506f0
Call Trace:
<TASK>
ntfs_file_write_iter+0x109d/0x19c0 fs/ntfs/file.c:1916
call_write_iter include/linux/fs.h:2018 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x43b/0x940 fs/read_write.c:584
ksys_write+0x147/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd4dd18eba9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdae4935b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd4dd3d5fa0 RCX: 00007fd4dd18eba9
RDX: 0000000000000060 RSI: 0000200000000080 RDI: 0000000000000004
RBP: 00007ffdae493610 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fd4dd3d5fa0 R14: 00007fd4dd3d5fa0 R15: 0000000000000003
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline]
RIP: 0010:ntfs_perform_write+0x7861/0x79d0 fs/ntfs/file.c:1833
Code: a5 f9 c7 fe 0f 0b e8 9e f9 c7 fe 48 8b 7c 24 20 48 c7 c6 c0 dc dc 8a e8 ad bb 07 ff 0f 0b e8 86 f9 c7 fe 0f 0b e8 7f f9 c7 fe <0f> 0b e8 78 f9 c7 fe 0f 0b e8 71 f9 c7 fe 0f 0b 89 d9 80 e1 07 38
RSP: 0018:ffffc9000453f7e0 EFLAGS: 00010293
RAX: ffffffff82bd96c1 RBX: 0000000000000000 RCX: ffff88807c04bc00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000453fc20 R08: ffff88807c04bc00 R09: 0000000000000002
R10: 0000000000000005 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: ffffc9000453fdb0 R15: 0000000000000001
FS: 000055556643e500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000001140 CR3: 0000000076def000 CR4: 00000000003506f0


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