]> git.baikalelectronics.ru Git - kernel.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)
commit2acdd1502e153c2f04a11944ff91449a97168955
treef7b89a80f18d5e76c50fc9b5da03efb6f498d984
parent83623c7b9276ad37d42747172e06d9c9f7dcb8c0
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