• DocumentCode
    2879823
  • Title

    Formal Reasoning about Concurrent Assembly Code with Reentrant Locks

  • Author

    Fu, Ming ; Zhang, Yu ; Li, Yong

  • fYear
    2009
  • fDate
    29-31 July 2009
  • Firstpage
    233
  • Lastpage
    240
  • Abstract
    This paper focuses on the problem of reasoning about concurrent assembly code with reentrant locks. Our verification technique is based on concurrent separation logic (CSL). In CSL, locks are treated as non-reentrant locks and each lock is associated with a resource invariant, the lock-protected resources are obtained and released through acquiring and releasing the lock respectively. In order to accommodate for reentrancy, we introduce some additional notions into our specification language to describe reentrant level for each acquiring and releasing lock operation. Keeping track of the reentrant level for each lock in the pre- and post- conditions enables the program logic to ensure that resources are not reacquired upon reentrancy, thus resources owned by a thread are prevented from reintroducing in the postcondition. Our framework is fully mechanized. Its soundness has been verified using the Coq proof assistant. We demonstrate the usage of our framework through giving a safety proof of a simple program.
  • Keywords
    concurrency control; formal logic; formal specification; reasoning about programs; theorem proving; Coq proof assistant; concurrent assembly code; concurrent separation logic; formal reasoning; nonreentrant lock; program logic; resource invariant; specification language; verification technique; Assembly; Computer security; Laboratories; Logic programming; Protection; Safety; Software engineering; Specification languages; System recovery; Yarn; concurrent separation logic; program logic; reentrant locks; safety;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Theoretical Aspects of Software Engineering, 2009. TASE 2009. Third IEEE International Symposium on
  • Conference_Location
    Tianjin
  • Print_ISBN
    978-0-7695-3757-3
  • Type

    conf

  • DOI
    10.1109/TASE.2009.36
  • Filename
    5198507