Messages in this thread | | | From | "Hou Wenlong" <> | Subject | [PATCH 0/2] x86/head/64: Mark the code as __head in mem_encrypt_identity.c | Date | Tue, 17 Oct 2023 15:08:05 +0800 |
| |
Similar to head64.c, mark all the code in mem_encrypt_identity.c as __head since it runs in the identity address. This is part of the patchset that builds the head code as PIE[1].
[1]: https://lore.kernel.org/all/cover.1689130310.git.houwenlong.hwl@antgroup.com
Hou Wenlong (2): x86/head/64: Move the __head definition to <asm/init.h> x86/sme: Mark the code as __head in mem_encrypt_identity.c
arch/x86/include/asm/init.h | 2 ++ arch/x86/include/asm/mem_encrypt.h | 8 ++++---- arch/x86/kernel/head64.c | 3 +-- arch/x86/mm/mem_encrypt_identity.c | 27 ++++++++++++++------------- 4 files changed, 21 insertions(+), 19 deletions(-)
base-commit: 0c09c1d70838475762255844b72fa0e7fd6ace7c -- 2.31.1
| |