diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-11-21 15:28:20 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-11-22 23:04:20 +1100 |
commit | 252eb55816a6f69ef9464cad303cdb3326cdc61d (patch) | |
tree | 82da0aef8fcf25b6696049d5cae17d175ff9c800 /crypto/dh_helper.c | |
parent | f3f1dfd600ff82b18b7ea73d80eb27f476a6aa97 (diff) | |
download | linux-252eb55816a6f69ef9464cad303cdb3326cdc61d.tar.bz2 |
powerpc: Fix boot on BOOK3S_32 with CONFIG_STRICT_KERNEL_RWX
On powerpc32, patch_instruction() is called by apply_feature_fixups()
which is called from early_init()
There is the following note in front of early_init():
* Note that the kernel may be running at an address which is different
* from the address that it was linked at, so we must use RELOC/PTRRELOC
* to access static data (including strings). -- paulus
Therefore, slab_is_available() cannot be called yet, and
text_poke_area must be addressed with PTRRELOC()
Fixes: 95902e6c8864 ("powerpc/mm: Implement STRICT_KERNEL_RWX on PPC32")
Cc: stable@vger.kernel.org # v4.14+
Reported-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'crypto/dh_helper.c')
0 files changed, 0 insertions, 0 deletions