• Home
  • Search
  • Miri: Practical Undefined Behavior Detection for Rust
  • https://doi.org/10.1145/3776690Copy DOI Icon

Miri: Practical Undefined Behavior Detection for Rust

Show More
  • Abstract
  • Literature Map
  • References
  • Similar Papers
Abstract

The Rust programming language has two faces: on the one hand, it is a high-level language with a strong type system ensuring memory and thread safety. On the other hand, Rust crucially relies on unsafe code for cases where the compiler is unable to statically ensure basic safety properties. The challenges of writing unsafe Rust are similar to those of writing C or C++: a single mistake in the program can lead to Undefined Behavior, which means the program is no longer described by the language's Abstract Machine and can go wrong in arbitrary ways, often causing security issues. Ensuring the absence of Undefined Behavior bugs is therefore a high priority for unsafe Rust authors. In this paper we present Miri, the first tool that can find all de-facto Undefined Behavior in deterministic Rust programs. Some of the key non-trivial features of Miri include tracking of pointer provenance, validation of Rust type invariants, data-race detection, exploration of weak memory behaviors, and implementing enough basic OS APIs (such as file system access and concurrency primitives) to be able to run unchanged real-world Rust code. In an evaluation on more than 100 000 Rust libraries, Miri was able to successfully execute more than 70% of the tests across their combined test suites. Miri has found dozens of real-world bugs and has been integrated into the continuous integration of the Rust standard library and many prominent Rust libraries, preventing many more bugs from ever entering these codebases.

Similar Papers
  • Research Article
  • Citations1

High-level language translation in SYMBOL 2R

  • Nov 01, 1973
  • ACM SIGPLAN Notices
  • J W Anderberg +1
  • Research Article
  • Citations1

Modern Fortran revived as the language of scientific parallel computing

  • Nov 01, 1996
  • Digital Technical Journal
  • William Celmaster
  • Research Article
  • Citations7

Concepts of high-level-language computer architecture

  • Dec 01, 1975
  • ACM SIGMICRO Newsletter
  • Yaohan Chu
  • Conference Article
  • Citations22

A methodology for machine language decompilation

  • Jan 01, 1974
  • Barron C Housel +1
  • PDF
  • Research Article

A Contextual Model for Visual Information Processing

  • Jun 20, 2024
  • Computers
  • Illia Khurtin +1
  • Research Article
  • Citations1

Tleco: A Toolkit for Modeling Radiative Signatures from Relativistic Outflows

  • Nov 22, 2024
  • The Astrophysical Journal
  • Zachary Davis +2
  • Research Article

<b>ИЗРАДА КОМПАЈЛЕРА УПОТРЕБОМ РАСТЕМО БИБЛИОТЕКЕ</b>

  • Jan 30, 2026
  • Zbornik radova Fakulteta tehničkih nauka u Novom Sadu
  • Marko Bjelica
  • Book Chapter
  • Citations15

A Deep Q-Network Based Simulation System for Actor Node Mobility Control in WSANs Considering Three-Dimensional Environment: A Comparison Study for Normal and Uniform Distributions

  • Jun 19, 2018
  • Tetsuya Oda +4
  • Conference Article

Prediction and Convergence Calculations using Rust-based NAlgebra GLM

  • Dec 01, 2021
  • Noah W Scott +3
  • Conference Article

BOBS: an Intel 8085 processor simulator

  • Nov 05, 2025
  • Antônio Drumond Cota De Sousa +3
  • Research Article
  • Citations3

Hardware/Software Co-Assurance for the Rust Programming Language Applied to Zero Trust Architecture Development

  • Apr 05, 2023
  • ACM SIGAda Ada Letters
  • David Hardin
  • Book Chapter
  • Citations1

Enforcing Reference Capability in FastFlow with Rust

  • Jan 01, 2020
  • Rinaldi Luca +2
  • Research Article

Técnica de confiabilidade em nível de sistema operacional para a arquitetura RISC-V

  • May 28, 2024
  • Anais do Computer on the Beach
  • Nicole Migliorini Magagnin +2
  • Research Article
  • Citations21

Oarfish: enhanced probabilistic modeling leads to improved accuracy in long read transcriptome quantification

  • Jul 01, 2025
  • Bioinformatics
  • Zahra Zare Jousheghani +2
  • Research Article
  • Citations1

S1: Status of Hardware and Software for Microcomputers

  • Jan 01, 1980
  • IFAC Proceedings Volumes
  • G Färber
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.