"It's a Trap!"-How Speculation Invariance Can Be Abused with Forward Speculative Interference
Abstract
Speculative side-channel attacks access sensitive data and use transmitters to leak the data during wrong-path execution. Various defenses have been proposed to prevent such information leakage. However, not all speculatively executed instructions are unsafe: Recent work demonstrates that speculation invariant instructions are independent of speculative control-flow paths and are guaranteed to eventually commit, regardless of the speculation outcome. Compile-time information coupled with run-time mechanisms can then selectively lift defenses for speculation invariant instructions, reclaiming some of the lost performance. Unfortunately, speculation invariant instructions can easily be manipulated by a form of speculative interference to leak information via a new side-channel that we introduce in this paper. We show that forward speculative interference whereolder speculative instructions interfere with younger speculation invariant instructions effectively turns them into transmitters for secret data accessed during speculation. We demonstrate forward speculative interference on actual hardware, by selectively filling the reorder buffer (ROB) with instructions, pushing speculative invariant instructions in-or-out of the ROB on demand, based on a speculatively accessed secret. This reveals the speculatively accessed secret, as the occupancy of the ROB itself becomes a new speculative side-channel.
Keywords
Cite
@article{arxiv.2109.10774,
title = {"It's a Trap!"-How Speculation Invariance Can Be Abused with Forward Speculative Interference},
author = {Pavlos Aimoniotis and Christos Sakalis and Magnus Själander and Stefanos Kaxiras},
journal= {arXiv preprint arXiv:2109.10774},
year = {2022}
}
Comments
Presented at 28th IEEE International Symposium on High-Performance Computer Architecture (HPCA-28) 2022 in "Best of CAL" session and IEEE International Symposium On Secure And Private Execution Enviroment Design (SEED) 2021. A version of this manuscript has been published in IEEE Computer Architecture Letters (CAL) 2021