mbox series

[0/2] PCI/MSI: Hardening fixes

Message ID 20230119170633.40944-1-alexander.shishkin@linux.intel.com (mailing list archive)
Headers show
Series PCI/MSI: Hardening fixes | expand

Message

Alexander Shishkin Jan. 19, 2023, 5:06 p.m. UTC
Hi,

Here are 2 hardening fixes around MSIX table size/offset handling,
aiming to prevent a malicious device or VMM from triggering bugs by
supplying bogus values.

Alexander Shishkin (2):
  PCI/MSI: Cache the MSIX table size
  PCI/MSI: Validate device supplied MSI table offset and size

 drivers/pci/msi/api.c |  7 ++++++-
 drivers/pci/msi/msi.c | 12 +++++++++---
 include/linux/pci.h   |  1 +
 3 files changed, 16 insertions(+), 4 deletions(-)