Maximizing Patch Coverage for Testing of Highly-Configurable Software without Exploding Build Times

Author:

Yıldıran Necip Fazıl1ORCID,Oh Jeho2ORCID,Lawall Julia3ORCID,Gazzillo Paul1ORCID

Affiliation:

1. University of Central Florida, Orlando, USA

2. University of Texas, Austin, USA

3. Inria, Paris, France

Abstract

The Linux kernel is highly-configurable, with a build system that takes a configuration file as input and automatically tailors the source code accordingly. Configurability, however, complicates testing, because different configuration options lead to the inclusion of different code fragments. With thousands of patches received per month, Linux kernel maintainers employ extensive automated continuous integration testing. To attempt patch coverage, i.e., taking all changed lines into account, current approaches either use configuration files that maximize total statement coverage or use multiple randomly-generated configuration files, both of which incur high build times without guaranteeing patch coverage. To achieve patch coverage without exploding build times, we propose krepair, which automatically repairs configuration files that are fast-building but have poor patch coverage to achieve high patch coverage with little effect on build times. krepair works by discovering a small set of changes to a configuration file that will ensure patch coverage, preserving most of the original configuration file's settings. Our evaluation shows that, when applied to configuration files with poor patch coverage on a statistically-significant sample of recent Linux kernel patches, krepair achieves nearly complete patch coverage, 98.5% on average, while changing less than 1.53% of the original default configuration file in 99% of patches, which keeps build times 10.5x faster than maximal configuration files.

Funder

National Science Foundation

Publisher

Association for Computing Machinery (ACM)

Reference80 articles.

1. 2018. Busybox website. https://busybox.net/.

2. 2020. syzkaller commit 67fa1f59b87f “executor: add support for USB fuzzing on NetBSD”. https://github.com/google/syzkaller/commit/67fa1f59b87fed7268b465f7e9540a590a250c65, Last accessed May 4, 2022.

3. 2020. syzkaller commit 80a0690249dc “dashboard/config: regenerate all configs”. https://github.com/google/syzkaller/commit/80a0690249dc4dbbbed95ba197192b99c73694c5, Last accessed May 4, 2022.

4. 2021. Mainline Linux Git Repository. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git.

5. 2021. whatthepatch. https://pypi.org/project/whatthepatch/.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3