syzbot


kernel BUG in ntfs_perform_write

Status: upstream: reported C repro on 2023/03/13 09:11
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+eec701d3fa1f9e5af444@syzkaller.appspotmail.com
First crash: 469d, last: 40d
Fix commit to backport (bisect log) :
tree: upstream
commit 7ffa8f3d30236e0ab897c30bdb01224ff1fe1c89
Author: Matthew Wilcox (Oracle) <willy@infradead.org>
Date: Mon Jan 15 07:20:25 2024 +0000

  fs: Remove NTFS classic

  
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: kernel BUG in ntfs_perform_write (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2024/04/20 linux-6.1.y (ToT) 6741e066ec76 C [report] kernel BUG in ntfs_perform_write
2023/05/08 upstream (ToT) ac9a78681b92 C [report] kernel BUG in ntfs_perform_write
2024/04/20 upstream (ToT) 13a2e429f644 C Didn't crash
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 error 45 65d 465d 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 115d 637d 0/27 auto-obsoleted due to no activity on 2024/05/28 03:13
linux-4.19 kernel BUG in ntfs_perform_write ntfs C 6 496d 542d 0/1 upstream: reported C repro on 2022/12/30 10:57
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/05/15 18:22 5h13m fix candidate upstream job log (1)
2024/04/06 21:08 1h47m bisect fix linux-6.1.y job log (0) log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ntfs/file.c:493!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3562 Comm: syz-executor232 Not tainted 6.1.27-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline]
RIP: 0010:ntfs_perform_write+0x73bb/0x7510 fs/ntfs/file.c:1833
Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 9c f4 ff ff 48 89 df e8 c6 87 20 ff e9 8f f4 ff ff e8 bc 41 ca fe 0f 0b e8 b5 41 ca fe <0f> 0b e8 ae 41 ca fe 0f 0b e8 a7 41 ca fe 0f 0b e8 a0 41 ca fe 0f
RSP: 0018:ffffc90003a2f7a0 EFLAGS: 00010293
RAX: ffffffff82bf870b RBX: 0000000000000000 RCX: ffff88807b65d7c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003a2fbd0 R08: ffffffff82bf17bf R09: ffffffff84317fe5
R10: 0000000000000002 R11: ffff88807b65d7c0 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f475e8d6700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020004200 CR3: 000000007d2cc000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ntfs_file_write_iter+0x10e9/0x19f0 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+0x7ae/0xba0 fs/read_write.c:584
 ksys_write+0x19c/0x2c0 fs/read_write.c:637
 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+0x63/0xcd
RIP: 0033:0x7f475e932079
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 18 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:00007f475e8d62e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f475e9ce780 RCX: 00007f475e932079
RDX: 0000000000000001 RSI: 0000000020004200 RDI: 0000000000000004
RBP: 723d73726f727265 R08: 0000000000000002 R09: 0000000000003231
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f475e9ce788
R13: 00007f475e8d62f0 R14: 0031656c69662f2e R15: 0000000000000002
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:493 [inline]
RIP: 0010:ntfs_perform_write+0x73bb/0x7510 fs/ntfs/file.c:1833
Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 9c f4 ff ff 48 89 df e8 c6 87 20 ff e9 8f f4 ff ff e8 bc 41 ca fe 0f 0b e8 b5 41 ca fe <0f> 0b e8 ae 41 ca fe 0f 0b e8 a7 41 ca fe 0f 0b e8 a0 41 ca fe 0f
RSP: 0018:ffffc90003a2f7a0 EFLAGS: 00010293
RAX: ffffffff82bf870b RBX: 0000000000000000 RCX: ffff88807b65d7c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003a2fbd0 R08: ffffffff82bf17bf R09: ffffffff84317fe5
R10: 0000000000000002 R11: ffff88807b65d7c0 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f475e8d6700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f475e97c142 CR3: 000000007d2cc000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (111):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/07 13:06 linux-6.1.y ca48fc16c493 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in ntfs_perform_write
2023/12/01 23:45 linux-6.1.y 6ac30d748bb0 f819d6f7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/12/01 09:03 linux-6.1.y 6ac30d748bb0 f819d6f7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/08/15 20:18 linux-6.1.y 1321ab403b38 39990d51 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/03/18 10:41 linux-6.1.y 7eaef76fbc46 7939252e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/02/13 07:09 linux-6.1.y f1bb70486c9c 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_perform_write
2024/01/22 05:36 linux-6.1.y 8fd7f4462453 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_perform_write
2024/01/21 17:04 linux-6.1.y 8fd7f4462453 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_perform_write
2024/01/01 12:06 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_perform_write
2023/12/16 20:33 linux-6.1.y ba6f5fb46511 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_perform_write
2023/11/01 18:42 linux-6.1.y 32c9cdbe383c 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_perform_write
2023/09/24 23:57 linux-6.1.y d23900f974e0 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_perform_write
2024/05/15 06:36 linux-6.1.y 909ba1f1b414 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/03/07 08:50 linux-6.1.y 61adba85cc40 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/03/01 07:33 linux-6.1.y 81e1dc2f7001 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/02/27 16:18 linux-6.1.y 81e1dc2f7001 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/02/25 19:58 linux-6.1.y 81e1dc2f7001 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/01/30 17:41 linux-6.1.y 883d1a956208 7f400fcb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/01/27 22:41 linux-6.1.y 883d1a956208 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/01/26 18:40 linux-6.1.y 883d1a956208 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/01/23 04:07 linux-6.1.y 8fd7f4462453 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/01/21 09:00 linux-6.1.y 8fd7f4462453 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/01/19 05:39 linux-6.1.y fec3b1451d5f 21772ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/01/15 17:18 linux-6.1.y 7c58bfa711cb 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/01/13 12:46 linux-6.1.y 7c58bfa711cb 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2024/01/13 06:50 linux-6.1.y 7c58bfa711cb 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/12/29 11:29 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/12/18 14:50 linux-6.1.y ba6f5fb46511 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/12/16 21:34 linux-6.1.y ba6f5fb46511 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/12/04 17:31 linux-6.1.y c6114c845984 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/12/01 18:55 linux-6.1.y 6ac30d748bb0 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/12/01 14:34 linux-6.1.y 6ac30d748bb0 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/11/27 03:05 linux-6.1.y 69e434a1cb21 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/11/11 03:38 linux-6.1.y fb2635ac69ab d80eec66 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/11/10 19:24 linux-6.1.y fb2635ac69ab 45e9b83e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/11/05 20:37 linux-6.1.y 4a61839152cc 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/11/05 03:07 linux-6.1.y 4a61839152cc 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/10/29 20:57 linux-6.1.y 32c9cdbe383c 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/10/22 09:43 linux-6.1.y 7d24402875c7 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/10/22 06:46 linux-6.1.y 7d24402875c7 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/10/17 09:22 linux-6.1.y adc4d740ad9e 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/10/09 07:22 linux-6.1.y ecda77b46871 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/10/09 00:43 linux-6.1.y ecda77b46871 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/09/26 21:13 linux-6.1.y d23900f974e0 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/09/23 17:29 linux-6.1.y d23900f974e0 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/09/22 10:59 linux-6.1.y a356197db198 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/09/22 05:00 linux-6.1.y a356197db198 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/09/22 00:44 linux-6.1.y a356197db198 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
2023/03/13 09:11 linux-6.1.y 1cc3fcf63192 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_perform_write
* Struck through repros no longer work on HEAD.