Pinned loads: taming speculative loads in secure processors
Zirui Neil Zhao, Houxiang Ji, Adam Morrison, Darko Marinov, Josep Torrellas
摘要
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%.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- 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 引用了 Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes
- ReCon: Efficient Detection, Management, and Use of Non-Speculative Information Leakage 引用了 Meltdown: Reading Kernel Memory from User Space
- Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes 引用了 Spectre Attacks: Exploiting Speculative Execution
- Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
- Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 Spectre Attacks: Exploiting Speculative Execution
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
- SwiftDir: Secure Cache Coherence without Overprotection 引用了 Spectre Attacks: Exploiting Speculative Execution
- SwiftDir: Secure Cache Coherence without Overprotection 引用了 Meltdown: Reading Kernel Memory from User Space
- SwiftDir: Secure Cache Coherence without Overprotection 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
- Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
- A Systematic Evaluation of Transient Execution Attacks and Defenses 引用了 Spectre Attacks: Exploiting Speculative Execution
- Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution 引用了 Spectre Attacks: Exploiting Speculative Execution
- 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 引用了 Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation Schemes
- 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 引用了 Meltdown: Reading Kernel Memory from User Space
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
- Perspective: A Principled Framework for Pliable and Secure Speculation in Operating Systems 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
引用它的顶会 Paper4
- Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation SchemesAmund Bergland Kvalsvik, Pavlos Aimoniotis, Stefanos Kaxiras, Magnus SjälanderISCA 2023 · 9 次引用
- 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 次引用
- SwiftDir: Secure Cache Coherence without OverprotectionChenlu Miao, Kai Bu, Mengming Li, Shaowu Mao 等MICRO 2022 · 3 次引用
它引用的 Paper17
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
- Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher 等USENIX Security 2018 · 1,456 次引用
- Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order ExecutionJo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin 等USENIX Security 2018 · 1,175 次引用
- 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 次引用
相关 Paper
- Speculation Invariance (InvarSpec): Faster Safe Execution Through Program AnalysisZirui Neil Zhao, Houxiang Ji, Mengjia Yan, Jiyong Yu 等MICRO 2020 · 25 次引用
- Levioso: Efficient Compiler-Informed Secure SpeculationAli Hajiabadi, Archit Agarwal, Andreas Diavastos, Trevor E. CarlsonDAC 2024 · 1 次引用
- Speculative interference attacks: breaking invisible speculation schemesMohammad Behnia, Prateek Sahu, Riccardo Paccagnella, Jiyong Yu 等ASPLOS 2021 · 69 次引用
- Speculative Data-Oblivious Execution: Mobilizing Safe Prediction For Safe and Efficient Speculative ExecutionJiyong Yu, Namrata Mantri, Josep Torrellas, Adam Morrison 等ISCA 2020 · 50 次引用
- Pensieve: Microarchitectural Modeling for Security EvaluationYuheng Yang, Thomas Bourgeat, Stella Lau, Mengjia YanISCA 2023 · 23 次引用
