arm64: kernel: Disable latent_entropy GCC plugin in early C runtime
authorArd Biesheuvel <ardb@kernel.org>
Wed, 29 Nov 2023 11:15:57 +0000 (12:15 +0100)
committerWill Deacon <will@kernel.org>
Tue, 12 Dec 2023 11:06:27 +0000 (11:06 +0000)
commit3dfdc2750c6cdc6a5ebf5effb07f92db761de35d
treeb154972470afd8077bfbd9ea8b2ba79f4998c69c
parentb1366d21daaebb8e474e4169c5e557fbb37bfdc0
arm64: kernel: Disable latent_entropy GCC plugin in early C runtime

In subsequent patches, mark portions of the early C code will be marked
as __init.  Unfortunarely, __init implies __latent_entropy, and this
would result in the early C code being instrumented in an unsafe manner.

Disable the latent entropy plugin for the early C code.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20231129111555.3594833-44-ardb@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/pi/Makefile