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: 267d, last: 47d
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 335 1d02h 267d 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 352d 354d 24/25 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 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 720f2067 P4D 720f2067 PUD 72d6b067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3545 Comm: syz-executor708 Not tainted 6.1.53-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc90003a7fcc8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffea0001e7a780 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffea0001e7a780 RDI: ffff8880700c7318
RBP: 0000000000000000 R08: ffffffff81b9e0b6 R09: fffff940003cf4f1
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000001000
R13: 0000000000000000 R14: 0000000000001000 R15: ffffffffffffffff
FS:  00005555573c2380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000077653000 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:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f631cdbd7b9
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:00007ffeed67b0e8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007ffeed67b2b8 RCX: 00007f631cdbd7b9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f631ce4f610 R08: 00007ffeed67b2b8 R09: 00007ffeed67b2b8
R10: 000000000000f105 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffeed67b2a8 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:ffffc90003a7fcc8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffea0001e7a780 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffea0001e7a780 RDI: ffff8880700c7318
RBP: 0000000000000000 R08: ffffffff81b9e0b6 R09: fffff940003cf4f1
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000001000
R13: 0000000000000000 R14: 0000000000001000 R15: ffffffffffffffff
FS:  00005555573c2380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000077653000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (259):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
2023/10/21 18:28 linux-6.1.y 7d24402875c7 361b23dc .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/10/20 12:03 linux-6.1.y 7d24402875c7 a42250d2 .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/10/17 13:51 linux-6.1.y adc4d740ad9e 342b9c55 .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/10/16 09:00 linux-6.1.y adc4d740ad9e f757a323 .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/10/15 13:03 linux-6.1.y 082280fe94a0 f757a323 .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/10/15 06:59 linux-6.1.y 082280fe94a0 f757a323 .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/10/13 12:31 linux-6.1.y 082280fe94a0 6388bc36 .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/10/13 11:10 linux-6.1.y 082280fe94a0 6388bc36 .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/10/12 06:40 linux-6.1.y 082280fe94a0 83165b57 .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/10/11 07:17 linux-6.1.y 082280fe94a0 83165b57 .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/10/10 17:15 linux-6.1.y ecda77b46871 c9be5398 .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/10/10 10:46 linux-6.1.y ecda77b46871 c9be5398 .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/10/10 01:12 linux-6.1.y ecda77b46871 3c53c7d9 .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/10/09 11:41 linux-6.1.y ecda77b46871 5e837c76 .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/10/09 11:14 linux-6.1.y ecda77b46871 5e837c76 .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/10/09 09:53 linux-6.1.y ecda77b46871 5e837c76 .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/10/07 15:50 linux-6.1.y ecda77b46871 5e837c76 .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/10/06 05:20 linux-6.1.y d23900f974e0 db17ad9f .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/10/05 07:00 linux-6.1.y d23900f974e0 b7d7ff54 .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/10/05 05:57 linux-6.1.y d23900f974e0 b7d7ff54 .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/10/04 21:18 linux-6.1.y d23900f974e0 b7d7ff54 .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/10/04 02:00 linux-6.1.y d23900f974e0 65faba36 .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/10/01 13:16 linux-6.1.y d23900f974e0 8e26a358 .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/10/01 08:08 linux-6.1.y d23900f974e0 8e26a358 .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/09/30 21:23 linux-6.1.y d23900f974e0 8e26a358 .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/09/30 15:21 linux-6.1.y d23900f974e0 8e26a358 .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/09/30 14:10 linux-6.1.y d23900f974e0 8e26a358 .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/09/30 04:36 linux-6.1.y d23900f974e0 8e26a358 .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/09/28 00:30 linux-6.1.y d23900f974e0 2895a507 .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/09/26 21:59 linux-6.1.y d23900f974e0 0b6a67ac .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/09/26 20:49 linux-6.1.y d23900f974e0 0b6a67ac .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/09/26 01:41 linux-6.1.y d23900f974e0 0b6a67ac .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/09/25 17:23 linux-6.1.y d23900f974e0 0b6a67ac .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/09/24 15:43 linux-6.1.y d23900f974e0 0b6a67ac .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/09/24 15:43 linux-6.1.y d23900f974e0 0b6a67ac .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/09/24 14:04 linux-6.1.y d23900f974e0 0b6a67ac .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/09/24 12:50 linux-6.1.y d23900f974e0 0b6a67ac .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/09/20 02:16 linux-6.1.y a356197db198 0b6a67ac .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/09/16 01:18 linux-6.1.y 09045dae0d90 0b6a67ac .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/09/15 18:34 linux-6.1.y 09045dae0d90 0b6a67ac .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/09/15 01:18 linux-6.1.y 09045dae0d90 0b6a67ac .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/09/14 23:31 linux-6.1.y 09045dae0d90 0b6a67ac .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/09/13 21:10 linux-6.1.y 09045dae0d90 0b6a67ac .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/09/13 07:25 linux-6.1.y 59b13c2b647e 59da8366 .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/09/13 06:14 linux-6.1.y 59b13c2b647e 59da8366 .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/09/11 09:49 linux-6.1.y 59b13c2b647e 6654cf89 .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/09/10 18:35 linux-6.1.y 59b13c2b647e 6654cf89 .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/09/09 12:02 linux-6.1.y 59b13c2b647e 6654cf89 .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.