rust/compiler/rustc_hir_analysis/src
Matthias Krüger 947fe7e341
Rollup merge of #105109 - rcvalle:rust-kcfi, r=bjorn3
Add LLVM KCFI support to the Rust compiler

This PR adds LLVM Kernel Control Flow Integrity (KCFI) support to the Rust compiler. It initially provides forward-edge control flow protection for operating systems kernels for Rust-compiled code only by aggregating function pointers in groups identified by their return and parameter types. (See llvm/llvm-project@cff5bef.)

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 #89653).

LLVM KCFI can be enabled with -Zsanitizer=kcfi.

Thank you again, `@bjorn3,` `@eddyb,` `@nagisa,` and `@ojeda,` for all the help!
2022-12-10 09:24:43 +01:00
..
astconv normalize inherent associated types after substitution 2022-12-05 18:02:47 +01:00
check Auto merge of #104799 - pcc:linkage-fn, r=tmiasko 2022-12-07 10:24:59 +00:00
coherence Rollup merge of #104786 - WaffleLapkin:amp-mut-help, r=compiler-errors 2022-11-26 17:47:23 +01:00
collect Make nested RPITIT inherit the parent opaque's generics. 2022-12-04 14:38:20 +00:00
impl_wf_check Introduce PredicateKind::Clause 2022-11-25 00:04:54 -03:00
outlives Make inferred_outlives_crate return Clause 2022-11-29 12:01:58 -03:00
structured_errors Change how suggested lifetime args are computed. 2022-11-24 17:48:42 +00:00
variance Recurse into nested impl-trait when computing variance. 2022-12-04 13:54:56 +00:00
bounds.rs Stop passing the self-type as a separate argument. 2022-11-21 20:39:46 +00:00
check_unused.rs Remove useless filter in unused extern crate check. 2022-12-03 09:23:03 +00:00
collect.rs Rollup merge of #105109 - rcvalle:rust-kcfi, r=bjorn3 2022-12-10 09:24:43 +01:00
constrained_generic_params.rs Introduce PredicateKind::Clause 2022-11-25 00:04:54 -03:00
errors.rs Auto merge of #104799 - pcc:linkage-fn, r=tmiasko 2022-12-07 10:24:59 +00:00
hir_wf_check.rs Convert predicates into Predicate in the Obligation constructor 2022-11-16 09:25:19 +00:00
impl_wf_check.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
lib.rs Make ObligationCtxt::normalize take cause by borrow 2022-11-28 17:35:40 +00:00
structured_errors.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00