Christophe Leroy
48a5c81f3f
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>
2019-05-16 19:43:47 +02:00
..
alloc.c
treewide: replace obsolete _refok by __ref
2016-08-02 17:31:41 -04:00
checksum_32.S
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
2016-10-14 14:26:58 -07:00
checksum_64.S
ppc: move exports to definitions
2016-08-07 23:50:09 -04:00
checksum_wrappers.c
powerpc32: checksum_wrappers_64 becomes checksum_wrappers
2016-03-04 21:47:47 -06:00
code-patching.c
powerpc/lib: fix book3s/32 boot failure due to code patching
2019-05-16 19:43:47 +02:00
copy_32.S
ppc: move exports to definitions
2016-08-07 23:50:09 -04:00
copypage_64.S
ppc: move exports to definitions
2016-08-07 23:50:09 -04:00
copypage_power7.S
powerpc: Fix invalid use of register expressions
2019-04-17 08:36:39 +02:00
copyuser_64.S
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
2016-10-14 14:26:58 -07:00
copyuser_power7.S
powerpc: Fix invalid use of register expressions
2019-04-17 08:36:39 +02:00
crtsavres.S
powerpc: Change vrX register defines to vX to match gcc and glibc
2015-03-16 18:32:11 +11:00
div64.S
feature-fixups-test.S
feature-fixups.c
powerpc/fsl: Add infrastructure to fixup branch predictor flush
2019-04-17 08:36:42 +02:00
hweight_64.S
ppc: move exports to definitions
2016-08-07 23:50:09 -04:00
ldstfp.S
powerpc: Change vsrX register defines to vsX to match gcc and glibc
2015-03-16 18:32:11 +11:00
locks.c
powerpc/spinlock: Fix spin_unlock_wait()
2016-06-14 16:05:44 +10:00
Makefile
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
2016-10-14 14:26:58 -07:00
mem_64.S
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
2016-10-14 14:26:58 -07:00
memcmp_64.S
ppc: move exports to definitions
2016-08-07 23:50:09 -04:00
memcpy_64.S
ppc: move exports to definitions
2016-08-07 23:50:09 -04:00
memcpy_power7.S
powerpc: Fix invalid use of register expressions
2019-04-17 08:36:39 +02:00
rheap.c
powerpc: Various typo fixes
2016-06-14 13:58:26 +10:00
sstep.c
powerpc: Fix emulation of mfocrf in emulate_step()
2017-07-27 15:08:00 -07:00
string.S
ppc: move exports to definitions
2016-08-07 23:50:09 -04:00
string_64.S
powerpc: Fix invalid use of register expressions
2019-04-17 08:36:39 +02:00
usercopy_64.c
vmx-helper.c
powerpc: Introduce asm-prototypes.h
2016-06-16 22:39:54 +10:00
xor_vmx.c
powerpc: rework sparse for lib/xor_vmx.c
2016-04-27 09:33:37 +10:00