public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix CFI failures with GCOV_PROFILE_ALL
@ 2023-06-23  0:11 Sami Tolvanen
  2023-06-23  0:11 ` [PATCH 1/2] kbuild: Fix CFI failures with GCOV Sami Tolvanen
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Sami Tolvanen @ 2023-06-23  0:11 UTC (permalink / raw)
  To: Masahiro Yamada, Peter Zijlstra (Intel), Kees Cook
  Cc: Nathan Chancellor, Nick Desaulniers, Nicolas Schier, Tom Rix,
	linux-kbuild, llvm, linux-kernel, Sami Tolvanen

Hi folks,

The following two patches fix CFI failures with GCOV_PROFILE_ALL,
where the compiler injects indirectly called functions to object
files that otherwise contain no executable code, and are not
processed by objtool or don't have CFI enabled. This results in
missing or incorrect type hashes during boot and when modules are
loaded.

Sami Tolvanen (2):
  kbuild: Fix CFI failures with GCOV
  kbuild: Disable GCOV for *.mod.o

 init/Makefile             | 1 +
 scripts/Makefile.modfinal | 2 +-
 scripts/Makefile.vmlinux  | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)


base-commit: 007034977130b49b618a5206aad54f634d9f169c
-- 
2.41.0.162.gfafddb0af9-goog


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

end of thread, other threads:[~2023-06-24  8:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-23  0:11 [PATCH 0/2] Fix CFI failures with GCOV_PROFILE_ALL Sami Tolvanen
2023-06-23  0:11 ` [PATCH 1/2] kbuild: Fix CFI failures with GCOV Sami Tolvanen
2023-06-23  0:11 ` [PATCH 2/2] kbuild: Disable GCOV for *.mod.o Sami Tolvanen
2023-06-23  9:13 ` [PATCH 0/2] Fix CFI failures with GCOV_PROFILE_ALL Peter Zijlstra
2023-06-23 16:32 ` Kees Cook
2023-06-23 20:38   ` Sami Tolvanen
2023-06-24  8:43     ` Masahiro Yamada
2023-06-23 17:47 ` Nick Desaulniers

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