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

CVA6的数据缓存:结构与行为

CVA6's Data cache: Structure and Behavior

Valentin Martinoli, Yannick Teglia, Abdellah Bouagoun, Régis Leveugle

摘要:

自2018年Spectre和Meltdown被披露以来,科学界已经确定并描述了一种新的攻击类别。不久之后,Foreshadow攻击就被开发出来,这是第一个针对英特尔安全飞地技术(即SGX)的攻击。它开辟了对英特尔架构的微架构攻击的道路,并导致了微架构攻击的快速发展,直到今天。虽然Spectre和Meltdown通常被认为是第一种微架构攻击,但有人认为Osvik等人在2006年引入的缓存攻击可以被视为开发的第一种微架构攻击。现在,尽管有很多变种,但它们仍然是最突出的微架构攻击类型。高速缓存微架构隐蔽通道的一个示例是Prime+Probe。最近针对英特尔架构的微架构攻击现在正在挑战更广泛的CPU。最近,运行RISC-V指令集架构的CPU已成为目标。一个著名的和广泛使用的RISC-V CPU是苏黎世联邦理工学院的CVA 6(以前的阿丽亚娜)核心。CVA 6是一个6级、单次、有序的CPU。据我们所知,目前还没有任何文档介绍CVA 6微架构的详细信息,尤其是数据缓存方面。这些信息对于深入理解任何架构或微架构研究都是必不可少的,例如Nils Wistoff提出的对CVA 6 CPU的Prime+Probe攻击的复制。本文介绍了OpenHW集团CVA 6 CPU中数据缓存的实现,重点介绍了其内存结构,并通过几个例子解释了当内存分配请求发生时会发生什么。

英文摘要:

Since Spectre and Meltdown's disclosure in 2018, a new category of attacks has been identified and characterized by the scientific community. The Foreshadow attack, which was the first one to target Intel's secure enclave technology (namely SGX) has been developed shortly after. It opened the way to micro architectural attacks on Intel's architecture, and led to the quick development of micro architectural attacks until today. While Spectre and Meltdown are often considered as the first micro architectural attacks, one can argue that cache attacks, as introduced by Osvik et al. in 2006, can be seen as the first types of micro architectural attacks that were developed. Now, even though there are many variants, they are still the most prominent type of micro architectural attacks. One example of cache micro architectural covert-channel is the Prime+Probe. Lately targeting the Intel architecture, the micro architectural attacks are now challenging a wider variety of CPUs. Recently, CPUs running the RISC-V Instruction Set Architecture have been targeted. One famous and widely used RISC-V CPU is the ETH Zurich's CVA6 (formerly Ariane) core. CVA6 is a 6-stage, single issue, in-order CPU. To the best of our knowledge, there is no existing document presenting very detailed aspects of the CVA6's micro architecture, especially with respect to the data cache. Such information is mandatory to deeply understand any architectural or micro architectural study successfully, such as the replication of the Prime+Probe attack on the CVA6 CPU proposed by Nils Wistoff. This paper presents the implementation of the Data cache in the CVA6 CPU from OpenHW Group by focusing on its memory structure and explaining through several examples what happens when a request for memory allocation occurs.

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

↑