arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.14907cs.CRcs.AR
收藏

面向低开销Rowhammer缓解机制的随机行-行映射方法

Randomized Line-to-Row Mapping for Low-Overhead Rowhammer Mitigations

Anish Saxena, Saurav Mathur, Moinuddin Qureshi

AI总结:

针对低阈值下现有安全Rowhammer缓解机制性能损耗过高的问题,提出Rubix及Rubix-D随机行单元-行映射方案,大幅降低热行概率,在小于1KB存储开销下显著削减多种缓解方案的性能下降。

摘要:

现代系统采用受害行刷新机制缓解Rowhammer攻击,即当某个攻击行的激活次数达到指定阈值时,刷新其相邻的两行。遗憾的是,Half-Double等复杂攻击模式能够突破受害行刷新机制,导致当前系统面临安全风险。近期提出的安全Rowhammer缓解机制转而针对攻击行而非受害行执行缓解操作,这类方案采用行迁移、访问控制等缓解措施,代表方案包括AQUA、SRS和Blockhammer。尽管这些方案在Rowhammer阈值为数千次时仅带来小幅性能下降,但对于未来可能出现的更低阈值,它们会导致15%-600%的过高性能损耗。本文的目标是让安全Rowhammer缓解机制在这类低阈值下具备实用性。\n本文的核心洞察是:良性应用会产生数千个热行(激活次数超过阈值的行),这是因为内存映射将空间相邻的行单元放在同一行中,以最大化行缓冲区命中率。这种设计导致一行会接收大量常用行单元的激活请求。我们提出Rubix方案,通过加密地址访问内存,打破行单元到行映射的空间相关性,将热行出现的概率降低2到3个数量级。为保障行缓冲区命中率,Rubix对1-4个行单元组成的组进行随机化。我们还提出Rubix-D方案,可动态更改行单元到行的映射关系,既能最大程度减少热行,又能大幅提升攻击者了解某行空间邻接关系的难度。Rubix将AQUA的性能下降从15%降至1%,SRS从60%降至2%,Blockhammer从600%降至3%,且存储开销不到1千字节。

英文摘要:

Modern systems mitigate Rowhammer using victim refresh, which refreshes the two neighbours of an aggressor row when it encounters a specified number of activations. Unfortunately, complex attack patterns like Half-Double break victim-refresh, rendering current systems vulnerable. Instead, recently proposed secure Rowhammer mitigations rely on performing mitigative action on the aggressor rather than the victims. Such schemes employ mitigative actions such as row-migration or access-control and include AQUA, SRS, and Blockhammer. While these schemes incur only modest slowdowns at Rowhammer thresholds of few thousand, they incur prohibitive slowdowns (15%-600%) for lower thresholds that are likely in the near future. The goal of our paper is to make secure Rowhammer mitigations practical at such low thresholds. Our paper provides the key insights that benign application encounter thousands of hot rows (receiving more activations than the threshold) due to the memory mapping, which places spatially proximate lines in the same row to maximize row-buffer hitrate. Unfortunately, this causes row to receive activations for many frequently used lines. We propose Rubix, which breaks the spatial correlation in the line-to-row mapping by using an encrypted address to access the memory, reducing the likelihood of hot rows by 2 to 3 orders of magnitude. To aid row-buffer hits, Rubix randomizes a group of 1-4 lines. We also propose Rubix-D, which dynamically changes the line-to-row mapping. Rubix-D minimizes hot-rows and makes it much harder for an adversary to learn the spatial neighbourhood of a row. Rubix reduces the slowdown of AQUA (from 15% to 1%), SRS (from 60% to 2%), and Blockhammer (from 600% to 3%) while incurring a storage of less than 1 Kilobyte.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑