[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220401201916.1487500-1-samitolvanen@google.com>
Date: Fri, 1 Apr 2022 13:19:13 -0700
From: Sami Tolvanen <samitolvanen@...gle.com>
To: Kees Cook <keescook@...omium.org>
Cc: Catalin Marinas <catalin.marinas@....com>,
Mark Rutland <mark.rutland@....com>,
Masahiro Yamada <masahiroy@...nel.org>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Will Deacon <will@...nel.org>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
llvm@...ts.linux.dev, Sami Tolvanen <samitolvanen@...gle.com>
Subject: [PATCH 0/3] cfi: Use __builtin_function_start
Clang 14 introduced the __builtin_function_start intrinsic, which
makes it possible to cleanly implement the function_nocfi() macro in a
way that also works with static initializers. Add a default
function_nocfi() implementation and drop the arm64 inline assembly
version.
Sami Tolvanen (3):
kbuild: Change CFI_CLANG to depend on __builtin_function_start
linux/compiler-clang.h: define function_nocfi
arm64: Drop the inline assembly implementation of function_nocfi
arch/Kconfig | 5 +----
arch/arm64/include/asm/compiler.h | 16 ----------------
include/linux/compiler-clang.h | 10 ++++++++++
init/Kconfig | 3 +++
4 files changed, 14 insertions(+), 20 deletions(-)
--
2.35.0
Powered by blists - more mailing lists