]> 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)
commit41971446b601242877d780023bdfa950cdebc1cd
treef7b89a80f18d5e76c50fc9b5da03efb6f498d984
parent6ba4de2e56cfbdfc4dd060107e462c8fc917d14c
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