Formal Methods in Computer-Aided Design · 2014 · 16 citations · 12 references
ComputingComputer ScienceComputer SystemsCryptographyFormal MethodsProgramming LanguagesAbstract InterpretationConcurrency AnalysisConcurrent ProgrammingConcurrent System VerificationData SynchronizationRace Condition VulnerabilitiesConcurrent Program VerificationCryptographic ApplicationsKernel ModulesModel Checking For ConcurrencyRace ConditionsUninterpreted FunctionsVerification Of Concurrent Programs
Correctness of a program with respect to concurrency is often hard to achieve, but easy to specify: the concurrent program should produce the same results as a sequential reference version. We show how to automatically insert small atomic sections into a program to ensure correctness with respect to this implicit specification. Using techniques from bounded software model checking, we transform the program into an SMT formula that becomes unsatisfiable when we add correct atomic sections. By using uninterpreted functions to abstract data-related computational details, we make our approach applicable to programs with very complex computations, e.g., cryptographic algorithms. Our method starts with an empty set of atomic sections, and, based on counterexamples obtained from the SMT solver, refines the program by adding new atomic sections until correctness is achieved. We compare two different such refinement methods and provide experimental results, including Linux kernel modules where we successfully fix race conditions.
12
Handbook of applied cryptography
Choice Reviews Online · 1997 · 10.5K citations · Full text
A theory of diagnosis from first principles
Raymond Reiter · Artificial Intelligence · 1987 · 2.9K citations
Concurrent bug patterns and how to test them
Eitan Farchi, Y. Nir, Shmuel Ur · 2004 · 219 citations