diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2020-11-05 14:51:36 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-11-30 11:39:11 -0600 |
commit | 6534aac198b58309ff2337981d3f893e0be1d19d (patch) | |
tree | a43d66dbadfe0f011feebc80d3c3e4c62f9d8605 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2f0cd59c6ff91b4bae4b6650ef9bfe00639b5061 (diff) |
PCI: Bounds-check command-line resource alignment requests
32-bit BARs are limited to 2GB size (2^31). By extension, I assume 64-bit
BARs are limited to 2^63 bytes. Limit the alignment requested by the
"pci=resource_alignment=" command-line parameter to 2^63.
Link: https://lore.kernel.org/r/20201007123045.GS4282@kadam
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions