arm64: proton-pack: Report Spectre-BHB vulnerabilities as part of Spectre-v2
authorJames Morse <james.morse@arm.com>
Tue, 8 Feb 2022 16:08:13 +0000 (16:08 +0000)
committerJames Morse <james.morse@arm.com>
Wed, 16 Feb 2022 13:22:26 +0000 (13:22 +0000)
commitdee435be76f4117410bbd90573a881fd33488f37
tree6e4e6dd78356872f838e6ab61887efa38a412496
parentbd09128d16fac3c34b80bd6a29088ac632e8ce09
arm64: proton-pack: Report Spectre-BHB vulnerabilities as part of Spectre-v2

Speculation attacks against some high-performance processors can
make use of branch history to influence future speculation as part of
a spectre-v2 attack. This is not mitigated by CSV2, meaning CPUs that
previously reported 'Not affected' are now moderately mitigated by CSV2.

Update the value in /sys/devices/system/cpu/vulnerabilities/spectre_v2
to also show the state of the BHB mitigation.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
arch/arm64/include/asm/spectre.h
arch/arm64/kernel/proton-pack.c