Verifying read-copy-update in a logic for weak memory
Open Access
- 3 June 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 110-120
Abstract
Read-Copy-Update (RCU) is a technique for letting multiple readers safely access a data structure while a writer concurrently modifies it. It is used heavily in the Linux kernel in situations where fast reads are important and writes are infrequent. Optimized implementations rely only on the weaker memory orderings provided by modern hardware, avoiding the need for expensive synchronization instructions (such as memory barriers) as much as possible. Using GPS, a recently developed program logic for the C/C++11 memory model, we verify an implementation of RCU for a singly-linked list assuming "release-acquire" semantics. Although release-acquire synchronization is stronger than what is required by real RCU implementations, it is nonetheless significantly weaker than the assumption of sequential consistency made in prior work on RCU verification. Ours is the first formal proof of correctness for an implementation of RCU under a weak memory model.Keywords
Funding Information
- Air Force Office of Scientific Research (FA9550-12-1-0370)
- U.S. Department of War
This publication has 14 references indexed in Scilit:
- Common Compiler Optimisations are Invalid in the C11 Memory Model and what we can do about it2015
- Iris2015
- Relaxed separation logic2013
- Verifying Concurrent Memory Reclamation Algorithms with Grace2013
- Partial Orders for Efficient Bounded Model Checking of Concurrent Software2013
- An Axiomatic Memory Model for POWER Multiprocessors2012
- Concurrent Separation Logic and Operational SemanticsElectronic Notes in Theoretical Computer Science, 2011
- x86-TSOCommunications of the ACM, 2010
- Permission accounting in separation logic2005
- Separation logic: a logic for shared mutable data structures2003