Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes
Amund Bergland Kvalsvik, Pavlos Aimoniotis, Stefanos Kaxiras, Magnus Själander
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Secure Prefetching for Secure Cache Systems cites Spectre Attacks: Exploiting Speculative Execution
- Secure Prefetching for Secure Cache Systems cites Bouquet of Instruction Pointers: Instruction Pointer Classifier-based Spatial Hardware Prefetching
- Secure Prefetching for Secure Cache Systems cites A Systematic Evaluation of Transient Execution Attacks and Defenses
- ReCon: Efficient Detection, Management, and Use of Non-Speculative Information Leakage cites Spectre Attacks: Exploiting Speculative Execution
- ReCon: Efficient Detection, Management, and Use of Non-Speculative Information Leakage cites SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- ShadowBinding: Realizing Effective Microarchitectures for In-Core Secure Speculation Schemes cites ReCon: Efficient Detection, Management, and Use of Non-Speculative Information Leakage
- ShadowBinding: Realizing Effective Microarchitectures for In-Core Secure Speculation Schemes cites Spectre Attacks: Exploiting Speculative Execution
- ShadowBinding: Realizing Effective Microarchitectures for In-Core Secure Speculation Schemes cites SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- ShadowBinding: Realizing Effective Microarchitectures for In-Core Secure Speculation Schemes cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention cites Spectre Attacks: Exploiting Speculative Execution
- ZombieLoad: Cross-Privilege-Boundary Data Sampling cites Spectre Attacks: Exploiting Speculative Execution
- ZombieLoad: Cross-Privilege-Boundary Data Sampling cites SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- ZombieLoad: Cross-Privilege-Boundary Data Sampling cites A Systematic Evaluation of Transient Execution Attacks and Defenses
- A Systematic Evaluation of Transient Execution Attacks and Defenses cites Spectre Attacks: Exploiting Speculative Execution
- A Systematic Evaluation of Transient Execution Attacks and Defenses cites SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update Instruction cites Spectre Attacks: Exploiting Speculative Execution
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update Instruction cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update Instruction cites A Systematic Evaluation of Transient Execution Attacks and Defenses
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems cites ReCon: Efficient Detection, Management, and Use of Non-Speculative Information Leakage
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems cites Spectre Attacks: Exploiting Speculative Execution
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems cites A Systematic Evaluation of Transient Execution Attacks and Defenses
Cited by top-tier papers6
- ReCon: Efficient Detection, Management, and Use of Non-Speculative Information LeakagePavlos Aimoniotis, Amund Bergland Kvalsvik, Xiaoyue Chen, Magnus Själander et al.MICRO 2023 · 6 citations
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating SystemsTae Hoon Kim, David Rudo, Kaiyang Zhao, Zirui Neil Zhao et al.ISCA 2024 · 6 citations
- Secure Prefetching for Secure Cache SystemsSumon Nath, Agustín Navarro-Torres, Alberto Ros, Biswabandan PandaMICRO 2024 · 5 citations
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update InstructionDebpratim Adak, Huiyang Zhou, Eric Rotenberg, Amro AwadHPCA 2025 · 3 citations
- ShadowBinding: Realizing Effective Microarchitectures for In-Core Secure Speculation SchemesAmund Bergland Kvalsvik, Magnus SjälanderMICRO 2025 · 1 citation
Builds on20
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
- ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck et al.CCS 2019 · 464 citations
- A Systematic Evaluation of Transient Execution Attacks and DefensesClaudio Canella, Jo Van Bulck, Michael Schwarz, Moritz Lipp et al.USENIX Security 2019 · 442 citations
- SMoTherSpectre: Exploiting Speculative Execution through Port ContentionAtri Bhattacharyya, Alexandra Sandulescu, Matthias Neugschwandtner, Alessandro Sorniotti et al.CCS 2019 · 267 citations
- Bouquet of Instruction Pointers: Instruction Pointer Classifier-based Spatial Hardware PrefetchingSamuel Pakalapati, Biswabandan PandaISCA 2020 · 97 citations
Related papers
- Speculative Data-Oblivious Execution: Mobilizing Safe Prediction For Safe and Efficient Speculative ExecutionJiyong Yu, Namrata Mantri, Josep Torrellas, Adam Morrison et al.ISCA 2020 · 50 citations
- Pinned loads: taming speculative loads in secure processorsZirui Neil Zhao, Houxiang Ji, Adam Morrison, Darko Marinov et al.ASPLOS 2022 · 8 citations
- Speculative Privacy Tracking (SPT): Leaking Information From Speculative Execution Without Compromising PrivacyRutvik Choudhary, Jiyong Yu, Christopher W. Fletcher, Adam MorrisonMICRO 2021 · 33 citations
- DOLMA: Securing Speculation with the Principle of Transient Non-ObservabilityKevin Loughlin, Ian Neal, Jiacheng Ma, Elisa Tsai et al.USENIX Security 2021 · 94 citations
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and ProfitChang Liu, Dongsheng Wang, Yongqiang Lyu, Pengfei Qiu et al.HPCA 2024 · 9 citations
