Linux内核生态系统的补丁移植实践调查
An Investigation of Patch Porting Practices of the Linux Kernel Ecosystem
AI总结:
本研究通过挖掘软件仓库,调查Linux生态系统中补丁移植策略与能力,使用补丁延迟、补丁率和错误继承率指标揭示不同策略的权衡,并强调提示标签的重要性,最后提出改进建议。
摘要:
开源软件被越来越多地重用,这使得修复错误的补丁过程变得复杂。就Linux而言,已经形成了一个独特的生态系统,其中Linux主线作为上游,稳定版或长期支持(LTS)系统从主线分叉,而Linux发行版(如Ubuntu和Android)作为从稳定版或LTS系统分叉的下游,供最终用户使用。理想情况下,当补丁在Linux上游提交时,它不应引入新的错误,并应及时移植到所有适用的下游分支。然而,先前的工作已经对Linux生态系统中补丁移植的响应性表达了若干担忧。在本文中,我们挖掘软件仓库,结合Linux稳定版和LTS调查一系列Linux发行版,并发现多样的补丁移植策略和能力水平,这有助于解释上述现象。此外,我们使用三个指标,即补丁延迟、补丁率和错误继承率,具体展示了不同移植策略具有不同的权衡。我们发现提示标签(例如Cc稳定标签和修复标签)对及时补丁移植非常重要,但值得注意的是,相当一部分补丁仍然缺乏这些指示性标签。最后,我们基于对一般补丁流程的分析提出建议,例如生态系统中各利益相关者之间的互动以及提示标签的自动生成,以及针对特定移植策略的定制建议。
英文摘要:
Open-source software is increasingly reused, complicating the process of patching to repair bugs. In the case of Linux, a distinct ecosystem has formed, with Linux mainline serving as the upstream, stable or long-term-support (LTS) systems forked from mainline, and Linux distributions, such as Ubuntu and Android, as downstreams forked from stable or LTS systems for end-user use. Ideally, when a patch is committed in the Linux upstream, it should not introduce new bugs and be ported to all the applicable downstream branches in a timely fashion. However, several concerns have been expressed in prior work about the responsiveness of patch porting in this Linux ecosystem. In this paper, we mine the software repositories to investigate a range of Linux distributions in combination with Linux stable and LTS, and find diverse patch porting strategies and competence levels that help explain the phenomenon. Furthermore, we show concretely using three metrics, i.e., patch delay, patch rate, and bug inheritance ratio, that different porting strategies have different tradeoffs. We find that hinting tags(e.g., Cc stable tags and fixes tags) are significantly important to the prompt patch porting, but it is noteworthy that a substantial portion of patches remain devoid of these indicative tags. Finally, we offer recommendations based on our analysis of the general patch flow, e.g., interactions among various stakeholders in the ecosystem and automatic generation of hinting tags, as well as tailored suggestions for specific porting strategies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。