• Home
  • Search
  • Speculation Invariance (InvarSpec): Faster Safe Execution Through Program Analysis
  • Open Access IconOpen Access
  • Cite Icon27
  • https://doi.org/10.1109/micro50266.2020.00094Copy DOI Icon

Speculation Invariance (InvarSpec): Faster Safe Execution Through Program Analysis

  • Oct 1, 2020
  • Zirui Neil Zhao +7 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Many hardware-based defense schemes against speculative execution attacks use special mechanisms to protect instructions while speculative, and lift the mechanisms when the instructions turn non-speculative. In this paper, we observe that speculative instructions can sometimes become Speculation Invariant before turning non-speculative. Speculation invariance means that (i) whether the instruction will execute and (ii) the instruction's operands are not a function of speculative state. Hence, we propose to lift the protection mechanisms on these instructions early, when they become speculation invariant, and issue them without protection. As a result, we improve the performance of the defense schemes without changing their security properties. To exploit speculation invariance, we present the InvarSpec framework. InvarSpec includes a program analysis pass that identifies, for each relevant instruction i, the set of older instructions that are Safe for i-i.e., those that do not prevent i from becoming speculation invariant. At runtime, the InvarSpec micro-architecture loads this information and uses it to determine when speculative instructions can be issued without protection. InvarSpec is one of the first defense schemes for speculative execution that combines cooperative compiler and hardware mechanisms. Our evaluation shows that InvarSpec effectively reduces the execution overhead of hardware defense schemes. For example, on SPEC17, it reduces the average execution overhead of fence protections from 195.3% to 108.2%, of Delay-On-Miss from 39.5% to 24.4%, and of InvisiSpec from 15.4% to 10.9%.

Similar Papers
  • Conference Article
  • Citations2

Speculative Execution Attacks and Cloud Security

  • Nov 11, 2019
  • Yinqian Zhang +1
  • Conference Article
  • Citations25

Cats vs. Spectre: An Axiomatic Approach to Modeling Speculative Execution Attacks

  • May 01, 2022
  • Hernán Ponce-De-Leon +1
  • Conference Article

SpectreShield: Design and Analysis of Spectre Countermeasures on RISC-V Using gem5

  • Aug 04, 2025
  • Muhammad Isa Khan +3
  • Conference Article
  • Citations17

EVAX: Towards a Practical, Pro-active & Adaptive Architecture for High Performance & Security

  • Oct 01, 2022
  • Samira Mirbagher Ajorpaz +5
  • Book Chapter
  • Citations1

X86-64 Core Architecture

  • Jan 01, 2014
  • Daniel Kusswurm
  • Conference Article
  • Citations430

Touching from a distance

  • Oct 16, 2012
  • Xiang Cai +3
  • Conference Article
  • Citations29

Implementation and evaluation of the Complex Streamed Instruction set

  • Nov 13, 2002
  • B Juurlink +3
  • Conference Article
  • Citations2

Fast and space-efficient defense against jump-oriented programming attacks

  • Feb 01, 2015
  • Jeehong Kim +1
  • Book Chapter
  • Citations4

Fetch Gating Control Through Speculative Instruction Window Weighting

  • Jan 01, 2007
  • Hans Vandierendonck +1
  • Research Article
  • Citations95

Speculative Taint Tracking (STT): A Comprehensive Protection for Speculatively Accessed Data

  • Oct 12, 2019
  • IEEE Micro
  • Jiyong Yu +5
  • Research Article
  • Citations105

Sentinel scheduling

  • Nov 01, 1993
  • ACM Transactions on Computer Systems
  • Scott A Mahlke +6
  • Conference Article
  • Citations33

A Hardware-Software Platform for Intrusion Prevention

  • Dec 04, 2004
  • M Drinic +1
  • Conference Article
  • Citations35

From Speculation to Security: Practical and Efficient Information Flow Tracking Using Speculative Hardware

  • Jun 01, 2008
  • Haibo Chen +5
  • Book Chapter
  • Citations5

Performance Evaluation of Thread-Level Speculation in Off-the-Shelf Hardware Transactional Memories

  • Jan 01, 2017
  • Juan Salamanca +2
  • Conference Article
  • Citations38

A proof-carrying based framework for trusted microprocessor IP

  • Nov 01, 2013
  • Yier Jin +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.