[PATCH] powerpc/6xx: Fix power_save_ppc32_restore() with CONFIG_VMAP_STACK
Michael Ellerman
patch-notifications at ellerman.id.au
Wed Feb 19 23:40:00 AEDT 2020
On Fri, 2020-02-14 at 06:53:00 UTC, Christophe Leroy wrote:
> power_save_ppc32_restore() is called during exception entry, before
> re-enabling the MMU. It substracts KERNELBASE from the address
> of nap_save_msscr0 to access it.
>
> With CONFIG_VMAP_STACK enabled, data MMU translation has already been
> re-enabled, so power_save_ppc32_restore() has to access
> nap_save_msscr0 by its virtual address.
>
> Reported-by: Larry Finger <Larry.Finger at lwfinger.net>
> Signed-off-by: Christophe Leroy <christophe.leroy at c-s.fr>
> Fixes: cd08f109e262 ("powerpc/32s: Enable CONFIG_VMAP_STACK")
> Tested-by: Larry Finger <Larry.Finger at lwfinger.net>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/477f3488a94e35380c82a7498d46f10fa5f3edd2
cheers
More information about the Linuxppc-dev
mailing list