]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
UBUNTU: SAUCE: arm64: entry: Move trampoline macros out of ifdef'd section
authorJames Morse <james.morse@arm.com>
Thu, 18 Nov 2021 14:02:30 +0000 (14:02 +0000)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 2 Mar 2022 08:32:19 +0000 (05:32 -0300)
commit5ee7d50fd901ddba83083dc15168d328704b44c0
treed065a0d17a2751ca8caca135dd198fcca0de732e
parent9db353c8bb935b6fd858cebb5f68748b76e1e8d0
UBUNTU: SAUCE: arm64: entry: Move trampoline macros out of ifdef'd section

The macros for building the kpti trampoline are all behind
CONFIG_UNMAP_KERNEL_AT_EL0, and in a region that outputs to the
.entry.tramp.text section.

Move the macros out so they can be used to generate other kinds of
trampoline. Only the symbols need to be guarded by
CONFIG_UNMAP_KERNEL_AT_EL0 and appear in the .entry.tramp.text section.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
CVE-2022-23960
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
arch/arm64/kernel/entry.S