Re: powerpc/64: Fix booting large kernels with STRICT_KERNEL_RWX

From
Michael Ellerman <hidden>
Date
2019-04-21 14:48:03
Reply to
Russell Currey, 2019-03-27
On Wed, 2019-03-27 at 03:35:54 UTC, Russell Currey wrote:
With STRICT_KERNEL_RWX enabled anything marked __init is placed at a 16M
boundary.  This is necessary so that it can be repurposed later with
different permissions.  However, in kernels with text larger than 16M,
this pushes early_setup past 32M, incapable of being reached by the
branch instruction.

Fix this by setting the CTR and branching there instead.

Fixes: 1e0fc9d1eb2b ("powerpc/Kconfig: Enable STRICT_KERNEL_RWX for some configs")
Signed-off-by: Russell Currey <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/56c46bba9bbfe229b4472a5be313c44c

cheers
Thread (2 messages) 2 messages, 2 authors, last reply 2019-04-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help