syzbot


general protection fault in start_creating

Status: fixed on 2020/07/17 17:58
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+705f4401d5a93a59b87d@syzkaller.appspotmail.com
Fix commit: d56f5136b010 KVM: let kvm_destroy_vm_debugfs clean up vCPU debugfs directories
First crash: 1486d, last: 1454d
Cause bisection: introduced by (bisect log) :
commit 63d04348371b7ea4a134bcf47c79763d969e9168
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: Tue Mar 31 22:42:22 2020 +0000

  KVM: x86: move kvm_create_vcpu_debugfs after last failure point

Crash: general protection fault in start_creating (log)
Repro: syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH] KVM: let kvm_destroy_vm_debugfs clean up vCPU debugfs directories 2 (2) 2020/06/08 08:22
[PATCH] KVM: let kvm_destroy_vm_debugfs clean up vCPU debugfs directories 1 (1) 2020/06/05 15:15
general protection fault in start_creating 2 (4) 2020/06/05 13:52

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000002a: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000150-0x0000000000000157]
CPU: 0 PID: 19367 Comm: syz-executor088 Not tainted 5.7.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0xe1b/0x4a70 kernel/locking/lockdep.c:4250
Code: 91 0a 41 be 01 00 00 00 0f 86 ce 0b 00 00 89 05 4b 9a 91 0a e9 c3 0b 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 d2 48 c1 ea 03 <80> 3c 02 00 0f 85 57 2e 00 00 49 81 3a c0 74 c0 8b 0f 84 b0 f2 ff
RSP: 0018:ffffc90004b477b8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 000000000000002a RSI: 0000000000000000 RDI: 0000000000000150
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000150 R11: 0000000000000001 R12: 0000000000000000
R13: ffff8880a77c2200 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f9f3c6e5700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004d5bb0 CR3: 00000000821f9000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4959
 down_write+0x8d/0x150 kernel/locking/rwsem.c:1531
 inode_lock include/linux/fs.h:799 [inline]
 start_creating+0xa8/0x250 fs/debugfs/inode.c:334
 __debugfs_create_file+0x62/0x400 fs/debugfs/inode.c:383
 kvm_arch_create_vcpu_debugfs+0x9f/0x200 arch/x86/kvm/debugfs.c:52
 kvm_create_vcpu_debugfs arch/x86/kvm/../../../virt/kvm/kvm_main.c:3012 [inline]
 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:3089 [inline]
 kvm_vm_ioctl+0x1c0b/0x2440 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3617
 vfs_ioctl fs/ioctl.c:47 [inline]
 ksys_ioctl+0x11a/0x180 fs/ioctl.c:771
 __do_sys_ioctl fs/ioctl.c:780 [inline]
 __se_sys_ioctl fs/ioctl.c:778 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:778
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x44e5d9
Code: e8 7c e6 ff ff 48 83 c4 18 c3 0f 1f 80 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 0f 83 1b 05 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f9f3c6e4ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006eaa08 RCX: 000000000044e5d9
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 00000000006eaa00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006eaa0c
R13: 00007ffe67678f9f R14: 00007f9f3c6e59c0 R15: 20c49ba5e353f7cf
Modules linked in:
---[ end trace b7d92d5fd0bd5c5f ]---
RIP: 0010:__lock_acquire+0xe1b/0x4a70 kernel/locking/lockdep.c:4250
Code: 91 0a 41 be 01 00 00 00 0f 86 ce 0b 00 00 89 05 4b 9a 91 0a e9 c3 0b 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 d2 48 c1 ea 03 <80> 3c 02 00 0f 85 57 2e 00 00 49 81 3a c0 74 c0 8b 0f 84 b0 f2 ff
RSP: 0018:ffffc90004b477b8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 000000000000002a RSI: 0000000000000000 RDI: 0000000000000150
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000150 R11: 0000000000000001 R12: 0000000000000000
R13: ffff8880a77c2200 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f9f3c6e5700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004d5bb0 CR3: 00000000821f9000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (106):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/04 12:28 upstream cb8e59cc8720 b0d1c0d5 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/06/06 06:16 upstream 7ae77150d94d f243c88f .config console log report syz ci-upstream-kasan-gce-root
2020/06/04 13:43 upstream cb8e59cc8720 b0d1c0d5 .config console log report syz ci-upstream-kasan-gce-smack-root
2020/06/04 11:54 upstream cb8e59cc8720 b0d1c0d5 .config console log report syz ci-upstream-kasan-gce-root
2020/05/30 12:00 linux-next e7b08814b16b 954bd312 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2020/05/24 18:35 linux-next c11d28ab4a69 bd28eb9d .config console log report syz ci-upstream-linux-next-kasan-gce-root
2020/06/25 21:37 upstream 7ae77150d94d f9147b08 .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/25 14:42 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-root
2020/06/25 11:01 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce
2020/06/25 09:13 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/25 08:49 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-smack-root
2020/06/25 05:53 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-smack-root
2020/06/25 01:37 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce
2020/06/24 22:23 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce
2020/06/24 18:43 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/24 17:22 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/24 15:33 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-root
2020/06/24 12:17 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-smack-root
2020/06/24 10:53 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce
2020/06/23 18:11 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-root
2020/06/23 16:47 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/22 01:26 upstream 7ae77150d94d 4f2acff9 .config console log report ci-upstream-kasan-gce
2020/06/21 15:55 upstream 7ae77150d94d 4f2acff9 .config console log report ci-upstream-kasan-gce
2020/06/20 08:41 upstream 7ae77150d94d 81abc331 .config console log report ci-upstream-kasan-gce-smack-root
2020/06/20 04:45 upstream 7ae77150d94d 81abc331 .config console log report ci-upstream-kasan-gce-smack-root
2020/06/19 09:41 upstream 7ae77150d94d bc258b50 .config console log report ci-upstream-kasan-gce
2020/06/18 21:38 upstream 7ae77150d94d d45a4d69 .config console log report ci-upstream-kasan-gce-smack-root
2020/06/18 19:51 upstream 7ae77150d94d d45a4d69 .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/18 16:58 upstream 7ae77150d94d d45a4d69 .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/18 03:02 upstream 7ae77150d94d b9f3810b .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/18 01:29 upstream 7ae77150d94d b9f3810b .config console log report ci-upstream-kasan-gce-root
2020/06/17 15:08 upstream 7ae77150d94d b9f3810b .config console log report ci-upstream-kasan-gce
2020/06/16 21:30 upstream 7ae77150d94d 559fbe2d .config console log report ci-upstream-kasan-gce-root
2020/06/15 11:07 upstream 7ae77150d94d 8e3ab941 .config console log report ci-upstream-kasan-gce-smack-root
2020/06/14 14:46 upstream 7ae77150d94d 2a22c77a .config console log report ci-upstream-kasan-gce-smack-root
2020/06/13 13:44 upstream 7ae77150d94d f4724dd3 .config console log report ci-upstream-kasan-gce-smack-root
2020/06/13 08:42 upstream 7ae77150d94d f4724dd3 .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/12 23:09 upstream 7ae77150d94d df590254 .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/12 11:51 upstream 7ae77150d94d 58802067 .config console log report ci-upstream-kasan-gce
2020/06/12 10:29 upstream 7ae77150d94d 58802067 .config console log report ci-upstream-kasan-gce-smack-root
2020/06/12 07:29 upstream 7ae77150d94d 58802067 .config console log report ci-upstream-kasan-gce-smack-root
2020/06/12 04:55 upstream 7ae77150d94d 58802067 .config console log report ci-upstream-kasan-gce-smack-root
2020/06/11 21:40 upstream 7ae77150d94d 3ab7a05a .config console log report ci-upstream-kasan-gce-root
2020/06/11 18:41 upstream 7ae77150d94d 3ab7a05a .config console log report ci-upstream-kasan-gce-smack-root
2020/06/11 17:08 upstream 7ae77150d94d 3ab7a05a .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/11 05:38 upstream 7ae77150d94d 3ab7a05a .config console log report ci-upstream-kasan-gce-root
2020/06/11 01:33 upstream 7ae77150d94d a6f7998d .config console log report ci-upstream-kasan-gce-smack-root
2020/06/11 00:17 upstream 7ae77150d94d a6f7998d .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/10 22:57 upstream 7ae77150d94d a6f7998d .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/10 12:18 upstream 7ae77150d94d 860c4de9 .config console log report ci-upstream-kasan-gce
2020/06/09 23:37 upstream 7ae77150d94d 092934c1 .config console log report ci-upstream-kasan-gce-root
2020/06/25 12:46 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-386
2020/06/25 04:27 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-386
2020/06/13 12:24 upstream 7ae77150d94d f4724dd3 .config console log report ci-upstream-kasan-gce-386
2020/06/10 21:52 upstream 7ae77150d94d a6f7998d .config console log report ci-upstream-kasan-gce-386
2020/06/04 04:30 linux-next e7b08814b16b a5ce5de0 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/05/24 18:07 linux-next c11d28ab4a69 bd28eb9d .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.