x86/boot/64: Use RIP_REL_REF() to access '__supported_pte_mask'
authorArd Biesheuvel <ardb@kernel.org>
Wed, 21 Feb 2024 11:35:11 +0000 (12:35 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 26 Feb 2024 11:58:35 +0000 (12:58 +0100)
commit4f8b6cf25f5c119b117cb2a4bacb604a6cd00ff1
treea3e424df37fef10b2bd94593b765940399b0a284
parentb0fe5fb6095be0f68b570c4cf4cd86b7e70c2e38
x86/boot/64: Use RIP_REL_REF() to access '__supported_pte_mask'

'__supported_pte_mask' is accessed from code that executes from a 1:1
mapping so it cannot use a plain access from C. Replace the use of
fixup_pointer() with RIP_REL_REF(), which is better and simpler.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240221113506.2565718-22-ardb+git@google.com
arch/x86/kernel/head64.c