]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/8xx: Fix clearing of bits 20-23 in ITLB miss
authorChristophe Leroy <christophe.leroy@c-s.fr>
Sun, 9 Feb 2020 18:14:42 +0000 (18:14 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 17 Feb 2020 01:47:06 +0000 (12:47 +1100)
commita4031afb9d10d97f4d0285844abbc0ab04245304
tree9e5180f59f89e467727d55824f0646e8b2784464
parent50a175dd18de7a647e72aca7daf4744e3a5a81e3
powerpc/8xx: Fix clearing of bits 20-23 in ITLB miss

In ITLB miss handled the line supposed to clear bits 20-23 on the L2
ITLB entry is buggy and does indeed nothing, leading to undefined
value which could allow execution when it shouldn't.

Properly do the clearing with the relevant instruction.

Fixes: 74fabcadfd43 ("powerpc/8xx: don't use r12/SPRN_SPRG_SCRATCH2 in TLB Miss handlers")
Cc: stable@vger.kernel.org # v5.0+
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Leonardo Bras <leonardo@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/4f70c2778163affce8508a210f65d140e84524b4.1581272050.git.christophe.leroy@c-s.fr
arch/powerpc/kernel/head_8xx.S