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

分布式系统的模型引导模糊测试

Model-guided Fuzzing of Distributed Systems

Ege Berkay Gulcan, Burcu Kulahcioglu Ozkan, Rupak Majumdar, Srinidhi Nagendra

AI总结:

本文提出利用 TLA+ 抽象模型定义覆盖率并引导分布式系统模糊测试,在 Etcd-raft 与 RedisRaft 上提升覆盖率、加速缺陷发现,并找到13个新缺陷。

摘要:

我们提出了一种用于分布式系统实现的覆盖率引导测试算法。我们的主要创新在于使用系统的抽象形式化模型来定义覆盖率。这类抽象模型常在协议设计与验证的早期阶段被开发,但很少在测试阶段使用。我们表明,利用模型覆盖率引导随机测试生成,能够有效覆盖实现状态空间中的关键兴趣点。我们为使用 TLA+ 编写的分布式系统实现和抽象模型实现了一个模糊测试器。实验表明,与纯随机探索以及由不同调度器覆盖率和变异概念引导的随机探索相比,我们的算法具有更好的覆盖率。特别是在 Etcd-raft 和 RedisRaft 等分布式共识协议实现上,该算法持续展现出更高的覆盖率,并能更快检测到缺陷。此外,我们在其实现中发现了13个此前未知的缺陷,其中4个只能通过模型引导的模糊测试检测到。

英文摘要:

We present a coverage-guided testing algorithm for distributed systems implementations. Our main innovation is the use of an abstract formal model of the system that is used to define coverage. Such abstract models are frequently developed in early phases of protocol design and verification but are infrequently used at testing time. We show that guiding random test generation using model coverage can be effective in covering interesting points in the implementation state space. We have implemented a fuzzer for distributed system implementations and abstract models written in TLA+. Our algorithm shows better coverage over purely random exploration as well as random exploration guided by different notions of scheduler coverage and mutation. In particular, we show consistently higher coverage and detect bugs faster on implementations of distributed consensus protocols such as those in Etcd-raft and RedisRaft. Moreover, we discovered 13 previously unknown bugs in their implementations, four of which could only be detected by model-guided fuzzing.

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

↑