arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1903.10651cs.CR
收藏

用Venkman限制推测执行期间的控制流

Restricting Control Flow During Speculative Execution with Venkman

Zhuojia Shen, Jie Zhou, Divya Ojha, John Criswell

摘要:

侧信道攻击(诸如Spectre)利用推测性执行来窃取应用秘密,对现代计算系统构成重大威胁。虽然程序转换可以减轻一些Spectre攻击,但更高级的攻击可以推测性地转移控制流以绕过这些保护指令,从而使现有的防御变得无用。在本文中,我们提出了Venkman:一个系统,采用程序转换,以完全挫败Spectre攻击,毒药条目的分支目标缓冲区(BTB)和返回堆栈缓冲区(RSB)。Venkman转换代码,使控制流传输的所有有效目标在虚拟地址空间中具有相同的对齐;它进一步转换所有分支,以确保添加到BTB和RSB的所有条目都正确对齐。通过这种方式转换所有代码,Venkman确保在任何需要Spectre防御的程序中,所有控制流传输(包括推测性传输)都不会跳过Venkman添加到代码段中的保护性指令,以减轻Spectre攻击。与现有的防御不同,Venkman不会减少BTB和RSB的共享,也不会刷新这些结构,允许程序之间的安全共享和重用,同时保持对Spectre攻击的强大保护。我们在IBM POWER8机器上构建了Venkman的原型。我们对SPEC基准测试和选定应用程序的评估表明,Venkman将执行时间平均增加到3.47 $\times$,并将代码大小平均增加到1.94 $\times$,以确保执行围栏来减轻Spectre攻击。我们的评估还表明,使用Venkman构建的抗Spectre软件故障隔离(SFI)会导致2.42 $\times$空间开销和1.68 $\times$性能开销的几何平均值。

英文摘要:

Side-channel attacks such as Spectre that utilize speculative execution to steal application secrets pose a significant threat to modern computing systems. While program transformations can mitigate some Spectre attacks, more advanced attacks can divert control flow speculatively to bypass these protective instructions, rendering existing defenses useless. In this paper, we present Venkman: a system that employs program transformation to completely thwart Spectre attacks that poison entries in the Branch Target Buffer (BTB) and the Return Stack Buffer (RSB). Venkman transforms code so that all valid targets of a control-flow transfer have an identical alignment in the virtual address space; it further transforms all branches to ensure that all entries added to the BTB and RSB are properly aligned. By transforming all code this way, Venkman ensures that, in any program wanting Spectre defenses, all control-flow transfers, including speculative ones, do not skip over protective instructions Venkman adds to the code segment to mitigate Spectre attacks. Unlike existing defenses, Venkman does not reduce sharing of the BTB and RSB and does not flush these structures, allowing safe sharing and reuse among programs while maintaining strong protection against Spectre attacks. We built a prototype of Venkman on an IBM POWER8 machine. Our evaluation on the SPEC benchmarks and selected applications shows that Venkman increases execution time to 3.47$\times$ on average and increases code size to 1.94$\times$ on average when it is used to ensure that fences are executed to mitigate Spectre attacks. Our evaluation also shows that Spectre-resistant Software Fault Isolation (SFI) built using Venkman incurs a geometric mean of 2.42$\times$ space overhead and 1.68$\times$ performance overhead.

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

↑