Thesis icon

Thesis

Effective verification of interrupt-driven software

Abstract:
Interrupt-driven software is difficult to test and debug, especially when interrupts can be nested and subject to priorities. Interrupts can arrive at arbitrary times, leading to an exponential blow-up in the number of cases to consider.

The first part of this thesis presents two different approaches to verifying software with nested interrupts. The first approach uses source-to-source transformations that translate an interrupt-driven program into a sequential and a multi-threaded program. The second method is a new formal approach based on symbolic execution. This approach leverages recent advances in the encoding of the execution traces of interacting, concurrent threads. We assess the performance of these techniques on benchmarks drawn from real-world embedded systems code and Linux device drivers. To the best of our knowledge, our work is the first to demonstrate effective formal verification of low-level embedded software with nested interrupts.

The second part of this thesis studies the verification problem of ReadCopy Update (RCU), a scalable high-performance synchronization mechanism in the Linux operating system that allows extremely low-overhead readers to run concurrently with updaters. Production-quality RCU implementations are highly sophisticated and make heavy use of the schedulingclock interrupt. Previous validation efforts on RCU either focus on simple implementations or use modelling languages that are difficult to translate from C. The resulting error-prone manual translation step must be repeated frequently due to the rapid change rate of the RCU implementation in Linux. We first explain in detail the RCU implementation in the Linux kernel; then we describe how to construct a model from the RCU source code, and use the CBMC model checker to verify its safety and liveness properties. This is the first attempt to verify the core components of the Tree RCU implementation in the Linux kernel. We hope it will be a step towards integrating formal verification into RCU’s regression test suite in Linux.

Actions

Access Document

Files:

Authors

More by this author
Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Author

Contributors

Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Supervisor
ORCID:
0000-0002-6681-5283
Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Supervisor
ORCID:
0000-0002-2462-2782
Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Supervisor
Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Examiner
ORCID:
0000-0001-7557-3901
Role:
Examiner


University of Oxford More from this funder
Funding agency for:
Liang, L
Programme:
Departmental Scholarship
Intel (United States) More from this funder
Funding agency for:
Liang, L
Funding agency for:
Kroening, D
Funding agency for:
Melham, T
Funding agency for:
Ong, L
Programme:
Effective Validation of Firmware


DOI:
Type of award:
DPhil
Level of award:
Doctoral
Awarding institution:
University of Oxford

Terms of use


Views and Downloads

Views and downloads will return soon






If you are the owner of this record, you can report an update to it here: Report update to this record

TO TOP