diff options
author | Dave Voutila <dv@cvs.openbsd.org> | 2021-09-05 13:13:32 +0000 |
---|---|---|
committer | Dave Voutila <dv@cvs.openbsd.org> | 2021-09-05 13:13:32 +0000 |
commit | 9bed276b3acd69e5f43f786ef8c4fc00f1eaa6f6 (patch) | |
tree | cb890e9ee1ebb25c6f3717bab597f5c5795af770 /sys/dev/usb/if_aue.c | |
parent | d89b9762bad2ed640923b056d6fcddd0a0e33fd3 (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