diff options
author | Alexander Gordeev <[email protected]> | 2023-07-06 12:28:17 +0200 |
---|---|---|
committer | Heiko Carstens <[email protected]> | 2023-08-16 15:13:02 +0200 |
commit | 8ddccc8a7d06f7ea4d8579970c95609d1b1de77b (patch) | |
tree | 582f01214e1f4a8da3c4f945a68c660c741db2b7 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | ee4ac5275fd82a877e2fe6aeefcc3c4268f43388 (diff) |
s390/boot: cleanup number of page table levels setup
The separate vmalloc area size check against _REGION2_SIZE
is needed in case user provided insanely large value using
vmalloc= kernel command line parameter. That could lead to
overflow and selecting 3 page table levels instead of 4.
Use size_add() for the overflow check and get rid of the
extra vmalloc area check.
With the current values of CONFIG_MAX_PHYSMEM_BITS and
PAGES_PER_SECTION the sum of maximal possible size of
identity mapping and vmemmap area (derived from these
macros) plus modules area size MODULES_LEN can not
overflow. Thus, that sum is used as first addend while
vmalloc area size is second addend for size_add().
Suggested-by: Heiko Carstens <[email protected]>
Acked-by: Heiko Carstens <[email protected]>
Signed-off-by: Alexander Gordeev <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions