Software Mitigation of RISC-V Spectre Attacks

Ruxandra Bălucea, Paul Irofti
6/9/2022
cs.CRcs.OS

Official code: riscv-spectre-mitigations/llvm_retpoline (4 stars, last commit 2023-09-16).

Abstract

Speculative attacks are still an active threat today that, even if initially focused on the x86 platform, reach across all modern hardware architectures. RISC-V is a newly proposed open instruction set architecture that has seen traction from both the industry and academia in recent years.

Show full abstract

In this paper we focus on the RISC-V cores where speculation is enabled and, as we show, where Spectre attacks are as effective as on x86. Even though RISC-V hardware mitigations were proposed in the past, they have not yet passed the prototype phase. Instead, we propose low-overhead software mitigations for Spectre-BTI, inspired from those used on the x86 architecture, and for Spectre-RSB, to our knowledge the first such mitigation to be proposed. We show that these mitigations work in practice and that they can be integrated in the LLVM toolchain. For transparency and reproducibility, all our programs and data are made publicly available online.

View on arXivView PDF

Code Implementations(1)

40Sep 16, 20233 years ago

Similar Papers

Cite this paper

@article{blucea2022software,
  title  = {Software Mitigation of RISC-V Spectre Attacks},
  author = {Ruxandra Bălucea and Paul Irofti},
  year   = {2022},
  eprint = {2206.04507},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.04507}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.04507.svg)](https://codeofpaper.com/paper/2206.04507)

Discussion