diff options
author | Nicholas Piggin <[email protected]> | 2017-11-10 04:27:36 +1100 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2017-11-13 23:34:19 +1100 |
commit | 6a72dc038b615229a1b285829d6c8378d15c2347 (patch) | |
tree | 3258a738aae36b3dc5aab119ead8e11706191751 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 7ece370996b694ae263025e056ad785afc1be5ab (diff) |
powerpc/64s/hash: Fix 128TB-512TB virtual address boundary case allocation
When allocating VA space with a hint that crosses 128TB, the SLB
addr_limit variable is not expanded if addr is not > 128TB, but the
slice allocation looks at task_size, which is 512TB. This results in
slice_check_fit() incorrectly succeeding because the slice_count
truncates off bit 128 of the requested mask, so the comparison to the
available mask succeeds.
Fix this by using mm->context.addr_limit instead of mm->task_size for
testing allocation limits. This causes such allocations to fail.
Fixes: f4ea6dcb08ea ("powerpc/mm: Enable mappings above 128TB")
Cc: [email protected] # v4.12+
Reported-by: Florian Weimer <[email protected]>
Signed-off-by: Nicholas Piggin <[email protected]>
Reviewed-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions