]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32: Fix hardlockup on vmap stack overflow
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 18 Nov 2021 09:39:53 +0000 (10:39 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:00:51 +0000 (21:00 +1100)
commit6d43344873f2688a52aa48560581b003eaba67be
tree8a1bc89c719e21697f25570aae04bf9fc98c98c2
parent629d5953fa3911cc71e0a2a69915e8041d5b1e1f
powerpc/32: Fix hardlockup on vmap stack overflow

Since the commit 9a6e1c3794e5 ("powerpc/32: Fix vmap stack - Do not
activate MMU before reading task struct") a vmap stack overflow
results in a hard lockup. This is because emergency_ctx is still
addressed with its virtual address allthough data MMU is not active
anymore at that time.

Fix it by using a physical address instead.

Fixes: 9a6e1c3794e5 ("powerpc/32: Fix vmap stack - Do not activate MMU before reading task struct")
Cc: stable@vger.kernel.org # v5.10+
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/ce30364fb7ccda489272af4a1612b6aa147e1d23.1637227521.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/head_32.h