summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_aue.c
diff options
context:
space:
mode:
authorDave Voutila <dv@cvs.openbsd.org>2021-09-05 13:13:32 +0000
committerDave Voutila <dv@cvs.openbsd.org>2021-09-05 13:13:32 +0000
commit9bed276b3acd69e5f43f786ef8c4fc00f1eaa6f6 (patch)
treecb890e9ee1ebb25c6f3717bab597f5c5795af770 /sys/dev/usb/if_aue.c
parentd89b9762bad2ed640923b056d6fcddd0a0e33fd3 (diff)
vmm(4): fix vcpu locking issues reported by syzbot
Syzbot found 3 issues related to the new vcpu lock. This diff adds a write lock to vm_rwregs (needed on VMX as vmread instructions require taking ownership of the vcpu to load the VMCS) and prevents locking the vcpu in vm_run if we fail the cas operation for toggling vcpu state. In the future, we can push the locking in vm_rwregs on AMD SVM systems. The panics in question: panic: rw_enter: vcpulock locking against myself panic: lock (rwlock) vcpulock not locked panic: vcpulock: lock not held Reported-by: syzbot+1dab11e14aa7a159cadf@syzkaller.appspotmail.com Reported-by: syzbot+36244e105daffa1a81b6@syzkaller.appspotmail.com Reported-by: syzbot+c78b5644c7dc3d9b689a@syzkaller.appspotmail.com ok mlarkin@
Diffstat (limited to 'sys/dev/usb/if_aue.c')
0 files changed, 0 insertions, 0 deletions