Skip to main content
QUICK REVIEW

[Paper Review] On Reducing Linearizability to State Reachability

Ahmed Bouajjani, Michael Emmi|arXiv (Cornell University)|Feb 24, 2015
Distributed systems and fault toleranceComputer Science9 references7 citations
TL;DR

This paper presents a generic reduction from linearizability verification to control-state reachability for specific atomic data types—queue, stack, register, and mutex—by expressing specification violations as finite unions of regular languages. The key contribution is decidability of linearizability without thread bounds, enabling use of existing safety verification tools for concurrent object correctness.

ABSTRACT

Efficient implementations of atomic objects such as concurrent stacks and queues are especially susceptible to programming errors, and necessitate automatic verification. Unfortunately their correctness criteria - linearizability with respect to given ADT specifications - are hard to verify. Even on classes of implementations where the usual temporal safety properties like control-state reachability are decidable, linearizability is undecidable. In this work we demonstrate that verifying linearizability for certain fixed ADT specifications is reducible to control-state reachability, despite being harder for arbitrary ADTs. We effectuate this reduction for several of the most popular atomic objects. This reduction yields the first decidability results for verification without bounding the number of concurrent threads. Furthermore, it enables the application of existing safety-verification tools to linearizability verification.

Motivation & Objective

  • To address the undecidability of linearizability verification in concurrent systems with unbounded threads.
  • To develop a methodology that reduces linearizability checking to control-state reachability for fixed ADT specifications.
  • To enable the use of existing safety verification tools for linearizability by reducing it to a decidable reachability problem.
  • To prove decidability of linearizability for finite-shared-memory programs with finite-state threads, without bounding the number of concurrent threads.

Proposed method

  • Uses inductive rules to define atomic data type specifications, enabling incremental construction of valid executions.
  • Expresses violations of ADT specifications as finite unions of regular languages through co-regularity of inductive rules.
  • Leverages data independence to encode unbounded data values using finite-state automata, despite unbounded alphabets.
  • Reduces linearizability to the emptiness of the intersection between the implementation and the regular language of violations.
  • Applies closure properties under intersection with regular languages to ensure the reduction holds across implementation classes.
  • Reduces the problem to the coverability problem for Petri nets, which is decidable and EXPSPACE-complete.

Experimental results

Research questions

  • RQ1Can linearizability verification be reduced to control-state reachability for specific atomic data types?
  • RQ2Under what conditions is linearizability decidable for concurrent implementations with unbounded threads?
  • RQ3Can specification violations of atomic objects be expressed as regular languages despite unbounded data values?
  • RQ4Is it possible to verify linearizability without bounding the number of concurrent threads using existing verification tools?
  • RQ5How can inductive specifications of ADTs be used to characterize non-linearizable executions?

Key findings

  • Linearizability is decidable for finite-shared-memory programs with finite-state threads, even without bounding the number of concurrent threads.
  • The reduction to control-state reachability enables the use of existing safety verification tools for linearizability checking.
  • Specification violations for atomic queue, stack, register, and mutex can be expressed as finite unions of regular languages.
  • The approach relies on data independence and co-regularity of inductive rules to handle unbounded data values.
  • The coverability problem for Petri nets captures the reduced problem, making it EXPSPACE-complete.
  • The methodology is generic and reusable for other ADTs beyond the four studied.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.