syzbot


kernel BUG in ntfs_perform_write

Status: upstream: reported C repro on 2023/03/17 15:25
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+eb680ef72b06aa7a8f11@syzkaller.appspotmail.com
First crash: 573d, last: 17d
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: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/04/20 linux-5.15.y (ToT) c52b9710c83d C [report] kernel BUG in ntfs_perform_write
2023/05/11 upstream (ToT) 80e62bc8487b 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
upstream kernel BUG in __ntfs_grab_cache_pages ntfs3 C inconclusive done 1940 223d 744d 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 111 148d 577d 0/3 upstream: reported C repro on 2023/03/13 09:11
linux-4.19 kernel BUG in ntfs_perform_write ntfs C 6 603d 650d 0/1 upstream: reported C repro on 2022/12/30 10:57
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/09/14 07:56 10h04m fix candidate upstream OK (1) job log
2024/05/30 01:06 12h03m fix candidate upstream error job log
2024/05/21 11:17 0m bisect fix linux-5.15.y error job log
2024/04/05 22:54 3h03m bisect fix linux-5.15.y OK (0) job log log
2023/11/17 10:36 2h00m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe82a1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000000d192 RCX: 00007f03c18526e9
RDX: 0000000000000001 RSI: 0000000020004200 RDI: 0000000000000004
RBP: 00007fffe82a1170 R08: 0000000000000002 R09: 0000000000003231
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fffe82a11f0 R14: 00007fffe82a11d0 R15: 0000000000000001
 </TASK>
------------[ cut here ]------------
kernel BUG at fs/ntfs/file.c:497!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3501 Comm: syz-executor247 Not tainted 5.15.109-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:497 [inline]
RIP: 0010:ntfs_perform_write+0x8024/0x8280 fs/ntfs/file.c:1837
Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c d2 f2 ff ff 48 89 df e8 8d 02 2c ff e9 c5 f2 ff ff e8 63 a8 e2 fe 0f 0b e8 5c a8 e2 fe <0f> 0b e8 55 a8 e2 fe 0f 0b e8 4e a8 e2 fe 0f 0b e8 47 a8 e2 fe 0f
RSP: 0018:ffffc900024cf780 EFLAGS: 00010293
RAX: ffffffff829d3624 RBX: 0000000000000000 RCX: ffff888012bc9d00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900024cfbb8 R08: ffffffff829cbb69 R09: fffff9400038a7bf
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001c53dc0
R13: 0000000000000000 R14: ffffc900024cfd90 R15: 0000000000000000
FS:  00005555574903c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020004200 CR3: 0000000075bd7000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ntfs_file_write_iter+0x15a6/0x1fa0 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+0xacf/0xe50 fs/read_write.c:594
 ksys_write+0x1a2/0x2c0 fs/read_write.c:647
 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+0x61/0xcb
RIP: 0033:0x7f03c18526e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe82a1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000000d192 RCX: 00007f03c18526e9
RDX: 0000000000000001 RSI: 0000000020004200 RDI: 0000000000000004
RBP: 00007fffe82a1170 R08: 0000000000000002 R09: 0000000000003231
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fffe82a11f0 R14: 00007fffe82a11d0 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace b814743f34966e84 ]---
RIP: 0010:__ntfs_grab_cache_pages fs/ntfs/file.c:497 [inline]
RIP: 0010:ntfs_perform_write+0x8024/0x8280 fs/ntfs/file.c:1837
Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c d2 f2 ff ff 48 89 df e8 8d 02 2c ff e9 c5 f2 ff ff e8 63 a8 e2 fe 0f 0b e8 5c a8 e2 fe <0f> 0b e8 55 a8 e2 fe 0f 0b e8 4e a8 e2 fe 0f 0b e8 47 a8 e2 fe 0f
RSP: 0018:ffffc900024cf780 EFLAGS: 00010293
RAX: ffffffff829d3624 RBX: 0000000000000000 RCX: ffff888012bc9d00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900024cfbb8 R08: ffffffff829cbb69 R09: fffff9400038a7bf
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001c53dc0
R13: 0000000000000000 R14: ffffc900024cfd90 R15: 0000000000000000
FS:  00005555574903c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020004200 CR3: 0000000075bd7000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	28 00                	sub    %al,(%rax)
   2:	00 00                	add    %al,(%rax)
   4:	75 05                	jne    0xb
   6:	48 83 c4 28          	add    $0x28,%rsp
   a:	c3                   	retq
   b:	e8 11 15 00 00       	callq  0x1521
  10:	90                   	nop
  11:	48 89 f8             	mov    %rdi,%rax
  14:	48 89 f7             	mov    %rsi,%rdi
  17:	48 89 d6             	mov    %rdx,%rsi
  1a:	48 89 ca             	mov    %rcx,%rdx
  1d:	4d 89 c2             	mov    %r8,%r10
  20:	4d 89 c8             	mov    %r9,%r8
  23:	4c 8b 4c 24 08       	mov    0x8(%rsp),%r9
  28:	0f 05                	syscall
* 2a:	48 3d 01 f0 ff ff    	cmp    $0xfffffffffffff001,%rax <-- trapping instruction
  30:	73 01                	jae    0x33
  32:	c3                   	retq
  33:	48 c7 c1 c0 ff ff ff 	mov    $0xffffffffffffffc0,%rcx
  3a:	f7 d8                	neg    %eax
  3c:	64 89 01             	mov    %eax,%fs:(%rcx)
  3f:	48                   	rex.W

Crashes (90):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/30 09:07 linux-5.15.y f48aeeaaa64c 62df2017 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ntfs_perform_write
2024/07/13 00:05 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/07/12 23:35 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/07/12 22:42 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/07/12 20:07 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/03/05 13:35 linux-5.15.y 80efc6265290 5fc53669 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/11/24 02:02 linux-5.15.y 2a910f4af54d 5b429f39 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/08/15 05:06 linux-5.15.y 24c4de4069cb 39990d51 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/03/18 08:21 linux-5.15.y 8020ae3c051d 7939252e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/03/17 15:39 linux-5.15.y 8020ae3c051d 18b58603 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/09/23 05:29 linux-5.15.y 3a5928702e71 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ntfs_perform_write
2024/09/01 23:15 linux-5.15.y fa93fa65db6e 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ntfs_perform_write
2024/07/31 11:27 linux-5.15.y 7e89efd3ae1c 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ntfs_perform_write
2024/07/28 22:44 linux-5.15.y 7e89efd3ae1c 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ntfs_perform_write
2024/07/13 17:14 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ntfs_perform_write
2023/12/30 10:16 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ntfs_perform_write
2023/12/09 22:21 linux-5.15.y 8a1d809b0545 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ntfs_perform_write
2023/10/16 01:25 linux-5.15.y 02e21884dcf2 f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ntfs_perform_write
2024/09/21 03:01 linux-5.15.y 3a5928702e71 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/09/09 01:47 linux-5.15.y 14e468424d3e 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/09/08 23:45 linux-5.15.y 14e468424d3e 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/09/08 16:34 linux-5.15.y 14e468424d3e 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/09/07 13:08 linux-5.15.y 14e468424d3e 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/09/01 13:06 linux-5.15.y fa93fa65db6e 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/09/01 05:53 linux-5.15.y fa93fa65db6e 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/08/28 08:44 linux-5.15.y fa93fa65db6e 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/08/25 21:06 linux-5.15.y fa93fa65db6e d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/08/25 17:15 linux-5.15.y fa93fa65db6e d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/08/16 22:49 linux-5.15.y 7e89efd3ae1c e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/08/16 21:39 linux-5.15.y 7e89efd3ae1c e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/08/02 19:42 linux-5.15.y 7e89efd3ae1c 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/07/31 08:47 linux-5.15.y 7e89efd3ae1c 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/07/28 20:36 linux-5.15.y 7e89efd3ae1c 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/07/28 08:03 linux-5.15.y 7e89efd3ae1c 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/07/22 04:08 linux-5.15.y 7c6d66f0266f b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/07/14 09:23 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/07/12 18:54 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/03/05 13:14 linux-5.15.y 80efc6265290 5fc53669 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/03/03 01:57 linux-5.15.y 80efc6265290 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/03/01 20:08 linux-5.15.y 80efc6265290 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/02/26 00:51 linux-5.15.y 458ce51d0356 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/01/23 23:41 linux-5.15.y ddcaf4999061 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2024/01/19 12:21 linux-5.15.y ddcaf4999061 21772ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/11/24 01:09 linux-5.15.y 2a910f4af54d 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/09/21 22:08 linux-5.15.y 35ecaa3632bf 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/09/02 07:48 linux-5.15.y 9e43368a3393 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/08/07 06:00 linux-5.15.y 38d4ca22a528 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ntfs_perform_write
2023/08/29 17:01 linux-5.15.y 5ddfe5cc8716 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/08/29 09:43 linux-5.15.y 5ddfe5cc8716 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/08/15 04:47 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/08/05 08:33 linux-5.15.y 38d4ca22a528 cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/07/28 02:54 linux-5.15.y 09996673e313 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/07/01 20:11 linux-5.15.y 4af60700a60c bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/06/24 13:13 linux-5.15.y f67653019430 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/06/24 04:33 linux-5.15.y f67653019430 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/06/18 17:14 linux-5.15.y 471e639e59d1 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/06/03 19:25 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/05/28 22:59 linux-5.15.y 1fe619a7d252 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/04/25 12:29 linux-5.15.y 3299fb36854f 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/04/24 20:05 linux-5.15.y 3299fb36854f fdc18293 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/04/24 08:23 linux-5.15.y 3299fb36854f 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
2023/03/17 15:25 linux-5.15.y 8020ae3c051d 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ntfs_perform_write
* Struck through repros no longer work on HEAD.