CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2025/06/24 16:01:10

Modified files:
        usr.sbin/vmd   : pci.c 

Log message:
Prevent vmd(8) guests from reading outside pci config space.

vmd emulates a pci host bridge and attached devices. Guests could
read and write beyond a device's configuration space, clobbering
device state or worse. They could also do this for non-existent
devices on the pci host bridge.

The PCI spec says to return all 1's when accessing non-existent
devices, so make vmd's emulation to do the same for these invalid
reads. For invalid writes, drop them.

ok mlarkin@

Reply via email to