PCI/VPD: pci_vpd_size() cleanups
Status from this message: I applied this to pci/vpd for v5.15.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 6 repliesApplied
- v15 patches 11 repliesSuperseded
Changes in v2 from the cover letter
- Incorporate Heiner's patch to reject VPD if first byte is 0x00 or 0xff
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | PCI/VPD: Correct diagnostic for VPD read failuredrivers/ | +2 | 0 replies | |
| 2/6 | PCI/VPD: Check Resource Item Names against those valid for typedrivers/ | +6 | 0 replies | |
| 3/6 | PCI/VPD: Treat initial 0xff as missing EEPROMdrivers/ | +8 | 1 reply | |
| 4/6 | PCI/VPD: Reject resource tags with invalid sizedrivers/ | +11 | 4 replies | |
| 5/6 | PCI/VPD: Don't check Large Resource Item Names for validitydrivers/ | +4 | 0 replies | |
| 6/6 | PCI/VPD: Allow access to valid parts of VPD if some is invaliddrivers/ | +7 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Hannes Reinecke |
|---|---|
| 1/6 | R-b |
| 2/6 | R-b |
| 3/6 | R-b |
| 4/6 | R-b |
| 5/6 | R-b |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] PCI/VPD: pci_vpd_size() cleanups
From: Bjorn Helgaas <[email protected]>
The basic idea is to validate VPD resource *size* without validating the actual content, since the kernel really doesn't care about the content.
Thanks very much for the feedback on v1, and I'd be glad for any additional feedback.
Follow-up to:
https://lore.kernel.org/r/[email protected]
Changes since v1:
- Incorporate Heiner's patch to reject VPD if first byte is 0x00 or 0xff
(https://lore.kernel.org/r/[email protected]/)
- Update size checks to reject resources that would extend past the maximum VPD size
Bjorn Helgaas (5):
PCI/VPD: Correct diagnostic for VPD read failure PCI/VPD: Check Resource Item Names against those valid for type PCI/VPD: Reject resource tags with invalid size PCI/VPD: Don't check Large Resource Item Names for validity PCI/VPD: Allow access to valid parts of VPD if some is invalid
Heiner Kallweit (1):
PCI/VPD: Treat initial 0xff as missing EEPROM
drivers/pci/vpd.c | 55 +++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 30 deletions(-)
Signature · 1 line
2.25.1