[PATCH v2 0/2] Ensure PCI configuration access is within bounds

P J P posted 2 patches 3 years, 11 months ago
Test docker-mingw@fedora passed
Test checkpatch passed
Test asan passed
Test docker-quick@centos7 passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200603202251.1199170-1-ppandit@redhat.com
hw/display/ati.c | 5 ++++-
hw/pci/pci.c     | 2 ++
2 files changed, 6 insertions(+), 1 deletion(-)
[PATCH v2 0/2] Ensure PCI configuration access is within bounds
Posted by P J P 3 years, 11 months ago
From: Prasad J Pandit <pjp@fedoraproject.org>

Hello,

This patch series fixes

1. While reading PCI configuration bytes, a guest may send an address towards
   the end of the configuration space. It may lead to an OOB access issue.
   Add check to ensure 'addr + size' is within bounds.

2. Assert that PCI configuration access is within bounds.


Thank you.
--
Prasad J Pandit (2):
  ait-vga: check address before reading configuration bytes
  pci: ensure configuration access is within bounds

 hw/display/ati.c | 5 ++++-
 hw/pci/pci.c     | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

-- 
2.26.2