commit | 023accf5cdc1e504a9b04187ec23ff156fe53d90 | [log] [tgz] |
---|---|---|
author | Mike Rapoport <rppt@linux.ibm.com> | Wed Jun 30 09:12:13 2021 +0300 |
committer | Mike Rapoport <rppt@linux.ibm.com> | Wed Jun 30 11:38:56 2021 +0300 |
tree | 4bd82ea2aa7444345e9d13a3eec68267cc9da07f | |
parent | f921f53e089a12a192808ac4319f28727b35dc0f [diff] |
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>