syzbot


kernel BUG in ntfs_perform_write

Status: upstream: reported C repro on 2022/12/30 10:57
Subsystems: ntfs
[Documentation on labels]
Reported-by: syzbot+4c179f12dd0619a92356@syzkaller.appspotmail.com
First crash: 722d, last: 675d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in ntfs_perform_write origin:upstream missing-backport C done 103 12d 644d 0/3 upstream: reported C repro on 2023/03/17 15:25
upstream kernel BUG in __ntfs_grab_cache_pages ntfs3 C inconclusive done 1940 295d 816d 0/28 auto-obsoleted due to no activity on 2024/05/28 03:13
linux-6.1 kernel BUG in ntfs_perform_write origin:upstream missing-backport C done 114 26d 649d 0/3 upstream: reported C repro on 2023/03/13 09:11

Sample crash report:
ntfs: volume version 3.1.
ntfs: volume version 3.1.
ntfs: volume version 3.1.
ntfs: volume version 3.1.
------------[ cut here ]------------
kernel BUG at fs/ntfs/file.c:514!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8268 Comm: syz-executor629 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:514 [inline]
RIP: 0010:ntfs_perform_write.isra.0+0x194a/0x8570 fs/ntfs/file.c:1857
Code: 13 00 00 01 bf 00 10 00 00 44 89 fe e8 af 92 1b ff 41 81 ff 00 10 00 00 0f 86 a7 fe ff ff e8 2d 91 1b ff 0f 0b e8 26 91 1b ff <0f> 0b e8 1f 91 1b ff 48 8b 54 24 08 48 b8 00 00 00 00 00 fc ff df
RSP: 0018:ffff88809b4276a0 EFLAGS: 00010293
RAX: ffff888091d800c0 RBX: 0000000000000000 RCX: ffffffff8246de6a
RDX: 0000000000000000 RSI: ffffffff8246f44a RDI: 0000000000000005
RBP: ffff88809b4279a0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: ffffea000229f740 R15: 0000000000000004
FS:  00007fecc1d7e700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001001 CR3: 000000009ae79000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ntfs_file_write_iter+0x5d9/0x23b0 fs/ntfs/file.c:1951
 call_write_iter include/linux/fs.h:1821 [inline]
 do_iter_readv_writev+0x668/0x790 fs/read_write.c:681
 do_iter_write+0x182/0x5d0 fs/read_write.c:960
 vfs_writev+0x153/0x2e0 fs/read_write.c:1005
 do_pwritev fs/read_write.c:1094 [inline]
 __do_sys_pwritev fs/read_write.c:1141 [inline]
 __se_sys_pwritev fs/read_write.c:1136 [inline]
 __x64_sys_pwritev+0x22b/0x310 fs/read_write.c:1136
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fecc1dd25a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fecc1d7e2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000128
RAX: ffffffffffffffda RBX: 00007fecc1e767a0 RCX: 00007fecc1dd25a9
RDX: 0000000000000001 RSI: 00000000200002c0 RDI: 0000000000000004
RBP: 00007fecc1e42f30 R08: 0000000000001d00 R09: 0000000000000000
R10: 000000000000ffff R11: 0000000000000246 R12: 0030656c69662f2e
R13: 0031656c69662f2e R14: 65732f636f72702f R15: 00007fecc1e767a8
Modules linked in:
---[ end trace 85bfa8564ae270a1 ]---
RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:514 [inline]
RIP: 0010:ntfs_perform_write.isra.0+0x194a/0x8570 fs/ntfs/file.c:1857
Code: 13 00 00 01 bf 00 10 00 00 44 89 fe e8 af 92 1b ff 41 81 ff 00 10 00 00 0f 86 a7 fe ff ff e8 2d 91 1b ff 0f 0b e8 26 91 1b ff <0f> 0b e8 1f 91 1b ff 48 8b 54 24 08 48 b8 00 00 00 00 00 fc ff df
RSP: 0018:ffff88809b4276a0 EFLAGS: 00010293
RAX: ffff888091d800c0 RBX: 0000000000000000 RCX: ffffffff8246de6a
RDX: 0000000000000000 RSI: ffffffff8246f44a RDI: 0000000000000005
RBP: ffff88809b4279a0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: ffffea000229f740 R15: 0000000000000004
FS:  00007fecc1d7e700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001001 CR3: 000000009ae79000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/12 19:32 linux-4.19.y 3f8a27f9e27b 96166539 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in ntfs_perform_write
2022/12/30 11:55 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in ntfs_perform_write
2023/02/14 16:31 linux-4.19.y 3f8a27f9e27b 93ae7e0a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in ntfs_perform_write
2023/01/17 02:17 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in ntfs_perform_write
2023/01/10 09:03 linux-4.19.y 3f8a27f9e27b 48bc529a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in ntfs_perform_write
2022/12/30 10:57 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in ntfs_perform_write
* Struck through repros no longer work on HEAD.