通过缓存LRU状态泄漏信息
Leaking Information Through Cache LRU States
摘要:
最近最少使用的缓存替换策略及其变体广泛部署在现代处理器中。本文首次详细说明了缓存的LRU状态可以用来泄露信息:发送方对缓存的任何访问都会修改LRU状态,并且接收方能够通过定时测量观察到这一点。本文介绍了LRU定时为基础的信道时,发送方和接收方有共享的内存,例如,共享库数据页,以及当它们是没有共享内存的独立进程时。此外,在发送方和接收方在超线程设置和时间分片设置中共享缓存的情况下,在英特尔和AMD处理器上演示了新的基于LRU定时的通道。在超线程设置中,LRU通道的传输速率可以高达每缓存600 Kbps。与大多数现有的高速缓存通道不同,这些通道需要发送方触发高速缓存未命中,新的LRU通道只在发送方有高速缓存命中时工作,使通道更快,更隐蔽。本文还证明了新的LRU通道可以用于瞬时执行攻击,例如,幽灵此外,本文表明,LRU通道对现有的安全缓存设计构成威胁,这项工作表明LRU通道影响安全PL缓存。本文最后讨论和评估可能的防御。
英文摘要:
The Least-Recently Used cache replacement policy and its variants are widely deployed in modern processors. This paper shows for the first time in detail that the LRU states of caches can be used to leak information: any access to a cache by a sender will modify the LRU state, and the receiver is able to observe this through a timing measurement. This paper presents LRU timing-based channels both when the sender and the receiver have shared memory, e.g., shared library data pages, and when they are separate processes without shared memory. In addition, the new LRU timing-based channels are demonstrated on both Intel and AMD processors in scenarios where the sender and the receiver are sharing the cache in both hyper-threaded setting and time-sliced setting. The transmission rate of the LRU channels can be up to 600Kbps per cache set in the hyper-threaded setting. Different from the majority of existing cache channels which require the sender to trigger cache misses, the new LRU channels work with the sender only having cache hits, making the channel faster and more stealthy. This paper also demonstrates that the new LRU channels can be used in transient execution attacks, e.g., Spectre. Further, this paper shows that the LRU channels pose threats to existing secure cache designs, and this work demonstrates the LRU channels affect the secure PL cache. The paper finishes by discussing and evaluating possible defenses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。