android_kernel_samsung_a7y1.../arch/powerpc/lib
Christophe Leroy 15b0c72839 powerpc/lib: fix book3s/32 boot failure due to code patching
commit b45ba4a51cde29b2939365ef0c07ad34c8321789 upstream.

Commit 51c3c62b58b3 ("powerpc: Avoid code patching freed init
sections") accesses 'init_mem_is_free' flag too early, before the
kernel is relocated. This provokes early boot failure (before the
console is active).

As it is not necessary to do this verification that early, this
patch moves the test into patch_instruction() instead of
__patch_instruction().

This modification also has the advantage of avoiding unnecessary
remappings.

Fixes: 51c3c62b58b3 ("powerpc: Avoid code patching freed init sections")
Cc: stable@vger.kernel.org # 4.13+
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 17:01:53 +02:00
..
alloc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checksum_32.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checksum_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checksum_wrappers_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
code-patching.c powerpc/lib: fix book3s/32 boot failure due to code patching 2020-04-06 17:01:53 +02:00
copy_32.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
copypage_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
copypage_power7.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
copyuser_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
copyuser_power7.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crtsavres.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
div64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
feature-fixups-test.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
feature-fixups.c powerpc/fsl: Add infrastructure to fixup branch predictor flush 2020-04-06 16:40:12 +02:00
hweight_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ldstfp.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
locks.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mem_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
memcmp_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
memcpy_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
memcpy_power7.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ppc_ksyms.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rheap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sstep.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
string_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
string.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
usercopy_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmx-helper.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xor_vmx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30