]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ARM: fix Thumb2 regression with Spectre BHB
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 11 Mar 2022 17:13:17 +0000 (17:13 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:17:50 +0000 (15:17 +0200)
commit152310d2a7c0e167702915713cba12b337eaa9c6
tree8d4e1b161169e0bcc56debc0863e4a24a7213706
parent5d4d869e9666f8b9ae257abd87e94cbae119f1f8
ARM: fix Thumb2 regression with Spectre BHB

BugLink: https://bugs.launchpad.net/bugs/1969672
commit 6c7cb60bff7aec24b834343ff433125f469886a3 upstream.

When building for Thumb2, the vectors make use of a local label. Sadly,
the Spectre BHB code also uses a local label with the same number which
results in the Thumb2 reference pointing at the wrong place. Fix this
by changing the number used for the Spectre BHB local label.

Fixes: b9baf5c8c5c3 ("ARM: Spectre-BHB workaround")
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/kernel/entry-armv.S