Skip to content

Rust KCFI support

Alice Ryhl linux-kbuild lkml rust-for-linux 2 versions – Applied

Status from this message: Applied to `rust-next` -- thanks everyone!

Get series with b4
b4 am [email protected] change-id 20240725-kcfi-c592898e2bfb

Versions newest first

  1. v2 Latest2 patches 9 repliesApplied
  2. v12 patches 17 repliesSuperseded

Changes in v2 from the cover letter

- Fix for FineIBT.
- Add more info to commit messages and config descrptions.
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2cfi: add CONFIG_CFI_ICALL_NORMALIZE_INTEGERSMakefile arch/Kconfig+19 -00 replies
2/2rust: cfi: add support for CFI_CLANG with RustMakefile arch/x86/Makefile init/Kconfig +2 more+16 -24 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Zijlstra (Intel)Sami TolvanenKees CookGatlin Newhouse
SeriesA-b R-b A-b T-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/2] Rust KCFI support

The control flow integrity (kCFI) sanitizer is an important sanitizer that is often used in production. This patch series makes it possible to use kCFI and Rust together.

The second patch in this series depends on the next version of [1], which Miguel will send soon. It also depends on [2].

---
Changes in v2:
- Fix for FineIBT.
- Add more info to commit messages and config descrptions.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Alice Ryhl (1):
cfi: add CONFIG_CFI_ICALL_NORMALIZE_INTEGERS

Matthew Maurer (1):
rust: cfi: add support for CFI_CLANG with Rust

 Makefile                        | 10 ++++++++++
 arch/Kconfig                    | 16 ++++++++++++++++
 arch/x86/Makefile               |  4 ++++
 init/Kconfig                    |  4 +++-
 rust/Makefile                   |  2 +-
 scripts/generate_rust_target.rs |  1 +
 6 files changed, 35 insertions(+), 2 deletions(-)

---
base-commit: 8718bc07faa6ddf4f7335a12e4cdd4ffc796bbd8
change-id: 20240725-kcfi-c592898e2bfb

Best regards,

Signature · 1 line
Alice Ryhl <[email protected]>