]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
powerpc/pseries: Machine check use rtas_call_unlocked() with args on stack
authorNicholas Piggin <npiggin@gmail.com>
Fri, 8 May 2020 04:34:02 +0000 (14:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:10:34 +0000 (00:10 +1000)
commit2576f5f9169620bf329cf1e91086e6041b98e4b2
tree9286fb693df2aaf245a193ac159e5bcf413108ed
parentd2cbbd45d433b96e41711a293e59cff259143694
powerpc/pseries: Machine check use rtas_call_unlocked() with args on stack

With the previous patch, machine checks can use rtas_call_unlocked()
which avoids the RTAS spinlock which would deadlock if a machine
check hits while making an RTAS call.

This also avoids the complex RTAS error logging which has more RTAS
calls and includes kmalloc (which can return memory beyond RMA, which
would also crash).

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200508043408.886394-11-npiggin@gmail.com
arch/powerpc/platforms/pseries/ras.c