diff options
| author | Kevin Loughlin <[email protected]> | 2024-11-22 20:23:22 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-02-27 22:01:33 +0000 |
| commit | 72dafb567760320f2de7447cd6e979bf9d4e5d17 (patch) | |
| tree | faf3f96eb34d0718e1ed7f9608696a0d00dbcf67 /samples/rust/rust_driver_platform.rs | |
| parent | Linux 6.14-rc4 (diff) | |
| download | kernel-72dafb567760320f2de7447cd6e979bf9d4e5d17.tar.gz kernel-72dafb567760320f2de7447cd6e979bf9d4e5d17.zip | |
x86/sev: Add missing RIP_REL_REF() invocations during sme_enable()
The following commit:
1c811d403afd ("x86/sev: Fix position dependent variable references in startup code")
introduced RIP_REL_REF() to force RIP-relative accesses to global variables,
as needed to prevent crashes during early SEV/SME startup code.
For completeness, RIP_REL_REF() should be used with additional variables during
sme_enable():
https://lore.kernel.org/all/CAMj1kXHnA0fJu6zh634=fbJswp59kSRAbhW+ubDGj1+NYwZJ-Q@mail.gmail.com/
Access these vars with RIP_REL_REF() to prevent problem reoccurence.
Fixes: 1c811d403afd ("x86/sev: Fix position dependent variable references in startup code")
Signed-off-by: Kevin Loughlin <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Tom Lendacky <[email protected]>
Cc: Dave Hansen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
0 files changed, 0 insertions, 0 deletions
