Lune

ASPLOS2022Top-tier venue

Pinned loads: taming speculative loads in secure processors

Zirui Neil Zhao, Houxiang Ji, Adam Morrison, Darko Marinov, Josep Torrellas

Abstract

In security frameworks for speculative execution, an instruction is said to reach its Visibility Point (VP) when it is no longer vulnerable to pipeline squashes. Before a potentially leaky instruction reaches its VP, it has to stallÐunless a defense scheme such as invisible speculation provides protection. Unfortunately, either stalling or protecting the execution of pre-VP instructions typically has a performance cost.

One way to attain low-overhead safe execution is to develop techniques that speed-up the advance of the VP from older to younger instructions. In this paper, we propose one such technique. We find that the progress of the VP for loads is mostly impeded by waiting until no memory consistency violations (MCVs) are possible. Hence, our technique, called Pinned Loads, tries to make loads invulnerable to MCVs as early as possibleÐa process we call pinning the loads in the pipeline. The result is faster VP progress and a reduction in the execution overhead of defense schemes. In this paper, we describe the hardware needed by Pinned Loads, and two possible Pinned Loads designs with different tradeoffs between hardware requirements and performance. Our evaluation shows that Pinned Loads is very effective: extending three popular defense schemes against speculative execution attacks with Pinned Loads reduces their average execution overhead on SPEC17 and on SPLASH2/PARSEC applications by about 50%. For example, on SPEC17, the execution overhead of the three defense schemes decreases from 112.6% to 51.3%, from 35.8% to 15.3%, and from 24.8% to 13.2%.

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.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • 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 Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes
  • ReCon: Efficient Detection, Management, and Use of Non-Speculative Information Leakage cites Meltdown: Reading Kernel Memory from User Space
  • Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes cites Spectre Attacks: Exploiting Speculative Execution
  • Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling cites Spectre Attacks: Exploiting Speculative Execution
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • SwiftDir: Secure Cache Coherence without Overprotection cites Spectre Attacks: Exploiting Speculative Execution
  • SwiftDir: Secure Cache Coherence without Overprotection cites Meltdown: Reading Kernel Memory from User Space
  • SwiftDir: Secure Cache Coherence without Overprotection cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • Meltdown: Reading Kernel Memory from User Space cites Spectre Attacks: Exploiting Speculative Execution
  • A Systematic Evaluation of Transient Execution Attacks and Defenses cites Spectre Attacks: Exploiting Speculative Execution
  • Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution cites Spectre Attacks: Exploiting Speculative Execution
  • 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 Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes
  • 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 Meltdown: Reading Kernel Memory from User Space
  • Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation SchemesAmund Bergland Kvalsvik, Pavlos Aimoniotis, Stefanos Kaxiras, Magnus SjälanderISCA 2023 · 9 citations
  2. 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
  3. 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
  4. SwiftDir: Secure Cache Coherence without OverprotectionChenlu Miao, Kai Bu, Mengming Li, Shaowu Mao et al.MICRO 2022 · 3 citations

Builds on17

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
  2. Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher et al.USENIX Security 2018 · 1,456 citations
  3. Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order ExecutionJo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin et al.USENIX Security 2018 · 1,175 citations
  4. ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck et al.CCS 2019 · 464 citations
  5. A Systematic Evaluation of Transient Execution Attacks and DefensesClaudio Canella, Jo Van Bulck, Michael Schwarz, Moritz Lipp et al.USENIX Security 2019 · 442 citations

Related papers

  1. Speculation Invariance (InvarSpec): Faster Safe Execution Through Program AnalysisZirui Neil Zhao, Houxiang Ji, Mengjia Yan, Jiyong Yu et al.MICRO 2020 · 25 citations
  2. Levioso: Efficient Compiler-Informed Secure SpeculationAli Hajiabadi, Archit Agarwal, Andreas Diavastos, Trevor E. CarlsonDAC 2024 · 1 citation
  3. Speculative interference attacks: breaking invisible speculation schemesMohammad Behnia, Prateek Sahu, Riccardo Paccagnella, Jiyong Yu et al.ASPLOS 2021 · 69 citations
  4. 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
  5. Pensieve: Microarchitectural Modeling for Security EvaluationYuheng Yang, Thomas Bourgeat, Stella Lau, Mengjia YanISCA 2023 · 23 citations
Dusk over the sea between two cliffs drawn in fine vertical lines