[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALNs47vtnOfUarrH8qiJAZpp6bs1jjcsMyb3-A2Gy9YiaDFVEw@mail.gmail.com>
Date: Thu, 12 Oct 2023 16:13:10 -0400
From: Trevor Gross <tmgross@...ch.edu>
To: Matthew Maurer <mmaurer@...gle.com>
Cc: peterz@...radead.org, Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Wedson Almeida Filho <wedsonaf@...il.com>,
"H. Peter Anvin" <hpa@...or.com>,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <benno.lossin@...ton.me>,
Andreas Hindborg <a.hindborg@...sung.com>,
Alice Ryhl <aliceryhl@...gle.com>,
linux-kernel@...r.kernel.org, rust-for-linux@...r.kernel.org
Subject: Re: [PATCH] x86: Enable IBT in Rust if enabled in C
On Mon, Oct 9, 2023 at 6:44 PM Matthew Maurer <mmaurer@...gle.com> wrote:
> +KBUILD_RUSTFLAGS += -Zcf-protection=branch -Zno-jump-tables
I have not tested this, but is it possible to enable these options via
`-Cllvm-args=...` instead of using the unstable flags?
If so, I think this would be preferred in case the exact flags change
before they become stable. It sounds like they are likely to change,
see [1].
If not, no big deal since it would just need an update at a rust version bump.
- Trevor
[1]: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/.60-Zbranch-protection.60.20stability
Powered by blists - more mailing lists