Commit 2df7cf89 authored by Chen Jiahao's avatar Chen Jiahao Committed by Yongqiang Liu
Browse files

arm64: fix extra cpucaps setup problem

hulk inclusion
category: bugfix
bugzilla: 186460, https://gitee.com/src-openeuler/kernel/issues/I53MHA


CVE: CVE-2022-23960

--------------------------------

When introducing a new cpucaps macro ARM64_SPECTRE_BHB, ARM64_NCAPS was
not able to modified easily due to KABI consistency. Here introduce
a workaround to properly setup ARM64_SPECTRE_BHB beyond ARM64_NCAPS
range.

Fixes: def2df57 ("KVM: arm64: Add templates for BHB mitigation sequences")
Signed-off-by: default avatarChen Jiahao <chenjiahao16@huawei.com>
Reviewed-by: default avatarZhang Jianhua <chris.zjh@huawei.com>
Reviewed-by: default avatarLiao Chang <liaochang1@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 44bf746f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment