中断驱动软件的模块化验证
Modular Verification of Interrupt-Driven Software
摘要:
中断已被广泛用于安全关键计算机系统中,以处理外部刺激并与硬件交互,但有关中断驱动软件的推理仍然是一项困难的任务。虽然已经提出了一些静态验证技术的中断驱动的软件,他们往往依赖于构建一个单片验证模型。此外,它们不能精确地捕获中断的完整执行语义,例如中断处理程序的嵌套调用。为了克服这些限制,我们提出了一个抽象的解释框架,中断驱动的软件,首先分析每个中断处理程序的隔离,如果它是一个顺序的程序,然后传播的结果到其他中断处理程序的静态验证。这个迭代过程一直持续到来自所有中断处理程序的结果到达一个固定点。由于我们的方法从来没有构造全局模型,它避免了在模型构造中阻碍现有的,非模块化的,验证技术的前期爆破。我们已经在35个中断驱动的应用程序上评估了我们的方法,总共有22,541行代码。我们的结果表明,该方法能够快速,更准确地分析中断的行为。
英文摘要:
Interrupts have been widely used in safety-critical computer systems to handle outside stimuli and interact with the hardware, but reasoning about interrupt-driven software remains a difficult task. Although a number of static verification techniques have been proposed for interrupt-driven software, they often rely on constructing a monolithic verification model. Furthermore, they do not precisely capture the complete execution semantics of interrupts such as nested invocations of interrupt handlers. To overcome these limitations, we propose an abstract interpretation framework for static verification of interrupt-driven software that first analyzes each interrupt handler in isolation as if it were a sequential program, and then propagates the result to other interrupt handlers. This iterative process continues until results from all interrupt handlers reach a fixed point. Since our method never constructs the global model, it avoids the up-front blowup in model construction that hampers existing, non-modular, verification techniques. We have evaluated our method on 35 interrupt-driven applications with a total of 22,541 lines of code. Our results show the method is able to quickly and more accurately analyze the behavior of interrupts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。