[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202509040933.06AF02E714@keescook>
Date: Thu, 4 Sep 2025 09:37:14 -0700
From: Kees Cook <kees@...nel.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Nathan Chancellor <nathan@...nel.org>,
Vegard Nossum <vegard.nossum@...cle.com>,
Miguel Ojeda <ojeda@...nel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Jeff Johnson <jeff.johnson@....qualcomm.com>,
Randy Dunlap <rdunlap@...radead.org>,
David Woodhouse <dwmw2@...radead.org>,
"Russell King (Oracle)" <rmk+kernel@...linux.org.uk>,
Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>,
Marco Elver <elver@...gle.com>,
Przemek Kitszel <przemyslaw.kitszel@...el.com>,
Ramon de C Valle <rcvalle@...gle.com>,
Jonathan Corbet <corbet@....net>,
"Paul E. McKenney" <paulmck@...nel.org>,
Nicolas Schier <nicolas.schier@...ux.dev>,
Masahiro Yamada <masahiroy@...nel.org>,
Arnd Bergmann <arnd@...db.de>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Sami Tolvanen <samitolvanen@...gle.com>,
Mark Rutland <mark.rutland@....com>, linux-kernel@...r.kernel.org,
llvm@...ts.linux.dev, linux-doc@...r.kernel.org,
linux-kbuild@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
x86@...nel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH v2 0/9] kcfi: Prepare for GCC support
On Thu, Sep 04, 2025 at 09:04:10AM +0200, Peter Zijlstra wrote:
> On Wed, Sep 03, 2025 at 08:46:39PM -0700, Kees Cook wrote:
>
> > Kees Cook (9):
> > compiler_types.h: Move __nocfi out of compiler-specific header
> > x86/traps: Clarify KCFI instruction layout
> > x86/cfi: Document the "cfi=" bootparam options
> > x86/cfi: Standardize on common "CFI:" prefix for CFI reports
> > x86/cfi: Add "debug" option to "cfi=" bootparam
> > x86/cfi: Remove __noinitretpoline and __noretpoline
>
> So I can take these first 6 patches (and edit that debug patch to
> un-annoy myself ;-), but I'm thinking this Kconfig stuff:
Sure, yeah. Do you want a v3 for the debug stuff that uses your proposed
helper?
> > kconfig: Add transitional symbol attribute for migration support
> > kcfi: Rename CONFIG_CFI_CLANG to CONFIG_CFI
>
> Should perhaps go through the kbuild tree? A
I had chatted offline with Nathan about this series, and he'd suggested
the kconfig change could go with it's first user (the rename). So if you
don't want to put it in -tip, I can take it in the hardening tree.
(There's no dependencies between these 2 and the first 6.)
> Leaving this:
>
> > ARM: traps: Implement KCFI trap handler for ARM32
>
> Can that go independently through the arm tree, or are there
> dependencies?
I can take this too, assuming ARM folks don't want to snag it. I may,
however, wait on it, just to avoid implementing the kernel support
before the GCC folks are happy with the arm32 KCFI backend and its UDF
encoding, etc.
Thanks for looking at these! :)
-Kees
--
Kees Cook
Powered by blists - more mailing lists