syzbot


general protection fault in ntfs_update_mftmirr

Status: fixed on 2023/02/24 13:50
Labels: ntfs3 (incorrect?)
Reported-by: syzbot+c95173762127ad76a824@syzkaller.appspotmail.com
Fix commit: 321460ca3b55 fs/ntfs3: Fix NULL deref in ntfs_update_mftmirr
First crash: 410d, last: 286d

Cause bisection: failed (error log, bisect log)
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 5.19 000/365] 5.19.4-rc1 review 384 (384) 2022/08/29 09:33
[PATCH 5.15 000/244] 5.15.63-rc1 review 247 (247) 2022/08/23 21:46
[PATCH 1/2] ntfs3: fix NULL deref in ntfs_update_mftmirr 5 (5) 2022/07/05 13:34
[syzbot] general protection fault in ntfs_update_mftmirr 1 (3) 2022/04/21 20:42
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/04/21 20:26 15m paskripkin@gmail.com patch upstream OK

Sample crash report:
loop0: detected capacity change from 0 to 264192
ntfs3: Unknown parameter 'iochvrset'
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 PID: 3608 Comm: syz-executor383 Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:ntfs_update_mftmirr+0x51/0x6a0 fs/ntfs3/fsntfs.c:834
Code: 48 c1 e8 03 80 3c 18 00 74 08 4c 89 f7 e8 57 c6 17 ff 49 8b 06 48 89 44 24 18 48 8d 68 18 48 89 e8 48 c1 e8 03 48 89 44 24 40 <80> 3c 18 00 74 08 48 89 ef e8 31 c6 17 ff 48 89 6c 24 10 48 8b 45
RSP: 0018:ffffc90002fefc70 EFLAGS: 00010206
RAX: 0000000000000003 RBX: dffffc0000000000 RCX: ffff888027265880
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880768ec000
RBP: 0000000000000018 R08: dffffc0000000000 R09: ffff8880768ec290
R10: ffffed100ed1d855 R11: 1ffff1100ed1d852 R12: ffff88807dbccc00
R13: dffffc0000000000 R14: ffff8880768ec000 R15: dffffc0000000000
FS:  0000555555a49300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd36392000 CR3: 0000000074655000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 put_ntfs+0x1ed/0x2a0 fs/ntfs3/super.c:463
 ntfs_fs_free+0x6a/0xe0 fs/ntfs3/super.c:1365
 put_fs_context+0x119/0x7a0 fs/fs_context.c:469
 do_new_mount+0x2b4/0xad0 fs/namespace.c:3044
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff0a88b923a
Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 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:00007ffd36391318 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd36391370 RCX: 00007ff0a88b923a
RDX: 0000000020001480 RSI: 00000000200014c0 RDI: 00007ffd36391330
RBP: 00007ffd36391330 R08: 00007ffd36391370 R09: 0000000800000015
R10: 0000000000000008 R11: 0000000000000286 R12: 0000000000000008
R13: 0000000020002a00 R14: 0000000000000004 R15: 0000000000000003
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ntfs_update_mftmirr+0x51/0x6a0 fs/ntfs3/fsntfs.c:834
Code: 48 c1 e8 03 80 3c 18 00 74 08 4c 89 f7 e8 57 c6 17 ff 49 8b 06 48 89 44 24 18 48 8d 68 18 48 89 e8 48 c1 e8 03 48 89 44 24 40 <80> 3c 18 00 74 08 48 89 ef e8 31 c6 17 ff 48 89 6c 24 10 48 8b 45
RSP: 0018:ffffc90002fefc70 EFLAGS: 00010206
RAX: 0000000000000003 RBX: dffffc0000000000 RCX: ffff888027265880
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880768ec000
RBP: 0000000000000018 R08: dffffc0000000000 R09: ffff8880768ec290
R10: ffffed100ed1d855 R11: 1ffff1100ed1d852 R12: ffff88807dbccc00
R13: dffffc0000000000 R14: ffff8880768ec000 R15: dffffc0000000000
FS:  0000555555a49300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005d84c8 CR3: 0000000074655000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 c1 e8 03          	shr    $0x3,%rax
   4:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)
   8:	74 08                	je     0x12
   a:	4c 89 f7             	mov    %r14,%rdi
   d:	e8 57 c6 17 ff       	callq  0xff17c669
  12:	49 8b 06             	mov    (%r14),%rax
  15:	48 89 44 24 18       	mov    %rax,0x18(%rsp)
  1a:	48 8d 68 18          	lea    0x18(%rax),%rbp
  1e:	48 89 e8             	mov    %rbp,%rax
  21:	48 c1 e8 03          	shr    $0x3,%rax
  25:	48 89 44 24 40       	mov    %rax,0x40(%rsp)
* 2a:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 ef             	mov    %rbp,%rdi
  33:	e8 31 c6 17 ff       	callq  0xff17c669
  38:	48 89 6c 24 10       	mov    %rbp,0x10(%rsp)
  3d:	48                   	rex.W
  3e:	8b                   	.byte 0x8b
  3f:	45                   	rex.RB

Crashes (6680):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2022/08/10 01:10 upstream 200e340f2196 c2a623d6 .config strace log report syz C ci-upstream-kasan-gce-smack-root general protection fault in ntfs_update_mftmirr
2022/04/21 06:00 upstream b253435746d9 d4befee1 .config console log report syz C ci-upstream-kasan-gce-smack-root general protection fault in ntfs_update_mftmirr
2022/08/18 17:29 upstream 274a2eebf80c d58e263f .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in ntfs_update_mftmirr
2022/08/18 16:22 upstream 274a2eebf80c d58e263f .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in ntfs_update_mftmirr
2022/04/21 03:55 upstream b253435746d9 d4befee1 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in ntfs_update_mftmirr
2022/08/23 09:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/23 08:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/23 07:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/23 06:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/23 04:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/23 03:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/23 02:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/23 00:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 23:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 22:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 21:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 20:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 19:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 18:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 17:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 17:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 16:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 14:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 12:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 11:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 10:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 09:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 09:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 08:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 07:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 06:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 05:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 04:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 03:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 02:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 02:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/22 00:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 23:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 23:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 21:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 21:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 20:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 20:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 19:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 18:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 17:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 15:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 15:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 14:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 13:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 12:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 11:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
2022/08/21 10:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in ntfs_update_mftmirr
* Struck through repros no longer work on HEAD.