]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/boot: Drop RIP_REL_REF() uses from SME startup code
authorArd Biesheuvel <ardb@kernel.org>
Thu, 10 Apr 2025 13:41:24 +0000 (15:41 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 12 Apr 2025 09:13:05 +0000 (11:13 +0200)
commitbee174b27e54462ef18b38f8377d27ac0ad14350
tree2160b0a12cb98c1e84901e6c28aa19de01cb3f63
parent7ae089ee75f3c77b94ff23204b41ea06da9f0193
x86/boot: Drop RIP_REL_REF() uses from SME startup code

RIP_REL_REF() has no effect on code residing in arch/x86/boot/startup,
as it is built with -fPIC. So remove any occurrences from the SME
startup code.

Note the SME is the only caller of cc_set_mask() that requires this, so
drop it from there as well.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Dionna Amalie Glaze <dionnaglaze@google.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Kevin Loughlin <kevinloughlin@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: linux-efi@vger.kernel.org
Link: https://lore.kernel.org/r/20250410134117.3713574-19-ardb+git@google.com
arch/x86/boot/startup/sme.c
arch/x86/include/asm/coco.h
arch/x86/include/asm/mem_encrypt.h