[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 4 Apr 2024 16:33:08 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Conor Dooley <conor@...nel.org>
Cc: linux-riscv@...ts.infradead.org, Conor Dooley <conor.dooley@...rochip.com>,
stable@...r.kernel.org, Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>, Wedson Almeida Filho <wedsonaf@...il.com>, linux-kernel@...r.kernel.org,
rust-for-linux@...r.kernel.org, Sami Tolvanen <samitolvanen@...gle.com>,
Kees Cook <keescook@...omium.org>, Nathan Chancellor <nathan@...nel.org>, llvm@...ts.linux.dev,
Matthew Maurer <mmaurer@...gle.com>, Ramon de C Valle <rcvalle@...gle.com>
Subject: Re: [PATCH v3] rust: make mutually exclusive with CFI_CLANG
On Thu, Apr 4, 2024 at 4:17 PM Conor Dooley <conor@...nel.org> wrote:
>
> From: Conor Dooley <conor.dooley@...rochip.com>
>
> On RISC-V and arm64, and presumably x86, if CFI_CLANG is enabled,
> loading a rust module will trigger a kernel panic. Support for
> sanitisers, including kcfi (CFI_CLANG), is in the works, but for now
> they're nightly-only options in rustc. Make RUST depend on !CFI_CLANG
> to prevent configuring a kernel without symmetrical support for kfi.
>
> Fixes: 2f7ab1267dc9 ("Kbuild: add Rust support")
> cc: stable@...r.kernel.org
> Signed-off-by: Conor Dooley <conor.dooley@...rochip.com>
> ---
> Sending this one on its own, there's no explicit dep on this for the
> riscv enabling patch, v3 to continue the numbering from there. Nothing
> has changed since v2.
>
> CC: Miguel Ojeda <ojeda@...nel.org>
> CC: Alex Gaynor <alex.gaynor@...il.com>
> CC: Wedson Almeida Filho <wedsonaf@...il.com>
> CC: linux-kernel@...r.kernel.org (open list)
> CC: rust-for-linux@...r.kernel.org
> CC: Sami Tolvanen <samitolvanen@...gle.com>
> CC: Kees Cook <keescook@...omium.org>
> CC: Nathan Chancellor <nathan@...nel.org>
> CC: llvm@...ts.linux.dev
Cc'ing Matthew & Ramon as well so that they are aware and in case they
want to comment.
Cheers,
Miguel
Powered by blists - more mailing lists