Re: [PATCH] powerpc/mm/hash: Improve address limit checks

2019-05-21 Thread Michael Ellerman
Michael Ellerman writes: > On Thu, 2019-05-16 at 11:50:54 UTC, "Aneesh Kumar K.V" wrote: >> Different parts of the code do the limit check by ignoring the top nibble >> of EA. ie. we do checks like >> >> if ((ea & EA_MASK) >= H_PGTABLE_RANGE) >> error >> >> This patch makes

Re: [PATCH] powerpc/mm/hash: Improve address limit checks

2019-05-18 Thread Michael Ellerman
On Thu, 2019-05-16 at 11:50:54 UTC, "Aneesh Kumar K.V" wrote: > Different parts of the code do the limit check by ignoring the top nibble > of EA. ie. we do checks like > > if ((ea & EA_MASK) >= H_PGTABLE_RANGE) > error > > This patch makes sure we don't insert SLB entries

[PATCH] powerpc/mm/hash: Improve address limit checks

2019-05-16 Thread Aneesh Kumar K.V
Different parts of the code do the limit check by ignoring the top nibble of EA. ie. we do checks like if ((ea & EA_MASK) >= H_PGTABLE_RANGE) error This patch makes sure we don't insert SLB entries for addresses whose top nibble doesn't match the ignored bits. With an