mbox series

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

Message ID 20200603202251.1199170-1-ppandit@redhat.com
Headers show
Series Ensure PCI configuration access is within bounds | expand

Message

Prasad Pandit June 3, 2020, 8:22 p.m. UTC
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(-)