arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.00521cs.SEcs.AI
收藏

大规模系统中原子性违规的自动化检测

Automated detection of atomicity violations in large-scale systems

East China Normal University(华东师范大学);Beijing Institute of Control Engineering(北京控制工程研究所);East China Normal University Shanghai Innovation Institute(华东师范大学上海创新研究院)

Hang He, Yixing Luo, Chengcheng Wan, Ting Su, Haiying Sun, Geguang Pu

AI总结:

本文提出多智能体框架CLOVER,通过协调静态分析工具和迭代验证机制,检测中断驱动程序中的原子性违规,在多个基准上F1分数提升33.0-117.2%,并发现航空航天软件中12个违规。

摘要:

中断驱动程序中的原子性违规对安全关键系统的软件可靠性构成重大威胁。当共享资源上的操作执行序列被异步中断打断时,就会发生这些违规。由于庞大的程序状态空间、应用级代码依赖关系以及复杂的领域特定知识,检测原子性违规极具挑战性。本文提出CLOVER,一个用于检测现实世界中断驱动程序中原子性违规的多智能体框架。其plan智能体协调四种静态分析工具以提取关键信息并生成代码摘要。CLOVER随后初始化若干Expert-Judge智能体对,通过迭代方式检测和验证不同模式的原子性违规。在RaceBench、SV-COMP和RWIP上的评估表明,CLOVER实现了91.0%/96.4%的精确率/召回率,在F1分数上比现有方法高出33.0-117.2%。此外,它在11个现实世界航空航天软件项目中识别出12个原子性违规,其中1个是此前未知的。

英文摘要:

Atomicity violations in interrupt-driven programs pose a significant threat to software reliability in safety-critical systems. These violations occur when the execution sequence of operations on shared resources is disrupted by asynchronous interrupts. Detecting atomicity violations is challenging due to the vast program state space, application-level code dependencies, and complex domain-specific knowledge. In this paper, we propose CLOVER, a multi-agent framework for detecting atomicity violations in real-world interrupt-driven programs. Its plan agent orchestrates four static analysis tools to extract key information and generate code summaries. CLOVER then initializes several Expert-Judge agent pairs to detect and validate different patterns of atomicity violation, through an iterative manner. Evaluations on RaceBench, SV-COMP, and RWIP demonstrate that CLOVER achieves a precision/recall of 91.0%/96.4%, outperforming existing approaches by 33.0-117.2% on F1-score. Additionally, it identifies 12 atomicity violations in 11 real-world aerospace software projects, one of which is previously unknown.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑