Skip to content

Commit af6017b

Browse files
committed
rust: cfi: fix patchable-function-entry starting version
The `-Zpatchable-function-entry` flag is available since Rust 1.81.0, not Rust 1.80.0, i.e. commit ac7595fdb1ee ("Support for -Z patchable-function-entry") in upstream Rust. Fixes: ca627e6 ("rust: cfi: add support for CFI_CLANG with Rust") Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Fiona Behrens <me@kloenk.dev> Link: https://lore.kernel.org/r/20240925141944.277936-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent d065cc7 commit af6017b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ config RUST
19481948
depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE
19491949
depends on !CFI_CLANG || RUSTC_VERSION >= 107900 && $(cc-option,-fsanitize=kcfi -fsanitize-cfi-icall-experimental-normalize-integers)
19501950
select CFI_ICALL_NORMALIZE_INTEGERS if CFI_CLANG
1951-
depends on !CALL_PADDING || RUSTC_VERSION >= 108000
1951+
depends on !CALL_PADDING || RUSTC_VERSION >= 108100
19521952
depends on !KASAN_SW_TAGS
19531953
help
19541954
Enables Rust support in the kernel.

0 commit comments

Comments
 (0)