arm64: entry: Add non-kpti __bp_harden_el1_vectors for mitigations
authorJames Morse <james.morse@arm.com>
Wed, 24 Nov 2021 15:03:15 +0000 (15:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Mar 2022 11:22:34 +0000 (12:22 +0100)
commitffb8a34c0fd81fdcf677bc8e9af251ea526e8c49
tree45d124b04ff66d88a40de5931011303117ca1921
parent517f988ee0500688ac23e011bc3bbbf502e76a23
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