Skip to content

Fix CFI hash randomization with KASAN

Sami Tolvanen linux-kbuild lkml llvm 1 version Applied

Status from this message: Applied to for-linus/hardening, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1kbuild: Fix CFI hash randomization with KASANinit/Makefile scripts/Makefile.vmlinux+2 -02 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchKees CookPeter Zijlstra (Intel)
1/1R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] Fix CFI hash randomization with KASAN

Peter, Masahiro,

I noticed that KASAN+CFI fails to boot on x86_64 without cfi=norand. The randomization code is missing a couple of KASAN constructors in object files that are not part of vmlinux.o. This happens because we don't run objtool for the files, which means the type hashes are not included in the .cfi_sites section.

This patch simply disables KASAN for these files, which seems reasonable to me and fixes the boot issue, but perhaps you have better ideas?

Sami

Sami Tolvanen (1):
kbuild: Fix CFI hash randomization with KASAN

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

base-commit: c757fc92a3f73734872c7793b97f06434773d65d

Signature · 1 line
2.39.0.314.g84b9a713c41-goog