Dynamic Detection of Atomicity Violations in Interrupt‐Driven Programs via Prefix‐Directed Scheduling
Hao Wang, Bin Yu, Letian Wang, Xu Lu, Cheng Wen, Bin Yi, Meng Wang, Chu Chen
Key points
From the paper's conclusion- We propose a dynamic atomicity violation detection framework for interrupt‐driven programs.
Abstract
Interrupt‐driven programs are widely used in safety‐critical domains such as aerospace and embedded systems. However, unpredictable interleaved executions of interrupt service routines (ISRs) often lead to concurrency bugs. In particular, if one or more ISRs preempt a sequence of instructions expected to execute atomically, an atomicity violation can occur. To the best of our knowledge, no effective dynamic detector has been specifically designed to accurately and efficiently identify atomicity violations in interrupt‐driven programs, even for predetermined inputs. We propose a dynamic atomicity violation detection framework for interrupt‐driven programs. Specifically, key operations on shared variables and potential preemption points are first analyzed for each task. Building upon this, systematic scheduling generates feasible preemption schedules tailored to preemption relationships and synchronization mechanisms. Subsequently, each preemption schedule is dynamically checked through periodical execution, during which interleaving patterns are recognized to achieve on‐the‐fly atomicity violation detection. To reduce the exploration space, a prefix‐directed feedback mechanism guides subsequent schedules and executions toward uncovered paths. Extensive experiments show that the systematic scheduling strategy is effective in generating feasible preemptions while the prefix‐directed strategy can reduce the number of redundant schedules significantly, making our approach more precise and efficient than related methods.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- REINS: Agent-guided Thread Scheduling for Concurrency Bug Detection and ReproductionarXiv · 2026
- Efficient Predictive Monitoring of Message Passing Interface ProgramsProceedings of the ACM on Software Engineering · 2026
- CHERI under Fault Injection: An Emulation-Based Security Evaluation of Capability Hardware Enhanced RISC InstructionsarXiv · 2026
- Breaking the Coupling: Efficient Concurrency Fuzzing for Linux Kernel Data Race DetectionarXiv · 2026
- Interrupt-Aware Static Detection of Deadlocks in Rust Operating SystemsarXiv · 2026
- From Silicon to Boot Code: Extending Automated Program Repair to Firmware-Layer Security WorkaroundsarXiv · 2026