Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes
Amund Bergland Kvalsvik, Pavlos Aimoniotis, Stefanos Kaxiras, Magnus Själander
摘要
Speculative side-channel attacks have forced computer architects to rethink speculative execution. Effectively preventing microarchitectural state from leaking sensitive information will be a key requirement in future processor design.
An important limitation of many secure speculation schemes is a reduction in the available memory parallelism, as unsafe loads (depending on the particular scheme) are blocked, as they might potentially leak information. Our contribution is to show that it is possible to recover some of this lost memory parallelism, by safely predicting the addresses of these loads in a threat-model transparent way, i.e., without worsening the security guarantees of the underlying secure scheme. To demonstrate the generality of the approach, we apply it to three different secure speculation schemes: Non-speculative Data Access (NDA), Speculative Taint Tracking (STT), and Delay-on-Miss (DoM).
An address predictor is trained on non-speculative data, and can afterwards predict the addresses of unsafe slow-to-issue loads, preloading the target registers with speculative values, that can be released faster on correct predictions than starting the entire load process. This new perspective on speculative execution encompasses all loads, and gives speedups, separately from prefetching.
We call the address-predicted counterparts of loads Doppelganger Loads. They give notable performance improvements for the three secure speculation schemes we evaluate, NDA, STT, and DoM. The Doppelganger Loads reduce the geometric mean slowdown by 42%, 48%, and 30% respectively, as compared to an unsafe baseline, for a wide variety of SPEC2006 and SPEC2017 benchmarks. Furthermore, Doppelganger Loads can be efficiently implemented with only minor core modifications, reusing existing resources such as a stride prefetcher, and most importantly, requiring no changes to the memory hierarchy outside the core.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Secure Prefetching for Secure Cache Systems 引用了 Spectre Attacks: Exploiting Speculative Execution
- Secure Prefetching for Secure Cache Systems 引用了 Bouquet of Instruction Pointers: Instruction Pointer Classifier-based Spatial Hardware Prefetching
- Secure Prefetching for Secure Cache Systems 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
- ReCon: Efficient Detection, Management, and Use of Non-Speculative Information Leakage 引用了 Spectre Attacks: Exploiting Speculative Execution
- ReCon: Efficient Detection, Management, and Use of Non-Speculative Information Leakage 引用了 SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- ShadowBinding: Realizing Effective Microarchitectures for In-Core Secure Speculation Schemes 引用了 ReCon: Efficient Detection, Management, and Use of Non-Speculative Information Leakage
- ShadowBinding: Realizing Effective Microarchitectures for In-Core Secure Speculation Schemes 引用了 Spectre Attacks: Exploiting Speculative Execution
- ShadowBinding: Realizing Effective Microarchitectures for In-Core Secure Speculation Schemes 引用了 SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- ShadowBinding: Realizing Effective Microarchitectures for In-Core Secure Speculation Schemes 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention 引用了 Spectre Attacks: Exploiting Speculative Execution
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 Spectre Attacks: Exploiting Speculative Execution
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
- A Systematic Evaluation of Transient Execution Attacks and Defenses 引用了 Spectre Attacks: Exploiting Speculative Execution
- A Systematic Evaluation of Transient Execution Attacks and Defenses 引用了 SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update Instruction 引用了 Spectre Attacks: Exploiting Speculative Execution
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update Instruction 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update Instruction 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems 引用了 ReCon: Efficient Detection, Management, and Use of Non-Speculative Information Leakage
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems 引用了 Spectre Attacks: Exploiting Speculative Execution
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
引用它的顶会 Paper6
- ReCon: Efficient Detection, Management, and Use of Non-Speculative Information LeakagePavlos Aimoniotis, Amund Bergland Kvalsvik, Xiaoyue Chen, Magnus Själander 等MICRO 2023 · 6 次引用
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating SystemsTae Hoon Kim, David Rudo, Kaiyang Zhao, Zirui Neil Zhao 等ISCA 2024 · 6 次引用
- Secure Prefetching for Secure Cache SystemsSumon Nath, Agustín Navarro-Torres, Alberto Ros, Biswabandan PandaMICRO 2024 · 5 次引用
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update InstructionDebpratim Adak, Huiyang Zhou, Eric Rotenberg, Amro AwadHPCA 2025 · 3 次引用
- ShadowBinding: Realizing Effective Microarchitectures for In-Core Secure Speculation SchemesAmund Bergland Kvalsvik, Magnus SjälanderMICRO 2025 · 1 次引用
它引用的 Paper20
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
- ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck 等CCS 2019 · 464 次引用
- A Systematic Evaluation of Transient Execution Attacks and DefensesClaudio Canella, Jo Van Bulck, Michael Schwarz, Moritz Lipp 等USENIX Security 2019 · 442 次引用
- SMoTherSpectre: Exploiting Speculative Execution through Port ContentionAtri Bhattacharyya, Alexandra Sandulescu, Matthias Neugschwandtner, Alessandro Sorniotti 等CCS 2019 · 267 次引用
- Bouquet of Instruction Pointers: Instruction Pointer Classifier-based Spatial Hardware PrefetchingSamuel Pakalapati, Biswabandan PandaISCA 2020 · 97 次引用
相关 Paper
- Speculative Data-Oblivious Execution: Mobilizing Safe Prediction For Safe and Efficient Speculative ExecutionJiyong Yu, Namrata Mantri, Josep Torrellas, Adam Morrison 等ISCA 2020 · 50 次引用
- Pinned loads: taming speculative loads in secure processorsZirui Neil Zhao, Houxiang Ji, Adam Morrison, Darko Marinov 等ASPLOS 2022 · 8 次引用
- Speculative Privacy Tracking (SPT): Leaking Information From Speculative Execution Without Compromising PrivacyRutvik Choudhary, Jiyong Yu, Christopher W. Fletcher, Adam MorrisonMICRO 2021 · 33 次引用
- DOLMA: Securing Speculation with the Principle of Transient Non-ObservabilityKevin Loughlin, Ian Neal, Jiacheng Ma, Elisa Tsai 等USENIX Security 2021 · 94 次引用
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and ProfitChang Liu, Dongsheng Wang, Yongqiang Lyu, Pengfei Qiu 等HPCA 2024 · 9 次引用
