Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cross-language LLVM CFI support to the Rust compiler #105452

Merged
merged 2 commits into from
May 4, 2023

Commits on May 3, 2023

  1. Add cross-language LLVM CFI support to the Rust compiler

    This commit adds cross-language LLVM Control Flow Integrity (CFI)
    support to the Rust compiler by adding the
    `-Zsanitizer-cfi-normalize-integers` option to be used with Clang
    `-fsanitize-cfi-icall-normalize-integers` for normalizing integer types
    (see https://reviews.llvm.org/D139395).
    
    It provides forward-edge control flow protection for C or C++ and Rust
    -compiled code "mixed binaries" (i.e., for when C or C++ and Rust
    -compiled code share the same virtual address space). For more
    information about LLVM CFI and cross-language LLVM CFI support for the
    Rust compiler, see design document in the tracking issue rust-lang#89653.
    
    Cross-language LLVM CFI can be enabled with -Zsanitizer=cfi and
    -Zsanitizer-cfi-normalize-integers, and requires proper (i.e.,
    non-rustc) LTO (i.e., -Clinker-plugin-lto).
    rcvalle committed May 3, 2023
    Configuration menu
    Copy the full SHA
    004aa15 View commit details
    Browse the repository at this point in the history
  2. Update documentation for LLVM CFI support

    This commit updates the documentation for the LLVM Control Flow
    Integrity (CFI) support in the Rust compiler.
    rcvalle committed May 3, 2023
    Configuration menu
    Copy the full SHA
    9a02f65 View commit details
    Browse the repository at this point in the history