summaryrefslogtreecommitdiffstats
path: root/tools/accounting
diff options
context:
space:
mode:
authorMike Rapoport <rppt@linux.ibm.com>2021-06-30 09:12:13 +0300
committerMike Rapoport <rppt@linux.ibm.com>2021-06-30 11:38:56 +0300
commit023accf5cdc1e504a9b04187ec23ff156fe53d90 (patch)
tree4bd82ea2aa7444345e9d13a3eec68267cc9da07f /tools/accounting
parentf921f53e089a12a192808ac4319f28727b35dc0f (diff)
downloadlinux-023accf5cdc1e504a9b04187ec23ff156fe53d90.tar.gz
linux-023accf5cdc1e504a9b04187ec23ff156fe53d90.tar.bz2
linux-023accf5cdc1e504a9b04187ec23ff156fe53d90.zip
memblock: ensure there is no overflow in memblock_overlaps_region()
There maybe an overflow in memblock_overlaps_region() if it is called with base and size such that base + size > PHYS_ADDR_MAX Make sure that memblock_overlaps_region() caps the size to prevent such overflow and remove now duplicated call to memblock_cap_size() from memblock_is_region_reserved(). Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Tested-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'tools/accounting')
0 files changed, 0 insertions, 0 deletions