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

从开发者学习:为Linux大规模可靠补丁验证而努力

Learning From Developers: Towards Reliable Patch Validation at Scale for Linux

Purdue University(普渡大学)

Chih-En Lin, Attreyee Mukherjee, Ajay Rawat, Ruqi Zhang, Pedro Fonseca

AI总结:

本文研究Linux内存管理子系统的补丁审查挑战,提出FLINT框架结合规则分析和LLM,提升补丁验证效率与准确性,发现其在并发问题检测上表现优于基线方法。

摘要:

补丁审查对软件开发至关重要,尤其在分布式开源开发中,如Linux。本文研究了过去10年Linux内存管理子系统的补丁审查,发现尽管有大量自动检查工具,审查过程仍主要依赖人工。为扩大补丁审查规模,我们引入FLINT框架,结合开发者讨论的洞察和自动分析,生成参考支持的报告。FLINT通过多阶段方法高效提取历史讨论信息,针对传统工具难以检测的bug,如维护性问题和复杂并发问题,如死锁和数据竞争。FLINT在Linux v6.18开发周期检测到2个新问题,在先前版本中检测到7个问题,其在并发bug检测上的地面真实覆盖率达到基线的21%和14%,且假阳性率降低35%。

英文摘要:

Patch reviewing is critical for software development, especially in distributed open-source development, which highly depends on voluntary work, such as Linux. This paper studies the past 10 years of patch reviews of the Linux memory management subsystem to characterize the challenges involved in patch reviewing at scale. Our study reveals that the review process is still primarily reliant on human effort despite a wide-range of automatic checking tools. Although kernel developers strive to review all patch proposals, they struggle to keep up with the increasing volume of submissions and depend significantly on a few developers for these reviews. To help scale the patch review process, we introduce FLINT, a patch validation system framework that synthesizes insights from past discussions among developers and automatically analyzes patch proposals for compliance. FLINT employs a rule-based analysis informed by past discussions among developers and an LLM that does not require training or fine-tuning on new data, and can continuously improve with minimum human effort. FLINT uses a multi-stage approach to efficiently distill the essential information from past discussions. Later, when a patch proposal needs review, FLINT retrieves the relevant validation rules for validation and generates a reference-backed report that developers can easily interpret and validate. FLINT targets bugs that traditional tools find hard to detect, ranging from maintainability issues, e.g., design choices and naming conventions, to complex concurrency issues, e.g., deadlocks and data races. FLINT detected 2 new issues in Linux v6.18 development cycle and 7 issues in previous versions. FLINT achieves 21% and 14% of higher ground-truth coverage on concurrency bugs than the baseline with LLM only. Moreover, FLINT achieves a 35% false positive rate, which is lower than the baseline.

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

↑