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:
-
-
(Preview, Dissemination version, pdf, 664.0KB, Terms of use)
-
Authors
Contributors
+ Kroening, D
- Institution:
- University of Oxford
- Division:
- MPLS
- Department:
- Computer Science
- Role:
- Supervisor
- ORCID:
- 0000-0002-6681-5283
+ Melham, T
- Institution:
- University of Oxford
- Division:
- MPLS
- Department:
- Computer Science
- Role:
- Supervisor
- ORCID:
- 0000-0002-2462-2782
+ Ong, L
- Institution:
- University of Oxford
- Division:
- MPLS
- Department:
- Computer Science
- Role:
- Supervisor
+ Roscoe, A
- Institution:
- University of Oxford
- Division:
- MPLS
- Department:
- Computer Science
- Role:
- Examiner
- ORCID:
- 0000-0001-7557-3901
+ Sewell, P
- 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
- Language:
-
English
- Keywords:
- Subjects:
- Deposit date:
-
2026-07-14
- ARK identifier:
Terms of use
- Copyright holder:
- Lihao Liang
- Copyright date:
- 2018
If you are the owner of this record, you can report an update to it here: Report update to this record