Re: [PATCH v2] powerpc/mm/hash: Fix get_region_id() for invalid addresses

2019-05-21 Thread Michael Ellerman
On Fri, 2019-05-17 at 13:29:58 UTC, Michael Ellerman wrote: > From: "Aneesh Kumar K.V" > > Accesses by userspace to random addresses outside the user or kernel > address range will generate an SLB fault. When we handle that fault we > classify the effective address into several classes, eg. user,

Re: [PATCH v2] powerpc/mm/hash: Fix get_region_id() for invalid addresses

2019-05-18 Thread Michael Ellerman
Nicholas Piggin writes: > Michael Ellerman's on May 17, 2019 11:29 pm: >> From: "Aneesh Kumar K.V" >> >> Accesses by userspace to random addresses outside the user or kernel >> address range will generate an SLB fault. When we handle that fault we >> classify the effective address into several c

Re: [PATCH v2] powerpc/mm/hash: Fix get_region_id() for invalid addresses

2019-05-17 Thread Nicholas Piggin
Michael Ellerman's on May 17, 2019 11:29 pm: > From: "Aneesh Kumar K.V" > > Accesses by userspace to random addresses outside the user or kernel > address range will generate an SLB fault. When we handle that fault we > classify the effective address into several classes, eg. user, kernel > linea

[PATCH v2] powerpc/mm/hash: Fix get_region_id() for invalid addresses

2019-05-17 Thread Michael Ellerman
From: "Aneesh Kumar K.V" Accesses by userspace to random addresses outside the user or kernel address range will generate an SLB fault. When we handle that fault we classify the effective address into several classes, eg. user, kernel linear, kernel virtual etc. For addresses that are completely