diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-11-22 10:12:27 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-11-22 10:12:27 -0800 |
| commit | 2dc60bd9975fc8666a13d58410499e06e6799ba9 (patch) | |
| tree | 652b49b6791d1676a9f4240fdc209f2ac5574d3b /kernel/trace/rv/monitors/sco/sco_kunit.h | |
| parent | 69712157c9f40ac806fa0448ac56475eae40957f (diff) | |
| parent | 73bdf8773de4af2c2b7f49370191ae6d5aeddea5 (diff) | |
Pull Rust fixes from Miguel Ojeda:
"Toolchain and infrastructure:
- Disable function merging in all cases to fix broken MODVERSIONS
information with gendwarfksyms, wrong backtraces and possibly
issues with pahole/BTF due to lost debug information.
- x86: emit the expected 'cs' prefix for RETPOLINE builds by passing
the '-Zindirect-branch-cs-prefix' flag we added to 'rustc', which
fixes boot failures (with 'spectre_v2=retpoline,lfence') and code
corruption (with paranoid FineIBT).
- Fix objtool warnings for the upcoming Rust 1.101.0 (expected
2026-12-24) by adding more 'noreturn' functions.
'kernel' crate:
- 'str' module: fix soundness issue in 'Formatter::new()' by tying
the returned formatter to the lifetime of its backing buffer.
- 'iov' module: fix soundness issue in 'copy_from_iter_raw()' by
tying the returned slice to the lifetime of the output buffer.
I suggested upstream Rust to introduce a lint for this case of the
lifetime elision rule, to avoid repeating this sort of mistake"
* tag 'rust-fixes-7.4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux:
kbuild: rust: disable function merging unconditionally
rust: str: tie Formatter to its backing buffer
rust: iov: fix return lifetime of `copy_from_iter_raw()`
x86/rust: use `-Zindirect-branch-cs-prefix` for RETPOLINE builds
objtool/rust: add more `noreturn` Rust functions for Rust 1.101.0
Diffstat (limited to 'kernel/trace/rv/monitors/sco/sco_kunit.h')
0 files changed, 0 insertions, 0 deletions
