Efficient data race detection for interrupt-driven programs via path feasibility analysis

被引:2
作者
Zhao, Jingwen [1 ]
Wu, Yanxia [1 ]
Dong, Jibin [1 ]
机构
[1] Harbin Engn Univ, Coll Comp Sci & Technol, Harbin 150001, Peoples R China
关键词
Interrupt-driven programs; Date race; Static analysis; Path feasibility analysis; Bug detection; VERIFICATION;
D O I
10.1007/s11227-024-06189-4
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Interrupt-driven programs are widely used in embedded systems with high security requirements. However, uncertain interleaving execution of tasks and interrupts may cause concurrency bugs, with data races being a significant factor in threatening security. Most of the previous research has focused on detecting data races in multi-threaded programs. And existing static analysis methods for interrupt-related data race detection often produce many false positives. This paper presents IntRace, an accurate and efficient static detection technique for interrupt data race. IntRace eliminates false data race by analyzing potential concurrency relationships and path reachability. It first identifies all race candidate pairs using access interleaving pattern matching. Then for each pair of operational accesses, IntRace analyzes potential concurrency relationships, including the special case of interrupt nesting, and uses this information to filter out access pairs that cannot concurrently access the same location. Finally, it checks the feasibility of events in the access pairs by constructing path constraints, which effectively eliminating infeasible paths in concurrent contexts. In addition, IntRace was evaluated on benchmark tests and 9 real embedded programs. The experimental results show that IntRace reduces the false positive rate by 73.2% compared to recent studies.
引用
收藏
页码:21699 / 21725
页数:27
相关论文
共 22 条
  • [21] Efficient composite data flow analysis applied to concurrent programs
    Naumovich, G
    Clarke, LA
    Osterweil, LJ
    ACM SIGPLAN NOTICES, 1998, 33 (07) : 51 - 58
  • [22] Path-Sensitive Oracle Data Selection via Static Analysis
    Zhang, Mingzhe
    Gong, Yunzhan
    Wang, Yawen
    Jin, Dahai
    ELECTRONICS, 2021, 10 (02) : 1 - 19