Formal Verification of Resource Synchronization Protocol Implementations: A Case Study in RTEMS

Junjie Shi*, Christoph-Cordt von Egidy, Kuan-Hsun Chen, Jian-Jia Chen

*Corresponding author for this work

Research output: Contribution to journalArticleAcademicpeer-review

1 Citation (Scopus)
76 Downloads (Pure)

Abstract

To avoid race conditions and ensure data integrity, resource synchronization protocols have been widely studied in real-time systems for decades, providing systematical policies to guarantee a bound on priority inversion-induced blocking time and the avoidance of deadlocks. However, the corresponding realization is often based on assumed abstractions and necessary adaptions in a real-time operating system, by which the theoretically proven properties of such a protocol may not be delivered, leading to potential mismatches. To prevent such mismatches, in this work, we propose to contract the obligations of involved primitives and operations, and apply the deductive verification on a corresponding implementation. To this end, we present a modularized verification framework and demonstrate its applicability by verifying the official implementation of the Immediate Ceiling Priority Protocol (ICPP) and the Multiprocessor Resource Sharing Protocol (MrsP) in RTEMS, resulting in the discovery of long-stayed mismatches for both synchronization protocols. To resolve them, we provide a possible remedy for the ICPP and an additional precondition regarding nested locking for the MrsP.
Original languageEnglish
Article number9852753
Pages (from-to)4157-4168
Number of pages12
JournalIEEE transactions on computer-aided design of integrated circuits and systems
Volume41
Issue number11
Early online date19 Aug 2022
DOIs
Publication statusPublished - 1 Nov 2022
EventInternational Conference on Embedded Software, EMSOFT 2022 - Shanghai, China
Duration: 7 Oct 202214 Oct 2022
https://esweek.org/emsoft/

Keywords

  • Protocols
  • Synchronization
  • verification
  • System software
  • Real-time systems

Fingerprint

Dive into the research topics of 'Formal Verification of Resource Synchronization Protocol Implementations: A Case Study in RTEMS'. Together they form a unique fingerprint.

Cite this