Copy-on-Flip: Hardening ECC Memory Against Rowhammer Attacks
Andrea Di Dio, Koen Koning, Herbert Bos, Cristiano Giuffrida
摘要
—Despite nearly decade-long mitigation efforts in academia and industry, the community is yet to find a practical solution to the Rowhammer vulnerability. Comprehensive software mitigations require complex changes to commodity systems, yielding significant run-time overhead and deterring practical adoption. Hardware mitigations, on the other hand, have generally grown more robust and efficient, but are difficult to deploy on commodity systems. Until recently, ECC memory implemented by the memory controller on server platforms seemed to provide the best of both worlds: use hardware features already on commodity systems to efficiently turn Rowhammer into a denial-of-service attack vector. Unfortunately, researchers have recently shown that attackers can perform one-bit-at-a-time memory templating and mount ECC-aware Rowhammer attacks. In this paper, we reconsider ECC memory as an avenue for Rowhammer mitigations and show that not all hope is lost. In particular, we show that it is feasible to devise a software-based design to both efficiently and effectively harden commodity ECC memory against ECC-aware Rowhammer attacks. To support this claim, we present Copy-on-Flip (CoF), an ECC-based software mitigation which uses a combination of memory migration and offlining to stop Rowhammer attacks on commodity server systems in a practical way. The key idea is to let the operating system interpose on all the error correction events and offline the vulnerable victim page as soon as the attacker has successfully templated a sufficient number of bit flips— while transparently migrating the victim data to a new page. We present a CoF prototype on Linux, where we also show it is feasible to operate simple memory management changes to support migration for the relevant user and kernel memory pages. Our evaluation shows CoF incurs low performance and memory overhead, while significantly reducing the Rowhammer
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 14 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance 引用了 DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance 引用了 BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance 引用了 Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance 引用了 Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance 引用了 Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance 引用了 Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions
- Siloz: Leveraging DRAM Isolation Domains to Prevent Inter-VM Rowhammer 引用了 DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Siloz: Leveraging DRAM Isolation Domains to Prevent Inter-VM Rowhammer 引用了 Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
- Siloz: Leveraging DRAM Isolation Domains to Prevent Inter-VM Rowhammer 引用了 Flip Feng Shui: Hammering a Needle in the Software Stack
- BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads 引用了 DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads 引用了 Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
- RIDL: Rogue In-Flight Data Load 引用了 Spectre Attacks: Exploiting Speculative Execution
- RIDL: Rogue In-Flight Data Load 引用了 Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
- RIDL: Rogue In-Flight Data Load 引用了 Flip Feng Shui: Hammering a Needle in the Software Stack
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance 引用了 DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance 引用了 BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance 引用了 Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance 引用了 Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions
- Drammer: Deterministic Rowhammer Attacks on Mobile Platforms 引用了 DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Drammer: Deterministic Rowhammer Attacks on Mobile Platforms 引用了 Flip Feng Shui: Hammering a Needle in the Software Stack
- Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions 引用了 DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions 引用了 Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
引用它的顶会 Paper14
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read DisturbanceOguzhan Canpolat, A. Giray Yaglikçi, Geraldo F. Oliveira, Ataberk Olgun 等HPCA 2025 · 23 次引用
- Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future SolutionsAbdullah Giray Yaglikçi, Yahya Can Tugrul, Geraldo F. Oliveira, Ismail Emir Yüksel 等HPCA 2024 · 22 次引用
- BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect ThreadsOguzhan Canpolat, A. Giray Yaglikçi, Ataberk Olgun, Ismail Emir Yuksel 等MICRO 2024 · 19 次引用
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read DisturbanceAtaberk Olgun, F. Nisa Bostanci, Ismail Emir Yüksel, Oguzhan Canpolat 等HPCA 2025 · 15 次引用
- Siloz: Leveraging DRAM Isolation Domains to Prevent Inter-VM RowhammerKevin Loughlin, Jonah Rosenblum, Stefan Saroiu, Alec Wolman 等SOSP 2023 · 13 次引用
它引用的 Paper24
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
- DRAMA: Exploiting DRAM Addressing for Cross-CPU AttacksPeter Pessl, Daniel Gruss, Clémentine Maurice, Michael Schwarz 等USENIX Security 2016 · 500 次引用
- RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo 等S&P 2019 · 408 次引用
- Drammer: Deterministic Rowhammer Attacks on Mobile PlatformsVictor van der Veen, Yanick Fratantonio, Martina Lindorfer, Daniel Gruss 等CCS 2016 · 381 次引用
- Flip Feng Shui: Hammering a Needle in the Software StackKaveh Razavi, Ben Gras, Erik Bosman, Bart Preneel 等USENIX Security 2016 · 306 次引用
相关 Paper
- Exploiting Correcting Codes: On the Effectiveness of ECC Memory Against Rowhammer AttacksLucian Cojocar, Kaveh Razavi, Cristiano Giuffrida, Herbert BosS&P 2019 · 233 次引用
- Memory Band-Aid: A Principled Rowhammer Defense-in-DepthCarina Fiedler, Jonas Juffinger, Sudheendra Raghav Neela, Martin Heckel 等NDSS 2026 · 5 次引用
- CSI:Rowhammer - Cryptographic Security and Integrity against RowhammerJonas Juffinger, Lukas Lamster, Andreas Kogler, Maria Eichlseder 等S&P 2023
- CAn't Touch This: Software-only Mitigation against Rowhammer Attacks targeting Kernel MemoryFerdinand Brasser, Lucas Davi, David Gens, Christopher Liebchen 等USENIX Security 2017 · 146 次引用
- SafeGuard: Reducing the Security Risk from Row-Hammer via Low-Cost Integrity ProtectionAli Fakhrzadehgan, Yale N. Patt, Prashant J. Nair, Moinuddin K. QureshiHPCA 2022 · 51 次引用
