dfence: Fine-Grained Speculation Barriers for Efficient and Effective Hardware-Software Protection in the Spectre Era (Extended Version)

Davoli, Davide; Bognar, Marton; Daniel, Lesly-Ann; Grégoire, Benjamin; Piessens, Frank; Rezk, Tamara
Submitted to ArXiV, 6 August 2026

Speculative execution attacks such as Spectre-PHT and SpectrearXiv:2608.06124v1  [cs.CR]  6 Aug 2026 STL remain a critical security concern in modern processors. While software-based mitigations like Speculative Load Hardening (SLH) offer effective protection against Spectre-PHT, they are limited in scope and require software-managed speculative masks, which can be error-prone and costly. Defenses against Spectre-STL, such as the Speculative Store Bypass Disable bit (SSBD), incur additional performance overhead and lack fine-grained control. In this work, we introduce dfence, a new CPU instruction that generalizes SLH to mitigate both Spectre-PHT and Spectre-STL with minimal hardware support. dfence enables developers to annotate sensitive registers, with the hardware ensuring that these values do not leak transiently. We implement dfence in the Proteus CPU and evaluate its security and performance, demonstrating less than 1% average performance overhead for our benchmarks. In addition, to support easy and secure adoption, we design a type system that statically verifies the correct placement of dfence instructions in code.


Type:
Conference
Date:
2026-08-06
Department:
Digital Security
Eurecom Ref:
8880
Copyright:
Creative Commons Attribution 4.0 License (CC-BY)
See also:

PERMALINK : https://www.eurecom.fr/publication/8880