Re: powerpc/8xx: fix handling of early NULL pointer dereference

From: Michael Ellerman
Date: Mon Jul 23 2018 - 11:11:23 EST


On Fri, 2018-07-13 at 13:10:47 UTC, Christophe Leroy wrote:
> NULL pointers are pointers to user memory space. So user pagetable
> has to be set in order to avoid random behaviour in case of NULL
> pointer dereference, otherwise we may encounter random memory
> access hence Machine Check Exception from TLB Miss handlers.
>
> Set user pagetable as early as possible in order to properly
> catch early kernel NULL pointer dereference.
>
> Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxx>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/8c8c10b90d88bfaad41ea34df17bf6

cheers