On Fri, Oct 14, 2022 at 11:05 AM Miguel Ojeda <miguel.ojeda.sandonis@xxxxxxxxx> wrote: > > On Tue, Oct 11, 2022 at 1:16 AM Sami Tolvanen <samitolvanen@xxxxxxxxxx> wrote: > > > > Rust supports IBT with -Z cf-protection=branch, but I don't see this > > option being enabled in the kernel yet. Cross-language CFI is going to > > require a lot more work though because the type systems are not quite > > compatible: > > > > https://github.com/rust-lang/rfcs/pull/3296 > > I have pinged Ramon de C Valle as he is the author of the RFC above > and implementation work too; since a month or so ago he also leads the > Exploit Mitigations Project Group in Rust. Thanks, Miguel. I also talked to Ramon about KCFI earlier this week and he expressed interest in helping with rustc support for it. In the meanwhile, I think we can just add a depends on !CFI_CLANG to avoid issues here. Sami