Slice+Slice Baby:瞬间生成末级缓存驱逐集
Slice+Slice Baby: Generating Last-Level Cache Eviction Sets in the Blink of an Eye
AI总结:
针对英特尔处理器切片缓存设计下驱逐集生成难题,本研究利用微架构竞争识别缓存切片、结合哈希函数优化并解决非线性哈希跨页偏移问题,大幅缩短生成时间,性能远超现有技术。
摘要:
发动缓存攻击的关键步骤是找到驱逐集,即争夺缓存空间的内存位置集合。在英特尔处理器上,识别竞争地址的主要挑战之一是切片缓存设计,处理器会对物理地址进行哈希运算以确定内存位置在缓存中的存储位置。尽管以往研究证明哈希函数可被逆向,但也表明其依赖攻击者未知的物理地址位。本研究在驱逐集生成技术上有三大贡献:首先利用微架构竞争比较内存访问时间,识别地址映射的缓存切片;然后通过已知哈希函数降低切片识别方法的错误率,并通过外推未测试内存地址的切片映射减少工作量;最后针对此前未探索的非线性哈希函数情况,展示如何跨不同页偏移传播驱逐集信息。在英特尔i7-9850H和i9-10900K处理器上(均采用非线性函数),本方法可在0.7秒和1.6秒内生成完整末级缓存驱逐集,相比当前最先进技术分别快9倍和10倍,提升显著。
英文摘要:
An essential step for mounting cache attacks is finding eviction sets, collections of memory locations that contend on cache space. On Intel processors, one of the main challenges for identifying contending addresses is the sliced cache design, where the processor hashes the physical address to determine where in the cache a memory location is stored. While past works have demonstrated that the hash function can be reversed, they also showed that it depends on physical address bits that the adversary does not know. In this work, we make three main contributions to the art of finding eviction sets. We first exploit microarchitectural races to compare memory access times and identify the cache slice to which an address maps. We then use the known hash function to both reduce the error rate in our slice identification method and to reduce the work by extrapolating slice mappings to untested memory addresses. Finally, we show how to propagate information on eviction sets across different page offsets for the hitherto unexplored case of non-linear hash functions. Our contributions allow for entire LLC eviction set generation in 0.7 seconds on the Intel i7-9850H and 1.6 seconds on the i9-10900K, both using non-linear functions. This represents a significant improvement compared to state-of-the-art techniques taking 9x and 10x longer, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。