]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: Add support for TSV110 Spectre-BHB mitigation
authorJinqian Yang <yangjinqian1@huawei.com>
Sat, 27 Dec 2025 09:24:48 +0000 (17:24 +0800)
committerWill Deacon <will@kernel.org>
Mon, 5 Jan 2026 21:07:49 +0000 (21:07 +0000)
The TSV110 processor is vulnerable to the Spectre-BHB (Branch History
Buffer) attack, which can be exploited to leak information through
branch prediction side channels. This commit adds the MIDR of TSV110
to the list for software mitigation.

Signed-off-by: Jinqian Yang <yangjinqian1@huawei.com>
Reviewed-by: Zenghui Yu <zenghui.yu@linux.dev>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/proton-pack.c

index 80a580e019c5017e02f14f324d444964cab883d6..b3801f532b10b36ff56ba3cdff5b85c80ba92098 100644 (file)
@@ -887,6 +887,7 @@ static u8 spectre_bhb_loop_affected(void)
                MIDR_ALL_VERSIONS(MIDR_CORTEX_X2),
                MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N2),
                MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V1),
+               MIDR_ALL_VERSIONS(MIDR_HISI_TSV110),
                {},
        };
        static const struct midr_range spectre_bhb_k24_list[] = {