mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/3] efi/libstub: Build the x86 stub from KBUILD_CFLAGS
@ 2026-10-06 20:42 Kees Cook
  2026-10-06 20:42 ` [PATCH v1 1/3] efi/libstub: Declare the x86 stub's assembly entry points Kees Cook
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Kees Cook @ 2026-10-06 20:42 UTC (permalink / raw)
  To: Ard Biesheuvel
  Cc: Kees Cook, Ilias Apalodimas, Nathan Chancellor, Nicolas Schier,
	Nick Desaulniers, Bill Wendling, Justin Stitt, linux-efi, llvm,
	linux-kernel, linux-hardening

Hi!

The x86 EFI stub builds from its own short list of compiler flags instead
of KBUILD_CFLAGS, so options added kernel-wide reach it only when someone
remembers to add them there too (e.g. for -fms-extensions). Swap it
around to remove unwanted options instead, as we do for all the other
architectures.

This will let Clang's -fexperimental-late-parse-attributes reach the
stub build so that __counted_by() will get parsed without error[1].

Thanks!

-Kees

Link: https://lore.kernel.org/all/202610060642.7C4125F@keescook [1]

Kees Cook (3):
  efi/libstub: Declare the x86 stub's assembly entry points
  efi/libstub: Build the x86 stub from KBUILD_CFLAGS
  efi/libstub: Disable kernel stack erasing in the common flags

 drivers/firmware/efi/libstub/Makefile   | 41 +++++++++++++------------
 drivers/firmware/efi/libstub/x86-stub.h |  9 ++++++
 2 files changed, 30 insertions(+), 20 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-07  9:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-06 20:42 [PATCH v1 0/3] efi/libstub: Build the x86 stub from KBUILD_CFLAGS Kees Cook
2026-10-06 20:42 ` [PATCH v1 1/3] efi/libstub: Declare the x86 stub's assembly entry points Kees Cook
2026-10-06 20:42 ` [PATCH v1 2/3] efi/libstub: Build the x86 stub from KBUILD_CFLAGS Kees Cook
2026-10-07  9:20   ` Nathan Chancellor
2026-10-06 20:42 ` [PATCH v1 3/3] efi/libstub: Disable kernel stack erasing in the common flags Kees Cook
2026-10-07  9:21   ` Nathan Chancellor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®