powerpc/64s/hash: Allow MAP_FIXED allocations to cross 128TB boundary
authorNicholas Piggin <npiggin@gmail.com>
Thu, 9 Nov 2017 17:27:38 +0000 (04:27 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:40:57 +0000 (08:40 +0000)
commit275e5c44679dcaed07007a8fbc634721afc7020d
tree99875aae8aaf6f8e5040d4632454846156053cce
parent34c8d3ffb64883b9279c03e79c1b08c9a1931940
powerpc/64s/hash: Allow MAP_FIXED allocations to cross 128TB boundary

commit 35602f82d0c765f991420e319c8d3a596c921eb8 upstream.

While mapping hints with a length that cross 128TB are disallowed,
MAP_FIXED allocations that cross 128TB are allowed. These are failing
on hash (on radix they succeed). Add an additional case for fixed
mappings to expand the addr_limit when crossing 128TB.

Fixes: f4ea6dcb08ea ("powerpc/mm: Enable mappings above 128TB")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/mm/slice.c