[PATCH v2] powerpc64/idle: Fix SP offsets when saving GPRs
Michael Ellerman
patch-notifications at ellerman.id.au
Wed Feb 10 23:57:29 AEDT 2021
On Sat, 6 Feb 2021 01:23:42 -0600, Christopher M. Riedl wrote:
> The idle entry/exit code saves/restores GPRs in the stack "red zone"
> (Protected Zone according to PowerPC64 ELF ABI v2). However, the offset
> used for the first GPR is incorrect and overwrites the back chain - the
> Protected Zone actually starts below the current SP. In practice this is
> probably not an issue, but it's still incorrect so fix it.
>
> Also expand the comments to explain why using the stack "red zone"
> instead of creating a new stackframe is appropriate here.
Applied to powerpc/next.
[1/1] powerpc64/idle: Fix SP offsets when saving GPRs
https://git.kernel.org/powerpc/c/73287caa9210ded6066833195f4335f7f688a46b
cheers
More information about the Linuxppc-dev
mailing list