
Hi Andrew,
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull ascull@google.com wrote:
The virtio PCI drivers forgo a number of consistency checks, particularly around pointer validation and bounds checking. This series focuses on the modern driver to add those checks.
The start of the series adds and fixes some basic bounds checks. Later patches ensure PCI addresses fall within the expected regions rather than any arbitrary address. This is acheived by introducing range parameters to a few of the dm_pci_* functions that allow the ranges to be checked.
The series also adds a few new configs to allow parts of virtio and PCI to be disabled where the features may be unused and the current implementations don't have the needed consistencty checks.
Changelog: v2:
- Refactor dm_pci_* functions, not adding new ones
- Reorder patches per request in v1
I believe some patches have bisectability issues. CI does not complain such, but you can use buildman to catch those.
Regards, Bin