[PATCH v2 06/14] arm64: Handle KCOV __init vs inline mismatches
Kees Cook
kees at kernel.org
Fri May 23 04:39:16 UTC 2025
When KCOV is enabled all functions get instrumented, unless
the __no_sanitize_coverage attribute is used. To prepare for
__no_sanitize_coverage being applied to __init functions, we
have to handle differences in how GCC's inline optimizations get
resolved. For arm64 this requires forcing one function to be inline
with __always_inline.
Signed-off-by: Kees Cook <kees at kernel.org>
---
Cc: Catalin Marinas <catalin.marinas at arm.com>
Cc: Will Deacon <will at kernel.org>
Cc: Jonathan Cameron <Jonathan.Cameron at huawei.com>
Cc: Gavin Shan <gshan at redhat.com>
Cc: "Russell King (Oracle)" <rmk+kernel at armlinux.org.uk>
Cc: James Morse <james.morse at arm.com>
Cc: Oza Pawandeep <quic_poza at quicinc.com>
Cc: Anshuman Khandual <anshuman.khandual at arm.com>
Cc: <linux-arm-kernel at lists.infradead.org>
---
arch/arm64/include/asm/acpi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/include/asm/acpi.h b/arch/arm64/include/asm/acpi.h
index a407f9cd549e..c07a58b96329 100644
--- a/arch/arm64/include/asm/acpi.h
+++ b/arch/arm64/include/asm/acpi.h
@@ -150,7 +150,7 @@ acpi_set_mailbox_entry(int cpu, struct acpi_madt_generic_interrupt *processor)
{}
#endif
-static inline const char *acpi_get_enable_method(int cpu)
+static __always_inline const char *acpi_get_enable_method(int cpu)
{
if (acpi_psci_present())
return "psci";
--
2.34.1
More information about the Linux-security-module-archive
mailing list