]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/32: Statically initialise first emergency context
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 12 Mar 2021 12:50:25 +0000 (12:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:29 +0000 (10:29 +0200)
commit2e16f00251065ae242a0a94f2eeaa8212ea14736
tree0a9e5f3d5a595e9f04644046e42b0a8dab95d6fc
parent2eed478b33f15877658efd79502b4aa7c37d62f5
powerpc/32: Statically initialise first emergency context

[ Upstream commit a4719f5bb6d7dc220bffdc1b9f5ce5eaa5543581 ]

The check of the emergency context initialisation in
vmap_stack_overflow is buggy for the SMP case, as it
compares r1 with 0 while in the SMP case r1 is offseted
by the CPU id.

Instead of fixing it, just perform static initialisation
of the first emergency context.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/4a67ba422be75713286dca0c86ee0d3df2eb6dfa.1615552867.git.christophe.leroy@csgroup.eu
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/head_32.h
arch/powerpc/kernel/setup_32.c