arch-enable-has_lto_clang-with-kasan-and-kcov.patch removed from -mm tree
The quilt patch titled
Subject: arch: enable HAS_LTO_CLANG with KASAN and KCOV
has been removed from the -mm tree. Its filename was
arch-enable-has_lto_clang-with-kasan-and-kcov.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Jakob Koschel <[email protected]>
Subject: arch: enable HAS_LTO_CLANG with KASAN and KCOV
Date: Wed, 19 Jul 2023 00:29:12 +0200
Both KASAN and KCOV had issues with LTO_CLANG if DEBUG_INFO is enabled. With LTO inlinable function calls are required to have debug info if they are inlined into a function that has debug info.
Starting with LLVM 17 this will be fixed ([1],[2]) and enabling LTO with KASAN/KCOV and DEBUG_INFO doesn't cause linker errors anymore.
---
arch/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/Kconfig renamed from arch/Kconfig~arch-enable-has_lto_clang-with-kasan-and-kcov +3 -1
@@ -732,7 +732,9 @@ config HAS_LTO_CLANG depends on $(success,$(AR) --help | head -n 1 | grep -qi llvm) depends on ARCH_SUPPORTS_LTO_CLANG depends on !FTRACE_MCOUNT_USE_RECORDMCOUNT - depends on !KASAN || KASAN_HW_TAGS + # https://github.com/ClangBuiltLinux/linux/issues/1721 + depends on (!KASAN || KASAN_HW_TAGS || CLANG_VERSION >= 170000) || !DEBUG_INFO + depends on (!KCOV || CLANG_VERSION >= 170000) || !DEBUG_INFO depends on !GCOV_KERNEL help The compiler and Kconfig options support building with Clang's
_
Patches currently in -mm which might be from [email protected] are