ARM: Spectre-BHB workaround
stable inclusion from stable-v4.19.234 commit 99e14db3b711c27f93079ba9d7f2fff169916d5f category: bugfix bugzilla: 186460, https://gitee.com/src-openeuler/kernel/issues/I53MHA CVE: CVE-2022-23960 -------------------------------- commit b9baf5c8c5c356757f4f9d8180b5e9d234065bc3 upstream. Workaround the Spectre BHB issues for Cortex-A15, Cortex-A57, Cortex-A72, Cortex-A73 and Cortex-A75. We also include Brahma B15 as well to be safe, which is affected by Spectre V2 in the same ways as Cortex-A15. Reviewed-by:Catalin Marinas <catalin.marinas@arm.com> Signed-off-by:
Russell King (Oracle) <rmk+kernel@armlinux.org.uk> [changes due to lack of SYSTEM_FREEING_INITMEM - gregkh] Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by:
Xiu Jianfeng <xiujianfeng@huawei.com> Reviewed-by:
Liao Chang <liaochang1@huawei.com> Signed-off-by:
Yongqiang Liu <liuyongqiang13@huawei.com>
Showing
- arch/arm/include/asm/assembler.h 10 additions, 0 deletionsarch/arm/include/asm/assembler.h
- arch/arm/include/asm/spectre.h 4 additions, 0 deletionsarch/arm/include/asm/spectre.h
- arch/arm/kernel/entry-armv.S 73 additions, 6 deletionsarch/arm/kernel/entry-armv.S
- arch/arm/kernel/entry-common.S 24 additions, 0 deletionsarch/arm/kernel/entry-common.S
- arch/arm/kernel/spectre.c 4 additions, 0 deletionsarch/arm/kernel/spectre.c
- arch/arm/kernel/traps.c 38 additions, 0 deletionsarch/arm/kernel/traps.c
- arch/arm/kernel/vmlinux.lds.h 15 additions, 3 deletionsarch/arm/kernel/vmlinux.lds.h
- arch/arm/mm/Kconfig 10 additions, 0 deletionsarch/arm/mm/Kconfig
- arch/arm/mm/proc-v7-bugs.c 76 additions, 0 deletionsarch/arm/mm/proc-v7-bugs.c
Please register or sign in to comment