]> 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>
Thu, 31 Mar 2022 18:33:51 +0000 (19:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Apr 2022 10:41:09 +0000 (12:41 +0200)
commit7bcd194d9823cfd1e09f461bb44c2fdd8581ef71
tree47be2f5249a4a78174a6a6376a5e794cfecb311f
parent64bb608e39b5bf0455a9c2380f16f79518a7b4c6
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