diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2017-03-21 18:29:52 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-03-31 14:09:48 +0200 |
commit | 98beda74de246520653b42147443292d9814426d (patch) | |
tree | f6c3d6cc46171c12e3b0a2b353b03dbccb890f38 /arch/powerpc/include/asm | |
parent | powerpc/mm/nohash: MM_SLICE is only used by book3s 64 (diff) | |
download | linux-98beda74de246520653b42147443292d9814426d.tar.xz linux-98beda74de246520653b42147443292d9814426d.zip |
powerpc/mm/slice: Fix off-by-1 error when computing slice mask
For low slice, max addr should be less than 4G. Without limiting this correctly
we will end up with a low slice mask which has 17th bit set. This is not
a problem with the current code because our low slice mask is of type u16. But
in later patch I am switching low slice mask to u64 type and having the 17bit
set result in wrong slice mask which in turn results in mmap failures.
Reviewed-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm')
0 files changed, 0 insertions, 0 deletions