CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2021/09/05 07:13:31
Modified files:
sys/arch/amd64/amd64: vmm.c
Log message:
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: [email protected]
Reported-by: [email protected]
Reported-by: [email protected]
ok mlarkin@