[Paper Review] BlockHammer: Preventing RowHammer at Low Cost by Blacklisting Rapidly-Accessed DRAM Rows
BlockHammer prevents RowHammer bit-flips by proactively tracking row activation rates with Bloom filters and blacklisting overly active rows, while throttling attacker threads to protect benign workloads, all without modifying or knowing DRAM internals.
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.
Motivation & Objective
- Motivate robust RowHammer protection as DRAM vulnerability increases.
- Provide a low-cost, scalable mitigation compatible with commodity DRAM without DRAM internals access.
- Prevent RowHammer bit-flips while minimizing impact on benign workloads.
- Offer mechanisms to identify and throttle potential attackers to preserve system performance.
Proposed method
- Track DRAM row activation rates with a dual counting Bloom filter (D-CBF) to decide blacklisting thresholds.
- Blacklist rows whose activation rate exceeds a configured threshold within a rolling time window.
- Delay activations to blacklisted rows to keep per-row activation rates below the RowHammer threshold.
- Maintain a per-rank history buffer to identify recently activated rows and avoid repeated throttling of benign workloads.
- Throttle attacker threads by limiting their in-flight memory requests based on RowHammer risk, preserving bandwidth for benign apps.
- Optionally expose per-thread RowHammer likelihood to the OS for advanced scheduling.
Experimental results
Research questions
- RQ1Can RowHammer be prevented without requiring proprietary DRAM internals or modifications to DRAM chips?
- RQ2How can a low-overhead, scalable mechanism proactively throttle risky activations while preserving benign performance under RowHammer pressure?
- RQ3What is the trade-off between false positives in blacklisting and system performance across diverse workloads?
- RQ4How effective is a Bloom-filter-based tracking approach at maintaining RowHammer-safe operation under varying vulnerability levels?
Key findings
- BlockHammer guarantees RowHammer-safe operation with only 0.06% area overhead.
- Benign workloads incur 0.7% performance overhead and 0.6% DRAM energy overhead when no RowHammer attack is present.
- Under RowHammer attack, BlockHammer achieves 99.98% accuracy in identifying attacker threads.
- When attacked, BlockHammer delivers an average of 45.0% improvement in benign application performance and up to 61.9% in some cases compared to baselines.
- BlockHammer outperforms six state-of-the-art mitigation mechanisms that require DRAM-internal knowledge or modifications, especially under attack scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.