Published November 12, 2019 | Version 1.0.0.2019.11.12

RustBelt Meets Relaxed Memory (Artifact)

  • 1. MPI-SWS, Germany
  • 2. Université Paris-Saclay, CNRS, Laboratoire de recherche en informatique, France

Description

This is a virtual machine that contains a snapshot of the RustBelt Relaxed Coq development. In our repository, the snapshot has the tag "RBrlx-POPL20-artifact". More updated information can be found at http://plv.mpi-sws.org/rustbelt/rbrlx/.

PAPER ABSTRACT

The Rust programming language supports safe systems programming by means of a strong ownership-tracking type system. In their prior work on RustBelt, Jung et al. began the task of setting Rust's safety claims on a more rigorous formal foundation. Specifically, they used Iris, a Coq-based separation logic framework, to build a machine-checked proof of semantic soundness for a λ-calculus model of Rust, as well as for a number of widely-used Rust libraries that internally employ unsafe language features. However, they also made the significant simplifying assumption that the language is sequentially consistent. In this paper, we adapt RustBelt to account for the relaxed-memory operations that concurrent Rust libraries actually use, in the process uncovering a data race in the Arc library. We focus on the most interesting technical problem: how to reason about resource reclamation under relaxed memory, using a logical construction we call synchronized ghost state.

Files

RBrlx_artifact_2019.11.12.zip

Files (2.1 GB)

Name Size
md5:ed867d5bc444afba6706520e9c356aac
2.1 GB Preview Download

Additional details

Related works

Is supplement to
Conference paper: 10.1145/3371102 (DOI)

Funding

European Commission
RustBelt - Logical Foundations for the Future of Safe Systems Programming 683289