克服价值流分析框架的扩展Scalability问题
Conquering the Extensional Scalability Problem for Value-Flow Analysis Frameworks
摘要:
随着要检查的值流属性数量的增加,当需要高精度时,现有的静态程序分析仍然倾向于具有可伸缩性问题。我们观察到可伸缩性问题背后的关键设计缺陷是核心静态分析引擎忽略了正在检查的不同属性之间的相互协同作用,因此不可避免地失去了许多优化机会。我们的方法是跨属性感知的,能够捕捉不同属性之间可能的重叠和不一致。因此,在分析程序之前,我们可以制定优化计划,决定如何重用某个属性的特定分析结果,以加快对其他属性的检查。这种性质之间的协同相互作用显著提高了分析性能。我们已经评估了我们的方法,通过检查20个价值流属性的标准基准程序和10个真实世界的软件系统。结果表明,我们的方法比现有方法快8倍以上,但只消耗1/7的内存。这种分析效率的大幅提高并不是通过牺牲有效性来实现的:在撰写本文时,开发人员已经修复了我们的方法发现的39个错误,其中4个由于其安全影响而被分配了CVE ID。
英文摘要:
With an increasing number of value-flow properties to check, existing static program analysis still tends to have scalability issues when high precision is required. We observe that the key design flaw behind the scalability problem is that the core static analysis engine is oblivious of the mutual synergies among different properties being checked and, thus, inevitably loses many optimization opportunities. Our approach is inter-property-aware and able to capture possible overlaps and inconsistencies among different properties. Thus, before analyzing a program, we can make optimization plans which decide how to reuse the specific analysis results of a property to speed up checking other properties. Such a synergistic interaction among the properties significantly improves the analysis performance. We have evaluated our approach by checking twenty value-flow properties in standard benchmark programs and ten real-world software systems. The results demonstrate that our approach is more than 8x faster than existing ones but consumes only 1/7 memory. Such a substantial improvement in analysis efficiency is not achieved by sacrificing the effectiveness: at the time of writing, 39 bugs found by our approach have been fixed by developers and four of them have been assigned CVE IDs due to their security impact.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。