]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc/8xx: fix handling of early NULL pointer dereference
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 13 Jul 2018 13:10:47 +0000 (13:10 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Jul 2018 04:38:45 +0000 (14:38 +1000)
commit8c8c10b90d88bfaad41ea34df17bf6f18d00f09d
treef7b89a80f18d5e76c50fc9b5da03efb6f498d984
parentce57c6610cc2d7cde61fc005a2d2090bce46fc73
powerpc/8xx: fix handling of early NULL pointer dereference

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@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/head_8xx.S