arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.04507cs.CRcs.OS
收藏

RISC-V Spectre攻击的软件缓解方案

Software Mitigation of RISC-V Spectre Attacks

Ruxandra Bălucea, Paul Irofti

AI总结:

针对启用推测执行的RISC-V核心易受Spectre攻击且硬件缓解方案仍处原型阶段的问题,提出低开销的Spectre-BTI与首个Spectre-RSB软件缓解方案,验证其有效且可集成至LLVM工具链,并公开相关代码数据。

摘要:

推测执行攻击如今仍是一种活跃的威胁,尽管最初主要针对x86平台,但现已波及所有现代硬件架构。RISC-V是一种新近提出的开放指令集架构,近年来在工业界和学术界都获得了广泛关注。本文聚焦于启用了推测执行的RISC-V核心,我们的研究表明,Spectre攻击在这类核心上的效果与在x86上一样显著。尽管此前已有针对RISC-V的硬件缓解方案被提出,但它们尚未走出原型阶段。对此,我们提出了低开销的软件缓解方案:其中针对Spectre-BTI(分支目标注入型Spectre)的方案灵感源自x86架构上的现有方案,而针对Spectre-RSB(返回栈缓冲区型Spectre)的方案据我们所知是首个此类缓解方案。我们验证了这些缓解方案在实际场景中有效,且可以集成到LLVM工具链中。为保证透明度与可复现性,我们所有的程序和数据都已在线公开。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑