Thread (10 messages) 10 messages, 6 authors, 2024-07-09

Re: [PATCH] powerpc/pseries: Fix scv instruction crash with kexec

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2024-06-26 09:28:37

Nicholas Piggin [off-list ref] writes:
kexec on pseries disables AIL (reloc_on_exc), required for scv
instruction support, before other CPUs have been shut down. This means
they can execute scv instructions after AIL is disabled, which causes an
interrupt at an unexpected entry location that crashes the kernel.

Change the kexec sequence to disable AIL after other CPUs have been
brought down.

As a refresher, the real-mode scv interrupt vector is 0x17000, and the
fixed-location head code probably couldn't easily deal with implementing
such high addresses so it was just decided not to support that interrupt
at all.

Reported-by: Sourabh Jain <redacted>
 
Was this reported publicly? I don't remember it.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help