summaryrefslogtreecommitdiff
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorCharlie Jenkins <charlie@rivosinc.com>2024-11-14 05:21:20 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2025-01-18 23:33:39 +0300
commit4bf97069239bcfca9840936313c7ac35a6e04488 (patch)
tree32084ed1af940bb069b25c8bb58c855212cff94c /scripts/clang-tools/gen_compile_commands.py
parentc384c5d4a2aed5b6a10de1fcc2f5b46ad4aeeea8 (diff)
downloadlinux-4bf97069239bcfca9840936313c7ac35a6e04488.tar.xz
riscv: Add ghostwrite vulnerability
Follow the patterns of the other architectures that use GENERIC_CPU_VULNERABILITIES for riscv to introduce the ghostwrite vulnerability and mitigation. The mitigation is to disable all vector which is accomplished by clearing the bit from the cpufeature field. Ghostwrite only affects thead c9xx CPUs that impelment xtheadvector, so the vulerability will only be mitigated on these CPUs. Signed-off-by: Charlie Jenkins <charlie@rivosinc.com> Tested-by: Yangyu Chen <cyy@cyyself.name> Link: https://lore.kernel.org/r/20241113-xtheadvector-v11-14-236c22791ef9@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions