[v6.1] kernel BUG in ntfs_perform_write

1 view
Skip to first unread message

syzbot

unread,
Mar 13, 2023, 5:11:41 AM3/13/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1cc3fcf63192 Linux 6.1.18
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15b6a9fac80000
kernel config: https://syzkaller.appspot.com/x/.config?x=157296d36f92ea19
dashboard link: https://syzkaller.appspot.com/bug?extid=eec701d3fa1f9e5af444
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/0e4c0d43698b/disk-1cc3fcf6.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a4de39d735de/vmlinux-1cc3fcf6.xz
kernel image: https://storage.googleapis.com/syzbot-assets/82bab928f6e3/Image-1cc3fcf6.gz.xz

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

------------[ cut here ]------------
kernel BUG at fs/ntfs/file.c:493!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 2801 Comm: syz-executor.5 Not tainted 6.1.18-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_grab_cache_pages fs/ntfs/file.c:493 [inline]
pc : ntfs_perform_write+0x6c9c/0x6ef4 fs/ntfs/file.c:1833
lr : __ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline]
lr : ntfs_perform_write+0x6c9c/0x6ef4 fs/ntfs/file.c:1833
sp : ffff80002bc17480
x29: ffff80002bc17890 x28: 0000000000000000 x27: 0000000000000000
x26: ffff80002bc177c0 x25: 0000000000000000 x24: fffffc0005150cb4
x23: fffffc0005150c80 x22: 0000000000000000 x21: 0000000000000000
x20: ffff80002bc17c40 x19: 0000000000000001 x18: 1fffe000368b0376
x17: ffff80001572d000 x16: ffff800012253f8c x15: 0000000000000000
x14: 1ffff00002ae60b0 x13: dfff800000000000 x12: 0000000000040000
x11: 000000000000ede0 x10: ffff800026710000 x9 : ffff80000964f76c
x8 : 000000000000ede1 x7 : ffff800008868fa4 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000001
x2 : 0000000000000008 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
__ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline]
ntfs_perform_write+0x6c9c/0x6ef4 fs/ntfs/file.c:1833
ntfs_file_write_iter+0xf78/0x17b0 fs/ntfs/file.c:1917
do_iter_write+0x534/0x964 fs/read_write.c:861
vfs_writev fs/read_write.c:934 [inline]
do_pwritev+0x1ec/0x334 fs/read_write.c:1031
__do_sys_pwritev fs/read_write.c:1078 [inline]
__se_sys_pwritev fs/read_write.c:1073 [inline]
__arm64_sys_pwritev+0xa0/0xb8 fs/read_write.c:1073
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: 17fffcf7 97bad115 d4210000 97bad113 (d4210000)
---[ end trace 0000000000000000 ]---


---
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,
Mar 17, 2023, 11:25:50 AM3/17/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 8020ae3c051d Linux 5.15.103
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16d158d6c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=f95b212e0ccdd4d1
dashboard link: https://syzkaller.appspot.com/bug?extid=eb680ef72b06aa7a8f11
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/6153dfa8dcc0/disk-8020ae3c.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2093d52db59f/vmlinux-8020ae3c.xz
kernel image: https://storage.googleapis.com/syzbot-assets/85041d0bd356/Image-8020ae3c.gz.xz

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

------------[ cut here ]------------
kernel BUG at fs/ntfs/file.c:497!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 6034 Comm: syz-executor.3 Not tainted 5.15.103-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_grab_cache_pages fs/ntfs/file.c:497 [inline]
pc : ntfs_perform_write+0x6588/0x66b8 fs/ntfs/file.c:1837
lr : __ntfs_grab_cache_pages fs/ntfs/file.c:497 [inline]
lr : ntfs_perform_write+0x6588/0x66b8 fs/ntfs/file.c:1837
sp : ffff80001ef97540
x29: ffff80001ef97940 x28: 0000000000000000 x27: ffff80001ef97880
x26: 0000000000000000 x25: 0000000000000000 x24: ffff80001ef97880
x23: ffff80001ef97880 x22: 0000000000001000 x21: 0000000000000000
x20: ffff80001ef97b90 x19: 0000000000000001 x18: 1fffe0003690058e
x17: 1fffe0003690058e x16: ffff800011a056c4 x15: ffff800014a5f960
x14: 1ffff0000293806a x13: ffffffffffffffff x12: 0000000000040000
x11: 0000000000011181 x10: ffff800022d79000 x9 : ffff800009537390
x8 : 0000000000011182 x7 : ffff8000087d786c x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000001
x2 : 0000000000000008 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
__ntfs_grab_cache_pages fs/ntfs/file.c:497 [inline]
ntfs_perform_write+0x6588/0x66b8 fs/ntfs/file.c:1837
ntfs_file_write_iter+0xfa4/0x170c fs/ntfs/file.c:1921
call_write_iter include/linux/fs.h:2103 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0x87c/0xb3c fs/read_write.c:594
ksys_write+0x15c/0x26c fs/read_write.c:647
__do_sys_write fs/read_write.c:659 [inline]
__se_sys_write fs/read_write.c:656 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:656
__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 arch/arm64/kernel/entry.S:584
Code: 17fffd14 97be3db4 d4210000 97be3db2 (d4210000)
---[ end trace 8479846536d0f76b ]---

syzbot

unread,
Mar 17, 2023, 11:39:46 AM3/17/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 8020ae3c051d Linux 5.15.103
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13ccc1aac80000
kernel config: https://syzkaller.appspot.com/x/.config?x=f95b212e0ccdd4d1
dashboard link: https://syzkaller.appspot.com/bug?extid=eb680ef72b06aa7a8f11
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=131921e6c80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13798c4ac80000
mounted in repro: https://storage.googleapis.com/syzbot-assets/153a84828feb/mount_0.gz

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

__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 arch/arm64/kernel/entry.S:584
------------[ cut here ]------------
kernel BUG at fs/ntfs/file.c:497!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4060 Comm: syz-executor152 Not tainted 5.15.103-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_grab_cache_pages fs/ntfs/file.c:497 [inline]
pc : ntfs_perform_write+0x6588/0x66b8 fs/ntfs/file.c:1837
lr : __ntfs_grab_cache_pages fs/ntfs/file.c:497 [inline]
lr : ntfs_perform_write+0x6588/0x66b8 fs/ntfs/file.c:1837
sp : ffff80001c757540
x29: ffff80001c757940 x28: 0000000000000000 x27: ffff80001c757880
x26: 0000000000000000 x25: 0000000000000000 x24: ffff80001c757880
x23: ffff80001c757880 x22: 0000000000001000 x21: 0000000000000000
x20: ffff80001c757b90 x19: 0000000000000001 x18: ffff80001c756ea0
x17: ff808000083386a0 x16: ffff800011a056c4 x15: 000000000000b6fe
x14: 1ffff0000293806a x13: ffffffffffffffff x12: 0000000000000000
x11: ff80800009537390 x10: 0000000000000000 x9 : ffff800009537390
x8 : ffff0000c22b0000 x7 : ffff8000087d786c x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000001
x2 : 0000000000000008 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
__ntfs_grab_cache_pages fs/ntfs/file.c:497 [inline]
ntfs_perform_write+0x6588/0x66b8 fs/ntfs/file.c:1837
ntfs_file_write_iter+0xfa4/0x170c fs/ntfs/file.c:1921
call_write_iter include/linux/fs.h:2103 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0x87c/0xb3c fs/read_write.c:594
ksys_write+0x15c/0x26c fs/read_write.c:647
__do_sys_write fs/read_write.c:659 [inline]
__se_sys_write fs/read_write.c:656 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:656
__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 arch/arm64/kernel/entry.S:584
Code: 17fffd14 97be3db4 d4210000 97be3db2 (d4210000)
---[ end trace 0c687cf432eeeafc ]---

syzbot

unread,
Mar 18, 2023, 6:41:49 AM3/18/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 7eaef76fbc46 Linux 6.1.20
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1026d2d6c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=29ad3fe3c7b61175
dashboard link: https://syzkaller.appspot.com/bug?extid=eec701d3fa1f9e5af444
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1347e26ec80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11b1584ec80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/34f95428f5fb/disk-7eaef76f.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/1bdd9b2c390d/vmlinux-7eaef76f.xz
kernel image: https://storage.googleapis.com/syzbot-assets/419140981cfa/Image-7eaef76f.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/b63b6c5bf915/mount_0.gz

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

el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
------------[ cut here ]------------
kernel BUG at fs/ntfs/file.c:493!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4315 Comm: syz-executor213 Not tainted 6.1.20-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_grab_cache_pages fs/ntfs/file.c:493 [inline]
pc : ntfs_perform_write+0x6c9c/0x6ef4 fs/ntfs/file.c:1833
lr : __ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline]
lr : ntfs_perform_write+0x6c9c/0x6ef4 fs/ntfs/file.c:1833
sp : ffff80001dbf7580
x29: ffff80001dbf7990 x28: 0000000000000000 x27: 0000000000000000
x26: ffff80001dbf78c0 x25: 0000000000000000 x24: fffffc0006cb3e74
x23: fffffc0006cb3e40 x22: 0000000000000000 x21: 0000000000000000
x20: ffff80001dbf7bb0 x19: 0000000000000001 x18: 1fffe000368afd76
x17: ffff80001572d000 x16: ffff80001225a54c x15: 0000000000000000
x14: 1ffff00002ae60b0 x13: dfff800000000000 x12: 000000008e55f8b7
x11: ff808000096574a0 x10: 0000000000000000 x9 : ffff8000096574a0
x8 : ffff0000d2590000 x7 : ffff800008868fdc x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000001
x2 : 0000000000000008 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
__ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline]
ntfs_perform_write+0x6c9c/0x6ef4 fs/ntfs/file.c:1833
ntfs_file_write_iter+0xf78/0x17b0 fs/ntfs/file.c:1917
call_write_iter include/linux/fs.h:2205 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x610/0x914 fs/read_write.c:584
ksys_write+0x15c/0x26c fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:646
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: 17fffcf7 97bab1c8 d4210000 97bab1c6 (d4210000)
Reply all
Reply to author
Forward
0 new messages