Avatar缓存:利用可变形缓存架构实现按需安全 The Avatar Cache: Enabling On-Demand Security with Morphable Cache Architecture 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-02-06
⬇️ 2 次下载
👁️ 预览文献
💡 AI 中文简介
现代处理器中多个核心共享最后一级缓存(LLC),这使其容易遭受跨核冲突和占用攻击。现有安全LLC设计要么面积开销大,要么性能损失严重。本文提出Avatar,一种可变形安全LLC,支持非安全、随机化安全和分区安全三种模式,并能动态切换。Avatar在几乎不改变传统组相联缓存结构的前提下,仅增加1.5%存储开销和0.2%性能损失,就能提供极强的安全保证(每10^30年才发生一次组相联驱逐),分区模式性能损失仅3%,远优于现有方案。
领域计算机体系结构 / 硬件安全
适合谁读需要一定专业背景(计算机体系结构、硬件安全基础知识)
核心贡献1. 提出Avatar可变形LLC,支持非安全、随机化安全和分区安全三种模式动态切换,仅在需要时启用安全,兼顾性能与能效。2. Avatar-R利用额外无效条目和高相联度,以极低开销(1.5%存储、2.7%静态功耗、0.2%性能损失)实现强安全保证;Avatar-P以仅3%性能损失缓解冲突和占用攻击,显著优于现有基于路的分区方案。
关键数据Avatar-R:每10^30年发生一次组相联驱逐,存储开销1.5%,静态功耗增加2.7%,性能损失0.2%(对比16MB基线)。Avatar-P:性能损失仅3%,远低于现有方案(平均>5%,最高49%)。
推荐理由如果你关心CPU缓存安全又不想牺牲性能,这篇论文提出的Avatar方案几乎不增加开销就能实现超强防护,还支持按需切换,非常值得一读!
关键词["最后一级缓存", "缓存安全", "侧信道攻击", "可变形架构", "按需安全", "组相联缓存"]

原文摘要

查看英文原文摘要

The sharing of the last-level cache (LLC) among multiple cores makes it vulnerable to cross-core conflict- and occupancy-based attacks. Despite extensive prior work, modern processors still employ non-secure set-associative LLCs. Existing secure LLC designs broadly fall into two categories: (i) randomized and (ii) partitioned. The state-of-the-art randomized design, Mirage, mitigates conflict-based attacks but incurs significant area overhead (20% additional storage) and design complexity. Partitioned LLCs mitigate both conflict- and occupancy-based attacks, but often suffer from large performance overheads (on average over 5% and up to 49%), require OS support in set-based schemes, or face scalability issues in way-based schemes. These factors pose major obstacles to the industrial adoption of secure LLCs. This paper asks whether strong LLC security can be achieved with minimal changes to a conventional set-associative LLC, enabling security only when needed while preserving low performance, power, and area overheads. We propose Avatar, a secure and morphable LLC that supports three modes: non-secure (Avatar-N), randomized secure (Avatar-R), and partitioned secure (Avatar-P), and can switch dynamically between them. Avatar closely resembles a conventional set-associative LLC, facilitating industrial adoption. Avatar-R introduces extra invalid entries and leverages high associativity to provide a strong security guarantee with little capacity loss, achieving only one set-associative eviction per $10^{30}$ years, while incurring 1.5% storage overhead, a 2.7% increase in static power, and a 0.2% slowdown over a 16~MB baseline. Avatar-P mitigates both conflict- and occupancy-based attacks with only a 3% performance overhead, substantially outperforming prior way-based partitioned LLCs. When security is unnecessary, Avatar switches to Avatar-N to maximize performance and energy efficiency.