Skip to main content
QUICK REVIEW

[论文解读] BlockHammer: Preventing RowHammer at Low Cost by Blacklisting Rapidly-Accessed DRAM Rows

A. Giray Yağlıkçı, Minesh Patel|arXiv (Cornell University)|Feb 11, 2021
Security and Verification in ComputingComputer Science参考文献 142被引用 29
一句话总结

BlockHammer 通过主动跟踪行激活率并使用 Bloom 过滤器来识别并列入黑名单的高活跃行,同时对攻击线程进行限流以保护良性工作负载,且无需修改或了解 DRAM 内部结构。

ABSTRACT

Aggressive memory density scaling causes modern DRAM devices to suffer from RowHammer, a phenomenon where rapidly activating a DRAM row can cause bit-flips in physically-nearby rows. Recent studies demonstrate that modern DRAM chips, including chips previously marketed as RowHammer-safe, are even more vulnerable to RowHammer than older chips. Many works show that attackers can exploit RowHammer bit-flips to reliably mount system-level attacks to escalate privilege and leak private data. Therefore, it is critical to ensure RowHammer-safe operation on all DRAM-based systems. Unfortunately, state-of-the-art RowHammer mitigation mechanisms face two major challenges. First, they incur increasingly higher performance and/or area overheads when applied to more vulnerable DRAM chips. Second, they require either proprietary information about or modifications to the DRAM chip design. In this paper, we show that it is possible to efficiently and scalably prevent RowHammer bit-flips without knowledge of or modification to DRAM internals. We introduce BlockHammer, a low-cost, effective, and easy-to-adopt RowHammer mitigation mechanism that overcomes the two key challenges by selectively throttling memory accesses that could otherwise cause RowHammer bit-flips. The key idea of BlockHammer is to (1) track row activation rates using area-efficient Bloom filters and (2) use the tracking data to ensure that no row is ever activated rapidly enough to induce RowHammer bit-flips. By doing so, BlockHammer (1) makes it impossible for a RowHammer bit-flip to occur and (2) greatly reduces a RowHammer attack's impact on the performance of co-running benign applications. Compared to state-of-the-art RowHammer mitigation mechanisms, BlockHammer provides competitive performance and energy when the system is not under a RowHammer attack and significantly better performance and energy when the system is under attack.

研究动机与目标

  • 随着 DRAM 漏洞增加,推动鲁棒的 RowHammer 保护。
  • 提供一种低成本、可扩展的缓解方案,与商用 DRAM 兼容且无需访问 DRAM 内部结构。
  • 在最小化对良性工作负载影响的同时防止 RowHammer 位翻转。
  • 提供识别并限制潜在攻击者的机制,以保持系统性能。

提出的方法

  • 用双计数 Bloom 过滤器(D-CBF)跟踪 DRAM 行激活率,以决定黑名单阈值。
  • 在滚动时间窗口内将激活率超过配置阈值的行列入黑名单。
  • 延迟对被列入黑名单的行的激活,以使每行的激活率低于 RowHammer 的阈值。
  • 维护每个 rank 的历史缓冲区,以识别最近激活的行,避免对良性工作负载的重复限流。
  • 通过限制在途内存请求以基于 RowHammer 风险来限流攻击线程,保留良性应用的带宽。
  • 可选地向操作系统暴露每线程的 RowHammer 可能性以实现高级调度。

实验结果

研究问题

  • RQ1是否可以在不需要专有 DRAM 内部结构或修改 DRAM 芯片的情况下防止 RowHammer?
  • RQ2在 RowHammer 压力下,如何在保持良性性能的同时实现低开销、可扩展的主动限流机制?
  • RQ3在黑名单误报与系统性能之间的权衡在不同工作负载下如何?
  • RQ4基于 Bloom 过滤器的跟踪方法在不同漏洞水平下维持 RowHammer 安全运行的效果如何?

主要发现

  • BlockHammer 仅以 0.06% 的面积开销保证 RowHammer 安全运行。
  • 在没有 RowHammer 攻击时,良性工作负载的性能开销为 0.7%,DRAM 能耗开销为 0.6%。
  • 在 RowHammer 攻击下,BlockHammer 能以 99.98% 的准确度识别攻击线程。
  • 在被攻击时,BlockHammer 相较于基线在良性应用性能上平均提升 45.0%,在某些情形下提升至 61.9%。
  • BlockHammer 在需要 DRAM 内部知识或修改的六种最先进缓解机制中表现更优,尤其在攻击场景下。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。