syzbot


BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster

Status: upstream: reported C repro on 2023/03/15 20:30
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+7bdfe1182e4c50d2a21d@syzkaller.appspotmail.com
First crash: 263d, last: 5d12h
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/07 linux-5.15.y (ToT) 8a7f2a5c5aa1 C [report] BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/05/07 upstream (ToT) fc4354c6e5c2 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster origin:lts-only C done 259 43d 263d 0/3 upstream: reported C repro on 2023/03/15 20:23
upstream BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster ntfs3 C error done 11 348d 350d 24/25 fixed on 2023/02/24 13:51
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/09/10 18:27 4h39m fix candidate upstream job log (1)

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 18706067 P4D 18706067 PUD 18567067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3503 Comm: syz-executor307 Not tainted 5.15.131-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc9000272fcc8 EFLAGS: 00010282
RAX: 1ffffffff1575cc7 RBX: ffffea0001d116c0 RCX: ffffffff8abae638
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffea0001d116c0
RBP: dffffc0000000000 R08: ffffffff81aae6c9 R09: fffff940003a22d9
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffea0001d116c0 R14: 0000000000000000 R15: ffffffffffffffff
FS:  0000555556ace380(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000000742ba000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ntfs_sparse_cluster+0x76e/0xbb0 fs/ntfs3/file.c:337
 ntfs_fallocate+0x7da/0xee0 fs/ntfs3/file.c:706
 vfs_fallocate+0x54a/0x6b0 fs/open.c:308
 ksys_fallocate fs/open.c:331 [inline]
 __do_sys_fallocate fs/open.c:339 [inline]
 __se_sys_fallocate fs/open.c:337 [inline]
 __x64_sys_fallocate+0xb9/0x100 fs/open.c:337
 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:0x7fdd67d7f7b9
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:00007fffcdde81b8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007fffcdde8388 RCX: 00007fdd67d7f7b9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007fdd67e11610 R08: 00007fffcdde8388 R09: 00007fffcdde8388
R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffcdde8378 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0427e8546fedbf57 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc9000272fcc8 EFLAGS: 00010282
RAX: 1ffffffff1575cc7 RBX: ffffea0001d116c0 RCX: ffffffff8abae638
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffea0001d116c0
RBP: dffffc0000000000 R08: ffffffff81aae6c9 R09: fffff940003a22d9
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffea0001d116c0 R14: 0000000000000000 R15: ffffffffffffffff
FS:  0000555556ace380(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000000742ba000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (334):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/08 09:09 linux-5.15.y aff03380bda4 72324844 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/05/07 04:26 linux-5.15.y 8a7f2a5c5aa1 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/05/30 07:00 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/05/30 05:15 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/05/29 22:08 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/05/21 22:49 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/21 18:26 linux-5.15.y 00c03985402e 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/18 19:50 linux-5.15.y 02e21884dcf2 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/17 14:01 linux-5.15.y 02e21884dcf2 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/16 09:10 linux-5.15.y 02e21884dcf2 f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/15 06:59 linux-5.15.y 02e21884dcf2 f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/13 12:28 linux-5.15.y 02e21884dcf2 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/13 11:19 linux-5.15.y 02e21884dcf2 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/11 07:15 linux-5.15.y 02e21884dcf2 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/09 23:01 linux-5.15.y 1edcec18cfb7 3c53c7d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/09 11:12 linux-5.15.y 1edcec18cfb7 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/09 09:47 linux-5.15.y 1edcec18cfb7 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/06 05:19 linux-5.15.y b911329317b4 db17ad9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/05 07:00 linux-5.15.y b911329317b4 b7d7ff54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/04 01:54 linux-5.15.y b911329317b4 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/03 10:35 linux-5.15.y b911329317b4 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/01 07:32 linux-5.15.y b911329317b4 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/30 21:23 linux-5.15.y b911329317b4 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/30 14:24 linux-5.15.y b911329317b4 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/30 09:53 linux-5.15.y b911329317b4 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/30 04:40 linux-5.15.y b911329317b4 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/27 23:33 linux-5.15.y b911329317b4 2895a507 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/27 19:09 linux-5.15.y b911329317b4 2895a507 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/27 15:33 linux-5.15.y b911329317b4 2895a507 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/27 11:28 linux-5.15.y b911329317b4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/26 20:33 linux-5.15.y b911329317b4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/26 01:44 linux-5.15.y b911329317b4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/24 14:06 linux-5.15.y b911329317b4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/24 13:04 linux-5.15.y b911329317b4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/24 12:43 linux-5.15.y b911329317b4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/22 21:41 linux-5.15.y 35ecaa3632bf 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/20 00:18 linux-5.15.y 35ecaa3632bf 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/19 22:18 linux-5.15.y 35ecaa3632bf 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/19 02:36 linux-5.15.y aff03380bda4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/17 05:58 linux-5.15.y aff03380bda4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/15 01:04 linux-5.15.y aff03380bda4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/14 08:18 linux-5.15.y aff03380bda4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/13 22:37 linux-5.15.y aff03380bda4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/13 21:23 linux-5.15.y aff03380bda4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/12 07:05 linux-5.15.y aff03380bda4 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/11/28 16:06 linux-5.15.y 2a910f4af54d 9fe51b7c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/11/04 02:52 linux-5.15.y 12952a23a5da 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/10/19 05:24 linux-5.15.y 02e21884dcf2 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/30 05:52 linux-5.15.y b911329317b4 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/25 23:23 linux-5.15.y b911329317b4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/09/21 22:14 linux-5.15.y 35ecaa3632bf 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
2023/03/15 20:29 linux-5.15.y 2ddbd0f967b3 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in ntfs_sparse_cluster
* Struck through repros no longer work on HEAD.