diff options
author | Mike Rapoport <rppt@linux.ibm.com> | 2021-06-30 09:12:13 +0300 |
---|---|---|
committer | Mike Rapoport <rppt@linux.ibm.com> | 2021-06-30 11:38:56 +0300 |
commit | 023accf5cdc1e504a9b04187ec23ff156fe53d90 (patch) | |
tree | 4bd82ea2aa7444345e9d13a3eec68267cc9da07f /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | f921f53e089a12a192808ac4319f28727b35dc0f (diff) | |
download | linux-023accf5cdc1e504a9b04187ec23ff156fe53d90.tar.xz |
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/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions