arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1904.11170cs.PL
收藏

投机执行下的抽象解释

Abstract Interpretation under Speculative Execution

Meng Wu, Chao Wang

摘要:

分析在支持推测执行的处理器上运行的程序的行为对于诸如执行时间估计和侧通道检测之类的应用是至关重要的。遗憾的是,现有的基于抽象解释的静态分析技术不对推测执行建模,因为它们关注程序的功能属性,而推测执行不改变功能。为了填补这一空白,我们提出了一种方法,使抽象的解释合理的投机执行。有两个贡献。首先,我们引入虚拟控制流的概念,以增加可能被推测执行的指令,从而影响后续指令。其次,为了使分析有效,我们提出了优化处理合并和循环,并安全地限制投机执行深度。我们已经实施和评估所提出的方法在静态高速缓存分析的执行时间估计和侧通道检测。我们的实验表明,新的方法,而保证是合理的投机执行下,优于国家的最先进的抽象解释技术,可能是不合理的。

英文摘要:

Analyzing the behavior of a program running on a processor that supports speculative execution is crucial for applications such as execution time estimation and side channel detection. Unfortunately, existing static analysis techniques based on abstract interpretation do not model speculative execution since they focus on functional properties of a program while speculative execution does not change the functionality. To fill the gap, we propose a method to make abstract interpretation sound under speculative execution. There are two contributions. First, we introduce the notion of virtual control flow to augment instructions that may be speculatively executed and thus affect subsequent instructions. Second, to make the analysis efficient, we propose optimizations to handle merges and loops and to safely bound the speculative execution depth. We have implemented and evaluated the proposed method in a static cache analysis for execution time estimation and side channel detection. Our experiments show that the new method, while guaranteed to be sound under speculative execution, outperforms state-of-the-art abstract interpretation techniques that may be unsound.

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

↑