寻找驱逐集的理论与实践
Theory and Practice of Finding Eviction Sets
摘要:
许多微架构攻击依赖于攻击者有效地找到小的驱逐集的能力:映射到同一缓存集的虚拟地址组。这种能力已经成为高速缓存侧通道、Rowhammer和推测执行攻击的决定性基础。尽管它们的重要性,算法寻找小驱逐集还没有被系统地研究在文献中。在本文中,我们进行了这样一个系统的研究。我们开始正式的问题和分析的概率,一组随机的虚拟地址是一个驱逐集。然后,我们提出了新的算法,从阈值组测试的想法的基础上,减少随机驱逐集的最小核心在线性时间,提高了二次国家的最先进的。我们补充了我们的算法的理论分析与严格的实证评估,我们确定和隔离的因素,影响其在实践中的可靠性,如自适应缓存替换策略和TLB颠簸。我们的研究结果表明,我们的算法能够找到小驱逐集比以前快得多,在以前被认为是不切实际的条件下。
英文摘要:
Many micro-architectural attacks rely on the capability of an attacker to efficiently find small eviction sets: groups of virtual addresses that map to the same cache set. This capability has become a decisive primitive for cache side-channel, rowhammer, and speculative execution attacks. Despite their importance, algorithms for finding small eviction sets have not been systematically studied in the literature. In this paper, we perform such a systematic study. We begin by formalizing the problem and analyzing the probability that a set of random virtual addresses is an eviction set. We then present novel algorithms, based on ideas from threshold group testing, that reduce random eviction sets to their minimal core in linear time, improving over the quadratic state-of-the-art. We complement the theoretical analysis of our algorithms with a rigorous empirical evaluation in which we identify and isolate factors that affect their reliability in practice, such as adaptive cache replacement strategies and TLB thrashing. Our results indicate that our algorithms enable finding small eviction sets much faster than before, and under conditions where this was previously deemed impractical.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。