Saved in:
Bibliographic Details
Main Authors: Walter, Andrew T., Athanasiou, Konstantinos, Manolios, Panagiotis
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2506.17154
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918066437226496
author Walter, Andrew T.
Athanasiou, Konstantinos
Manolios, Panagiotis
author_facet Walter, Andrew T.
Athanasiou, Konstantinos
Manolios, Panagiotis
contents Correctness for microprocessors is generally understood to be conformance with the associated instruction set architecture (ISA). This is the basis for one of the most important abstractions in computer science, allowing hardware designers to develop highly-optimized processors that are functionally "equivalent" to an ideal processor that executes instructions atomically. This specification is almost always informal, e.g., commercial microprocessors generally do not come with conformance specifications. In this paper, we advocate for the use of formal specifications, using the theory of refinement. We introduce notions of correctness that can be used to deal with transient execution attacks, including Meltdown and Spectre. Such attacks have shown that ubiquitous microprocessor optimizations, appearing in numerous processors for decades, are inherently buggy. Unlike alternative approaches that use non-interference properties, our notion of correctness is global, meaning it is single specification that: formalizes conformance, includes functional correctness and is parameterized by an microarchitecture. We introduce action skipping refinement, a new type of refinement and we describe how our notions of refinement can be decomposed into properties that are more amenable to automated verification using the the concept of shared-resource commitment refinement maps. We do this in the context of formal, fully executable bit- and cycle-accurate models of an ISA and a microprocessor. Finally, we show how light-weight formal methods based on property-based testing can be used to identify transient execution bugs.
format Preprint
id arxiv_https___arxiv_org_abs_2506_17154
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Global Microprocessor Correctness in the Presence of Transient Execution
Walter, Andrew T.
Athanasiou, Konstantinos
Manolios, Panagiotis
Cryptography and Security
Correctness for microprocessors is generally understood to be conformance with the associated instruction set architecture (ISA). This is the basis for one of the most important abstractions in computer science, allowing hardware designers to develop highly-optimized processors that are functionally "equivalent" to an ideal processor that executes instructions atomically. This specification is almost always informal, e.g., commercial microprocessors generally do not come with conformance specifications. In this paper, we advocate for the use of formal specifications, using the theory of refinement. We introduce notions of correctness that can be used to deal with transient execution attacks, including Meltdown and Spectre. Such attacks have shown that ubiquitous microprocessor optimizations, appearing in numerous processors for decades, are inherently buggy. Unlike alternative approaches that use non-interference properties, our notion of correctness is global, meaning it is single specification that: formalizes conformance, includes functional correctness and is parameterized by an microarchitecture. We introduce action skipping refinement, a new type of refinement and we describe how our notions of refinement can be decomposed into properties that are more amenable to automated verification using the the concept of shared-resource commitment refinement maps. We do this in the context of formal, fully executable bit- and cycle-accurate models of an ISA and a microprocessor. Finally, we show how light-weight formal methods based on property-based testing can be used to identify transient execution bugs.
title Global Microprocessor Correctness in the Presence of Transient Execution
topic Cryptography and Security
url https://arxiv.org/abs/2506.17154