diff options
| author | Colin Ian King <[email protected]> | 2020-11-14 21:48:04 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2020-11-30 17:39:11 +0000 |
| commit | cc73eb321d246776e5a9f7723d15708809aa3699 (patch) | |
| tree | b3073688998856c382da8841406b7be5820445d2 /fs/proc/array.c | |
| parent | PCI: Bounds-check command-line resource alignment requests (diff) | |
| download | kernel-cc73eb321d246776e5a9f7723d15708809aa3699.tar.gz kernel-cc73eb321d246776e5a9f7723d15708809aa3699.zip | |
PCI: Fix overflow in command-line resource alignment requests
The shift of 1 by align_order is evaluated using 32 bit arithmetic and the
result is assigned to a resource_size_t type variable that is a 64 bit
unsigned integer on 64 bit platforms. Fix an overflow before widening issue
by making the 1 a ULL.
Addresses-Coverity: ("Unintentional integer overflow")
Fixes: 32a9a682bef2 ("PCI: allow assignment of memory resources with a specified alignment")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
