public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Michael Ellerman <patch-notifications@ellerman•id.au>
To: Russell Currey <ruscur@russell•cc>, linuxppc-dev@lists•ozlabs.org
Subject: Re: powerpc/64: Fix booting large kernels with STRICT_KERNEL_RWX
Date: Mon, 22 Apr 2019 00:18:58 +1000 (AEST)	[thread overview]
Message-ID: <44nBfC6JXcz9sML@ozlabs.org> (raw)
In-Reply-To: <20190327033554.4926-1-ruscur@russell.cc>

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 <ruscur@russell•cc>

Applied to powerpc next, thanks.

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

cheers

      reply	other threads:[~2019-04-21 14:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-27  3:35 [PATCH] powerpc/64: Fix booting large kernels with STRICT_KERNEL_RWX Russell Currey
2019-04-21 14:18 ` Michael Ellerman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44nBfC6JXcz9sML@ozlabs.org \
    --to=patch-notifications@ellerman$(echo .)id.au \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=ruscur@russell$(echo .)cc \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox