diff options
| author | Miguel Ojeda <[email protected]> | 2024-07-25 18:33:21 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-08-18 21:34:37 +0000 |
| commit | fc582dfc1f20476cab9d43d0ee8ec0a6bfe13485 (patch) | |
| tree | e828411671b9b82b80c0e3ff1681a522056c7833 /rust/helpers/page.c | |
| parent | x86/rust: support MITIGATION_RETHUNK (diff) | |
| download | kernel-fc582dfc1f20476cab9d43d0ee8ec0a6bfe13485.tar.gz kernel-fc582dfc1f20476cab9d43d0ee8ec0a6bfe13485.zip | |
x86/rust: support MITIGATION_SLS
Support `MITIGATION_SLS` by enabling the target features that Clang does.
Without this, `objtool` would complain if enabled for Rust, e.g.:
rust/core.o: warning: objtool:
_R...next_up+0x44: missing int3 after ret
These should be eventually enabled via `-Ctarget-feature` when `rustc`
starts recognizing them (or via a new dedicated flag) [1].
Link: https://github.com/rust-lang/rust/issues/116851 [1]
Reviewed-by: Gary Guo <[email protected]>
Tested-by: Alice Ryhl <[email protected]>
Tested-by: Benno Lossin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/page.c')
0 files changed, 0 insertions, 0 deletions
