]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
powerpc/32: Fix boot failure with GCC latent entropy plugin
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 22 Dec 2021 13:07:31 +0000 (13:07 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 3 Feb 2022 09:28:49 +0000 (10:28 +0100)
commitafd7b680887f3d947643c8d73385c024468d2c11
tree190c37cb119fadfc2fb2e08b974f08722e0095b7
parent827f371b84eb1be546634da8eb120dae3be0330f
powerpc/32: Fix boot failure with GCC latent entropy plugin

BugLink: https://bugs.launchpad.net/bugs/1959879
commit bba496656a73fc1d1330b49c7f82843836e9feb1 upstream.

Boot fails with GCC latent entropy plugin enabled.

This is due to early boot functions trying to access 'latent_entropy'
global data while the kernel is not relocated at its final
destination yet.

As there is no way to tell GCC to use PTRRELOC() to access it,
disable latent entropy plugin in early_32.o and feature-fixups.o and
code-patching.o

Fixes: 38addce8b600 ("gcc-plugins: Add latent_entropy plugin")
Cc: stable@vger.kernel.org # v4.9+
Reported-by: Erhard Furtner <erhard_f@mailbox.org>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=215217
Link: https://lore.kernel.org/r/2bac55483b8daf5b1caa163a45fa5f9cdbe18be4.1640178426.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/powerpc/kernel/Makefile
arch/powerpc/lib/Makefile