CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2021/09/13 16:16:28

Modified files:
        sys/arch/amd64/amd64: vmm.c 
        sys/arch/amd64/include: vmmvar.h 

Log message:
vmm(4): add limit to number of vcpus

After fixing previous syzbot issues related to lock contention, the reproducer 
code managed to hit an issue where it can exhaust kernel memory by allocating 
vcpus. Since each vcpu (regardless if it's SVM or VMX-capable) requires wiring 
some number of pages of memory, it was possible to starve other parts of the 
kernel.

This change limits the total number of vcpus to 512, a conservative number 
given vmm(4) only supports single vcpu guests at the moment.

ok mlarkin@

Reply via email to