syzbot


BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster

Status: upstream: reported C repro on 2023/03/15 20:23
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+f3e5d0948a1837ed1bb0@syzkaller.appspotmail.com
First crash: 637d, last: 158d
Fix commit to backport (bisect log) :
tree: upstream
commit c380b52f6c5702cc4bdda5e6d456d6c19a201a0b
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Fri Oct 7 11:02:36 2022 +0000

  fs/ntfs3: Change new sparse cluster processing

  
Bug presence (2)
Date Name Commit Repro Result
2023/05/14 linux-6.1.y (ToT) bf4ad6fa4e53 C [report] BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/05/13 upstream (ToT) d4d58949a6ea C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster origin:lts-only C done 549 1d15h 637d 0/3 upstream: reported C repro on 2023/03/15 20:30
upstream BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster ntfs3 C error done 11 722d 725d 22/28 fixed on 2023/02/24 13:51
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/10/12 15:26 4h09m fix candidate upstream OK (1) job log

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS' sector size (2048) and media sector size (512)
ntfs3: loop0: Mark volume as dirty due to NTFS errors
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 1a678067 P4D 1a678067 PUD 25857067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3543 Comm: syz-executor402 Not tainted 6.1.84-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc900039ffcc8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffea0001c519c0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffea0001c519c0 RDI: ffff88807012ebb8
RBP: 0000000000000000 R08: ffffffff81bab066 R09: fffff9400038a339
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000001000
R13: 0000000000000000 R14: 0000000000001000 R15: ffffffffffffffff
FS:  0000555556a88380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000025854000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ntfs_sparse_cluster+0x718/0xa20 fs/ntfs3/file.c:335
 ntfs_fallocate+0xa70/0x1020 fs/ntfs3/file.c:727
 vfs_fallocate+0x547/0x6b0 fs/open.c:323
 ksys_fallocate fs/open.c:346 [inline]
 __do_sys_fallocate fs/open.c:354 [inline]
 __se_sys_fallocate fs/open.c:352 [inline]
 __x64_sys_fallocate+0xb9/0x100 fs/open.c:352
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f9a2a457679
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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:00007ffc0052c8f8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007ffc0052cac8 RCX: 00007f9a2a457679
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f9a2a4e9610 R08: 00007ffc0052cac8 R09: 00007ffc0052cac8
R10: 0000000000000523 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc0052cab8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0000000000000000 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc900039ffcc8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffea0001c519c0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffea0001c519c0 RDI: ffff88807012ebb8
RBP: 0000000000000000 R08: ffffffff81bab066 R09: fffff9400038a339
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000001000
R13: 0000000000000000 R14: 0000000000001000 R15: ffffffffffffffff
FS:  0000555556a88380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000025854000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (375):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/09 17:38 linux-6.1.y 347385861c50 f3234354 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/12/31 13:02 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/14 23:55 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/05/07 05:43 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 BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/06/06 19:56 linux-6.1.y 76ba310227d2 a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/06/05 07:00 linux-6.1.y d2869ace6eeb a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/06/04 23:18 linux-6.1.y d2869ace6eeb a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/05/24 02:57 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/07/07 18:15 linux-6.1.y 7753af06eebf 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/07/07 16:41 linux-6.1.y 7753af06eebf 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/07/06 07:00 linux-6.1.y 7753af06eebf 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/07/04 23:51 linux-6.1.y 99e6a620de00 3f2748a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/06/29 12:08 linux-6.1.y 99e6a620de00 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/06/21 14:40 linux-6.1.y eb44d83053d6 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/06/20 01:02 linux-6.1.y eb44d83053d6 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/06/08 01:40 linux-6.1.y 88690811da69 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/06/06 11:08 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/06/05 22:17 linux-6.1.y 88690811da69 5aa1a7c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/06/03 08:14 linux-6.1.y 88690811da69 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/26 04:54 linux-6.1.y 88690811da69 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/22 18:17 linux-6.1.y 4078fa637fcd 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/22 09:08 linux-6.1.y 4078fa637fcd 1014eca7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/19 16:21 linux-6.1.y 4078fa637fcd c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/16 07:30 linux-6.1.y 909ba1f1b414 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/13 17:17 linux-6.1.y 909ba1f1b414 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/13 01:13 linux-6.1.y 909ba1f1b414 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/12 22:14 linux-6.1.y 909ba1f1b414 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/12 05:06 linux-6.1.y 909ba1f1b414 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/11 21:30 linux-6.1.y 909ba1f1b414 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/11 16:59 linux-6.1.y 909ba1f1b414 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/11 14:18 linux-6.1.y 909ba1f1b414 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/11 14:01 linux-6.1.y 909ba1f1b414 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/08 14:45 linux-6.1.y 909ba1f1b414 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/08 06:19 linux-6.1.y 909ba1f1b414 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/06 00:57 linux-6.1.y 909ba1f1b414 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/05 11:52 linux-6.1.y 909ba1f1b414 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/04 22:23 linux-6.1.y 909ba1f1b414 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/04 20:27 linux-6.1.y 909ba1f1b414 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/04 09:31 linux-6.1.y 909ba1f1b414 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/05/04 06:32 linux-6.1.y 909ba1f1b414 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/30 08:13 linux-6.1.y dcbc050cb0d3 f10afd69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/29 01:49 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/29 00:31 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/28 13:12 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/27 23:45 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/27 21:31 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/25 23:46 linux-6.1.y 6741e066ec76 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/23 04:24 linux-6.1.y 6741e066ec76 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/20 07:06 linux-6.1.y 6741e066ec76 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/15 21:42 linux-6.1.y cd5d98c0556c b9af7e61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/15 05:02 linux-6.1.y cd5d98c0556c c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/13 06:39 linux-6.1.y bf1e3b1cb1e0 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2024/04/12 10:50 linux-6.1.y bf1e3b1cb1e0 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/03/15 20:23 linux-6.1.y 6449a0ba6843 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
* Struck through repros no longer work on HEAD.