syzbot


general protection fault in __dentry_path (2)

Status: fixed on 2023/02/24 13:50
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+5c550b7ec6a56f70c32d@syzkaller.appspotmail.com
Fix commit: 5c697c367a66 KVM: Initialize debugfs_dentry when a VM is created to avoid NULL deref
First crash: 717d, last: 703d
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 5.15 000/230] 5.15.54-rc1 review 244 (244) 2023/01/15 08:10
[PATCH] KVM: Initialize debugfs_dentry when a VM is created to avoid NULL deref 3 (3) 2022/04/20 10:02
[syzbot] general protection fault in __dentry_path (2) 0 (1) 2022/04/15 05:01
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __dentry_path fs C 2082 1851d 1884d 11/26 fixed on 2019/03/06 07:43

Sample crash report:
L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html for details.
general protection fault, probably for non-canonical address 0xdffffc000000000a: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000050-0x0000000000000057]
CPU: 1 PID: 3586 Comm: syz-executor395 Not tainted 5.18.0-rc1-next-20220411-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__dentry_path+0x215/0x740 fs/d_path.c:342
Code: be 09 31 ff 41 89 ed 41 83 e5 01 44 89 ee e8 22 fe 96 ff 45 85 ed 75 ce e8 f8 fb 96 ff 48 8b 44 24 20 89 6c 24 18 48 c1 e8 03 <42> 80 3c 30 00 0f 85 d2 04 00 00 48 8b 44 24 10 83 e5 01 89 6c 24
RSP: 0018:ffffc9000376fc30 EFLAGS: 00010206
RAX: 000000000000000a RBX: ffffffff8ba14680 RCX: 0000000000000000
RDX: ffff888025001d40 RSI: ffffffff81e30a28 RDI: 0000000000000003
RBP: 0000000000000a8c R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff81e309e5 R11: 0000000000000001 R12: 0000000000000fff
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88805610cfff
FS:  000055555682c300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561836ba9d20 CR3: 000000001d922000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 dentry_path_raw+0xc2/0x110 fs/d_path.c:367
 kvm_uevent_notify_change.part.0+0x215/0x450 arch/x86/kvm/../../../virt/kvm/kvm_main.c:5492
 kvm_uevent_notify_change arch/x86/kvm/../../../virt/kvm/kvm_main.c:5459 [inline]
 kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:1198 [inline]
 kvm_put_kvm+0xf7/0xb70 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1264
 kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:4795 [inline]
 kvm_dev_ioctl+0x85d/0x1c70 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4811
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f8a6670d009
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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:00007ffded420398 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f8a6670d009
RDX: 0000000000000000 RSI: 000000000000ae01 RDI: 0000000000000003
RBP: 00007f8a666d0ff0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8a666d1080
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__dentry_path+0x215/0x740 fs/d_path.c:342
Code: be 09 31 ff 41 89 ed 41 83 e5 01 44 89 ee e8 22 fe 96 ff 45 85 ed 75 ce e8 f8 fb 96 ff 48 8b 44 24 20 89 6c 24 18 48 c1 e8 03 <42> 80 3c 30 00 0f 85 d2 04 00 00 48 8b 44 24 10 83 e5 01 89 6c 24
RSP: 0018:ffffc9000376fc30 EFLAGS: 00010206
RAX: 000000000000000a RBX: ffffffff8ba14680 RCX: 0000000000000000
RDX: ffff888025001d40 RSI: ffffffff81e30a28 RDI: 0000000000000003
RBP: 0000000000000a8c R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff81e309e5 R11: 0000000000000001 R12: 0000000000000fff
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88805610cfff
FS:  000055555682c300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561836ba0d90 CR3: 000000001d922000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	be 09 31 ff 41       	mov    $0x41ff3109,%esi
   5:	89 ed                	mov    %ebp,%ebp
   7:	41 83 e5 01          	and    $0x1,%r13d
   b:	44 89 ee             	mov    %r13d,%esi
   e:	e8 22 fe 96 ff       	callq  0xff96fe35
  13:	45 85 ed             	test   %r13d,%r13d
  16:	75 ce                	jne    0xffffffe6
  18:	e8 f8 fb 96 ff       	callq  0xff96fc15
  1d:	48 8b 44 24 20       	mov    0x20(%rsp),%rax
  22:	89 6c 24 18          	mov    %ebp,0x18(%rsp)
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	0f 85 d2 04 00 00    	jne    0x507
  35:	48 8b 44 24 10       	mov    0x10(%rsp),%rax
  3a:	83 e5 01             	and    $0x1,%ebp
  3d:	89                   	.byte 0x89
  3e:	6c                   	insb   (%dx),%es:(%rdi)
  3f:	24                   	.byte 0x24

Crashes (174):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/11 11:57 linux-next d12d7e1cfe38 e22c3da3 .config console log report syz C ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/11 09:21 linux-next d12d7e1cfe38 e22c3da3 .config console log report syz ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/11 09:02 linux-next d12d7e1cfe38 e22c3da3 .config console log report syz ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/22 23:45 upstream d569e86915b7 131df97d .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in __dentry_path
2022/04/22 08:40 upstream 59f0c2447e25 2738b391 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/21 22:11 upstream b253435746d9 2738b391 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/21 18:43 upstream b253435746d9 2738b391 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/21 13:05 upstream b253435746d9 d4befee1 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in __dentry_path
2022/04/21 12:20 upstream b253435746d9 d4befee1 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/21 09:34 upstream b253435746d9 d4befee1 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in __dentry_path
2022/04/21 05:50 upstream b253435746d9 d4befee1 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in __dentry_path
2022/04/21 01:59 upstream b253435746d9 d4befee1 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/21 00:00 upstream 559089e0a93d 160a3f31 .config console log report info ci-qemu-upstream general protection fault in __dentry_path
2022/04/20 21:58 upstream 559089e0a93d 160a3f31 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/20 19:32 upstream 559089e0a93d 160a3f31 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/20 10:59 upstream b7f73403a3e9 7d7bc738 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/20 05:47 upstream b7f73403a3e9 7d7bc738 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in __dentry_path
2022/04/20 01:09 upstream 559089e0a93d 7d7bc738 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in __dentry_path
2022/04/19 20:47 upstream b7f73403a3e9 c334415e .config console log report info ci-qemu-upstream general protection fault in __dentry_path
2022/04/19 13:24 upstream b2d229d4ddb1 c334415e .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/19 07:36 upstream b2d229d4ddb1 8bcc32a6 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in __dentry_path
2022/04/19 02:45 upstream b2d229d4ddb1 8bcc32a6 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/19 01:24 upstream b2d229d4ddb1 8bcc32a6 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in __dentry_path
2022/04/18 09:24 upstream b2d229d4ddb1 8bcc32a6 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/18 07:55 upstream b2d229d4ddb1 8bcc32a6 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/18 04:55 upstream b2d229d4ddb1 8bcc32a6 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/17 14:30 upstream a2c29ccd9477 8bcc32a6 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/17 13:22 upstream a2c29ccd9477 8bcc32a6 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in __dentry_path
2022/04/17 05:24 upstream 90ea17a9e27b 8bcc32a6 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/17 02:49 upstream 90ea17a9e27b 8bcc32a6 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in __dentry_path
2022/04/17 01:24 upstream 90ea17a9e27b 8bcc32a6 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/16 07:58 upstream 59250f8a7f3a 8bcc32a6 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in __dentry_path
2022/04/16 05:56 upstream 59250f8a7f3a 8bcc32a6 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/16 04:27 upstream 59250f8a7f3a 8bcc32a6 .config console log report info ci-upstream-kasan-gce general protection fault in __dentry_path
2022/04/15 21:47 upstream 028192fea1de 8bcc32a6 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in __dentry_path
2022/04/22 12:59 upstream d569e86915b7 2738b391 .config console log report info ci-upstream-kasan-gce-386 general protection fault in __dentry_path
2022/04/22 06:10 upstream 59f0c2447e25 2738b391 .config console log report info ci-upstream-kasan-gce-386 general protection fault in __dentry_path
2022/04/21 14:20 upstream b253435746d9 d4befee1 .config console log report info ci-upstream-kasan-gce-386 general protection fault in __dentry_path
2022/04/21 09:35 upstream b253435746d9 d4befee1 .config console log report info ci-qemu-upstream-386 general protection fault in __dentry_path
2022/04/21 03:35 upstream b253435746d9 d4befee1 .config console log report info ci-upstream-kasan-gce-386 general protection fault in __dentry_path
2022/04/19 21:18 upstream b7f73403a3e9 c334415e .config console log report info ci-qemu-upstream-386 general protection fault in __dentry_path
2022/04/19 17:03 upstream b2d229d4ddb1 c334415e .config console log report info ci-qemu-upstream-386 general protection fault in __dentry_path
2022/04/17 23:00 upstream a2c29ccd9477 8bcc32a6 .config console log report info ci-qemu-upstream-386 general protection fault in __dentry_path
2022/04/17 21:59 upstream a2c29ccd9477 8bcc32a6 .config console log report info ci-upstream-kasan-gce-386 general protection fault in __dentry_path
2022/04/17 18:19 upstream a2c29ccd9477 8bcc32a6 .config console log report info ci-upstream-kasan-gce-386 general protection fault in __dentry_path
2022/04/16 18:48 upstream 59250f8a7f3a 8bcc32a6 .config console log report info ci-upstream-kasan-gce-386 general protection fault in __dentry_path
2022/04/25 13:21 linux-next f1244c81da13 c889aef9 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/24 06:49 linux-next f1244c81da13 131df97d .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/24 01:08 linux-next f1244c81da13 131df97d .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/21 10:44 linux-next f1244c81da13 d4befee1 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/18 21:06 linux-next 40354149f4d7 8bcc32a6 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/18 03:00 linux-next 40354149f4d7 8bcc32a6 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/17 15:59 linux-next 40354149f4d7 8bcc32a6 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/16 16:41 linux-next 40354149f4d7 8bcc32a6 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/11 04:50 linux-next d12d7e1cfe38 e22c3da3 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in __dentry_path
2022/04/19 03:40 upstream b2d229d4ddb1 8bcc32a6 .config console log report info ci-qemu2-arm64 BUG: unable to handle kernel paging request in __dentry_path
* Struck through repros no longer work on HEAD.