Lune

DAC2024Top-tier venue

Levioso: Efficient Compiler-Informed Secure Speculation

Ali Hajiabadi, Archit Agarwal, Andreas Diavastos, Trevor E. Carlson

Abstract

Spectre-type attacks have exposed a major class of vulnerabilities arising from speculative execution of instructions, the main performance enabler of modern CPUs. These attacks speculatively leak secrets that have been either speculatively loaded (seen in sandboxed programs) or non-speculatively loaded (seen in constant-time programs). Various hardware-only defenses have been proposed to mitigate both speculative and non-speculative secrets via all potential transmission channels. However, limited program knowledge is exposed to the hardware and these solutions conservatively restrict the execution of all instructions that can potentially leak.

In this work, we show that not all instructions depend on older unresolved branches and they can safely execute without leaking speculative information. We present Levioso, a novel hardware/software co-design, that provides comprehensive secure speculation guarantees while reducing performance overhead compared to existing defenses. Levioso informs the hardware about true branch dependencies and applies restrictions only when necessary. Our evaluations demonstrate that Levioso is able to significantly reduce the performance overhead compared to two prior defenses from 51% and 43% to just 23%.

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.

2 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

  • SMoTherSpectre: Exploiting Speculative Execution through Port Contention cites Spectre Attacks: Exploiting Speculative Execution
  • SMoTherSpectre: Exploiting Speculative Execution through Port Contention cites ret2spec: Speculative Execution Using Return Stack Buffers
  • SMoTherSpectre: Exploiting Speculative Execution through Port Contention cites Meltdown: Reading Kernel Memory from User Space
  • Conjuring: Leaking Control Flow via Speculative Fetch Attacks cites Spectre Attacks: Exploiting Speculative Execution
  • ret2spec: Speculative Execution Using Return Stack Buffers cites Spectre Attacks: Exploiting Speculative Execution
  • Meltdown: Reading Kernel Memory from User Space cites Spectre Attacks: Exploiting Speculative Execution
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites Spectre Attacks: Exploiting Speculative Execution
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites SMoTherSpectre: Exploiting Speculative Execution through Port Contention
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites ret2spec: Speculative Execution Using Return Stack Buffers
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites Meltdown: Reading Kernel Memory from User Space
  • Cassandra: Efficient Enforcement of Sequential Execution for Cryptographic Programs cites Spectre Attacks: Exploiting Speculative Execution
  • Cassandra: Efficient Enforcement of Sequential Execution for Cryptographic Programs cites Conjuring: Leaking Control Flow via Speculative Fetch Attacks
  • Cassandra: Efficient Enforcement of Sequential Execution for Cryptographic Programs cites Meltdown: Reading Kernel Memory from User Space
  • Cassandra: Efficient Enforcement of Sequential Execution for Cryptographic Programs cites DOLMA: Securing Speculation with the Principle of Transient Non-Observability
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Conjuring: Leaking Control Flow via Speculative Fetch AttacksAli Hajiabadi, Trevor E. CarlsonDAC 2024 · 5 citations
  2. Cassandra: Efficient Enforcement of Sequential Execution for Cryptographic ProgramsAli Hajiabadi, Trevor E. CarlsonISCA 2025 · 2 citations

Builds on15

  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. ret2spec: Speculative Execution Using Return Stack BuffersGiorgi Maisuradze, Christian RossowCCS 2018 · 282 citations
  4. SMoTherSpectre: Exploiting Speculative Execution through Port ContentionAtri Bhattacharyya, Alexandra Sandulescu, Matthias Neugschwandtner, Alessandro Sorniotti et al.CCS 2019 · 267 citations
  5. DOLMA: Securing Speculation with the Principle of Transient Non-ObservabilityKevin Loughlin, Ian Neal, Jiacheng Ma, Elisa Tsai et al.USENIX Security 2021 · 94 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. ProSpeCT: Provably Secure Speculation for the Constant-Time PolicyLesly-Ann Daniel, Marton Bognar, Job Noorman, Sébastien Bardin et al.USENIX Security 2023
  3. dfence: Fine-Grained Speculation Barriers for Efficient and Effective Hardware-Software Protection in the Spectre EraDavide Davoli, Marton Bognar, Lesly-Ann Daniel, Benjamin Gregoire et al.CCS 2026 · 1 citation
  4. Declassiflow: A Static Analysis for Modeling Non-Speculative Knowledge to Relax Speculative Execution Security MeasuresRutvik Choudhary, Alan Wang, Zirui Neil Zhao, Adam Morrison et al.CCS 2023 · 4 citations
  5. Hardware-Software Contracts for Secure SpeculationMarco Guarnieri, Boris Köpf, Jan Reineke, Pepe VilaS&P 2021 · 111 citations
Dusk over the sea between two cliffs drawn in fine vertical lines