HashTag: Hash-based Integrity Protection for Tagged Architectures
Lukas Lamster, Martin Unterguggenberger, David Schrammel, Stefan Mangard
摘要
Modern computing systems rely on error-correcting codes to ensure the integrity of DRAM data. Linear checksums allow for fast detection and correction of specific error patterns. However, they do not offer sufficient protection against complex errors distributed over multiple data words and chips. Depending on the code and the error pattern, linear codes may fail to detect or even miscorrect errors, thus leading to silent data corruption. In this work, we show how compact error-correcting codes based on low-latency hashing functions allow for strong probabilistic error detection and correction while facilitating ECC bit repurposing. Our proposed design drastically lowers the expected rate of undetected errors, regardless of the underlying error patterns. By tailoring the size of our codes to the required level of integrity protection, we are able to free bits that would otherwise be required to store ECC data. We showcase how our design facilitates the efficient implementation of tagged memory architectures such as CHERI, ARM MTE, and SPARC ADI by repurposing the freed bits in commodity ECC DRAM. Thus, we harden systems against data corruption due to DRAM faults while simultaneously allowing for memory tagging without introducing additional memory accesses. We present a systematic analysis of schemes that allow memory tagging on a cache line granularity while maintaining error detection and correction capabilities, even in multi-bit fault scenarios. We evaluate our integrity protection with tagging for different use cases and show that we can store 32 bits of additional tags per cache line, twice the amount needed to implement ARM's MTE, without significantly affecting error correction capabilities. We also show how up to 51 bits can be made available while maintaining single-bit error correction.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- RAMBleed: Reading Bits in Memory Without Accessing Them 引用了 Exploiting Correcting Codes: On the Effectiveness of ECC Memory Against Rowhammer Attacks
- ProTRR: Principled yet Optimal In-DRAM Target Row Refresh 引用了 RAMBleed: Reading Bits in Memory Without Accessing Them
- ProTRR: Principled yet Optimal In-DRAM Target Row Refresh 引用了 Exploiting Correcting Codes: On the Effectiveness of ECC Memory Against Rowhammer Attacks
- ProTRR: Principled yet Optimal In-DRAM Target Row Refresh 引用了 BlockHammer: Preventing RowHammer at Low Cost by Blacklisting Rapidly-Accessed DRAM Rows
- Voodoo: Memory Tagging, Authenticated Encryption, and Error Correction through MAGIC 引用了 HDFI: Hardware-Assisted Data-Flow Isolation
- Voodoo: Memory Tagging, Authenticated Encryption, and Error Correction through MAGIC 引用了 RAMBleed: Reading Bits in Memory Without Accessing Them
- Voodoo: Memory Tagging, Authenticated Encryption, and Error Correction through MAGIC 引用了 ProTRR: Principled yet Optimal In-DRAM Target Row Refresh
- Voodoo: Memory Tagging, Authenticated Encryption, and Error Correction through MAGIC 引用了 Exploiting Correcting Codes: On the Effectiveness of ECC Memory Against Rowhammer Attacks
- Polymorphic Error Correction 引用了 Voodoo: Memory Tagging, Authenticated Encryption, and Error Correction through MAGIC
- Polymorphic Error Correction 引用了 Exploiting Correcting Codes: On the Effectiveness of ECC Memory Against Rowhammer Attacks
- BlockHammer: Preventing RowHammer at Low Cost by Blacklisting Rapidly-Accessed DRAM Rows 引用了 RAMBleed: Reading Bits in Memory Without Accessing Them
- BlockHammer: Preventing RowHammer at Low Cost by Blacklisting Rapidly-Accessed DRAM Rows 引用了 Exploiting Correcting Codes: On the Effectiveness of ECC Memory Against Rowhammer Attacks
引用它的顶会 Paper4
- Cryptographically Enforced Memory SafetyMartin Unterguggenberger, David Schrammel, Lukas Lamster, Pascal Nasahl 等CCS 2023 · 6 次引用
- Voodoo: Memory Tagging, Authenticated Encryption, and Error Correction through MAGICLukas Lamster, Martin Unterguggenberger, David Schrammel, Stefan MangardUSENIX Security 2024 · 5 次引用
- Polymorphic Error CorrectionEvgeny Manzhosov, Simha SethumadhavanMICRO 2024 · 1 次引用
- Beyond Tag Collision: Cluster-based Memory Management for Tag-based SanitizersMengfei Xie, Yan Lin, Hongtao Wu, Jianming Fu 等CCS 2025
它引用的 Paper7
- RAMBleed: Reading Bits in Memory Without Accessing ThemAndrew Kwong, Daniel Genkin, Daniel Gruss, Yuval YaromS&P 2020 · 239 次引用
- Exploiting Correcting Codes: On the Effectiveness of ECC Memory Against Rowhammer AttacksLucian Cojocar, Kaveh Razavi, Cristiano Giuffrida, Herbert BosS&P 2019 · 233 次引用
- HDFI: Hardware-Assisted Data-Flow IsolationChengyu Song, Hyungon Moon, Monjur Alam, Insu Yun 等S&P 2016 · 146 次引用
- BlockHammer: Preventing RowHammer at Low Cost by Blacklisting Rapidly-Accessed DRAM RowsAbdullah Giray Yaglikçi, Minesh Patel, Jeremie S. Kim, Roknoddin Azizi 等HPCA 2021 · 124 次引用
- ProTRR: Principled yet Optimal In-DRAM Target Row RefreshMichele Marazzi, Patrick Jattke, Flavien Solt, Kaveh RazaviS&P 2022 · 101 次引用
相关 Paper
- Revisiting Residue Codes for Modern MemoriesEvgeny Manzhosov, Adam Hastings, Meghna Pancholi, Ryan Piersma 等MICRO 2022 · 23 次引用
- How to Kill the Second Bird with One ECC: The Pursuit of Row Hammer Resilient DRAMMichael Jaemin Kim, Minbok Wi, Jaehyun Park, Seoyoung Ko 等MICRO 2023 · 16 次引用
- Implicit Memory Tagging: No-Overhead Memory Safety Using Alias-Free Tagged ECCMichael B. Sullivan, Mohamed Tarek Ibn Ziad, Aamer Jaleel, Stephen W. KecklerISCA 2023 · 17 次引用
- ECC Enabled Reliable and Performant Processing-in-MemoryJeageun Jung, Margaret Lee, Mattan ErezISCA 2026
- Tiktag: Breaking ARM's Memory Tagging Extension with Speculative ExecutionJuhee Kim, Jinbum Park, Sihyeon Roh, Jaeyoung Chung 等S&P 2025
