powerpc: Skip stack validation checking alternate stacks if they are not allocated
authorNicholas Piggin <npiggin@gmail.com>
Fri, 16 Dec 2022 11:59:30 +0000 (21:59 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Feb 2023 11:19:56 +0000 (22:19 +1100)
commit1ee4e35076e36724a62ba2fa29b722fb53eb68f2
tree71eee0ec6058d0e608c2212ad49e1e23d342ec9c
parentdc222fa7737212fe0da513e5b8937c156d02225d
powerpc: Skip stack validation checking alternate stacks if they are not allocated

Stack validation in early boot can just bail out of checking alternate
stacks if they are not validated yet. Checking against a NULL stack
could cause NULLish pointer values to be considered valid.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221216115930.2667772-5-npiggin@gmail.com
arch/powerpc/kernel/process.c