]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: entry: Add non-kpti __bp_harden_el1_vectors for mitigations
authorJames Morse <james.morse@arm.com>
Fri, 18 Mar 2022 17:48:33 +0000 (17:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Mar 2022 08:10:43 +0000 (09:10 +0100)
commit901c0a20aa94d09a9328899e2dd69a8d43a3a920
tree6cefdd4027c3dfe132886885eb41dbda76a1708b
parent22fdfcf1c2cea8e6dc383d46cbbe59d476d24a96
arm64: entry: Add non-kpti __bp_harden_el1_vectors for mitigations

commit aff65393fa1401e034656e349abd655cfe272de0 upstream.

kpti is an optional feature, for systems not using kpti a set of
vectors for the spectre-bhb mitigations is needed.

Add another set of vectors, __bp_harden_el1_vectors, that will be
used if a mitigation is needed and kpti is not in use.

The EL1 ventries are repeated verbatim as there is no additional
work needed for entry from EL1.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/entry.S