Re: [PATCH v3 5/7] pcie_sriov: Validate NumVFs

2024-02-13 Thread Akihiko Odaki
On 2024/02/13 19:59, Michael S. Tsirkin wrote: On Mon, Feb 12, 2024 at 07:20:33PM +0900, Akihiko Odaki wrote: The guest may write NumVFs greater than TotalVFs and that can lead to buffer overflow in VF implementations. Fixes: 7c0fa8dff811 ("pcie: Add support for Single Root I/O Virtualization

Re: [PATCH v3 5/7] pcie_sriov: Validate NumVFs

2024-02-13 Thread Michael S. Tsirkin
On Mon, Feb 12, 2024 at 07:20:33PM +0900, Akihiko Odaki wrote: > The guest may write NumVFs greater than TotalVFs and that can lead > to buffer overflow in VF implementations. > > Fixes: 7c0fa8dff811 ("pcie: Add support for Single Root I/O Virtualization > (SR/IOV)") > Signed-off-by: Akihiko Odak

[PATCH v3 5/7] pcie_sriov: Validate NumVFs

2024-02-12 Thread Akihiko Odaki
The guest may write NumVFs greater than TotalVFs and that can lead to buffer overflow in VF implementations. Fixes: 7c0fa8dff811 ("pcie: Add support for Single Root I/O Virtualization (SR/IOV)") Signed-off-by: Akihiko Odaki --- hw/pci/pcie_sriov.c | 3 +++ 1 file changed, 3 insertions(+) diff