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 fine-grained LLVM CFI support to the Rust compiler #95548

Merged
merged 2 commits into from
Jul 24, 2022

Commits on Jul 23, 2022

  1. Add fine-grained LLVM CFI support to the Rust compiler

    This commit improves the LLVM Control Flow Integrity (CFI) support in
    the Rust compiler by providing forward-edge control flow protection for
    Rust-compiled code only by aggregating function pointers in groups
    identified by their return and parameter types.
    
    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) will be provided in later work as
    part of this project by identifying C char and integer type uses at the
    time types are encoded (see Type metadata in the design document in the
    tracking issue rust-lang#89653).
    
    LLVM CFI can be enabled with -Zsanitizer=cfi and requires LTO (i.e.,
    -Clto).
    rcvalle committed Jul 23, 2022
    Configuration menu
    Copy the full SHA
    5ad7a64 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 (see rust-lang#95548 and rust-lang#89653).
    rcvalle committed Jul 23, 2022
    Configuration menu
    Copy the full SHA
    f792f26 View commit details
    Browse the repository at this point in the history