arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.11519cs.AR
收藏

SiliFuzz:通过代理模糊CPU

SiliFuzz: Fuzzing CPUs by proxy

Kostya Serebryany, Maxim Lifantsev, Konstantin Shtoyk, Doug Kwan, Peter Hochschild

摘要:

CPU在逻辑和物理层面上都变得越来越复杂。这可能导致在测试期间忽略CPU中的更多逻辑错误和电气缺陷,从而在生产中使用这些CPU时导致数据损坏或其他不良影响。这些一直存在的问题也可能变得更加明显,因为越来越多的CPU由大型云提供商运行和监控。如果CPU的RTL(“源代码”)可用,我们可以将灰盒模糊应用于CPU模型,几乎就像我们对任何其他软件所做的那样[arXiv:2102.02308]。然而,我们的目标是由第三方生产的通用x86_64 CPU,我们没有RTL设计,因此在我们的情况下CPU实现是不透明的。此外,我们更感兴趣的是电气缺陷,而不是逻辑错误。我们提出了SiliFuzz,一个正在进行的系统,通过模糊软件代理(如CPU模拟器或反汇编器)发现CPU缺陷,然后在实际CPU上大规模执行累积的测试输入(称为语料库)。这项工作与传统软件模糊测试之间的主要区别在于,一次修复的软件错误将在所有软件安装中得到修复,而对于CPU缺陷,由于磨损,我们必须在其生命周期内反复测试每个单独的核心。在本文中,我们还分析了SiliFuzz发现的四组CPU缺陷,并描述了其他SiliFuzz发现的模式。

英文摘要:

CPUs are becoming more complex with every generation, at both the logical and the physical levels. This potentially leads to more logic bugs and electrical defects in CPUs being overlooked during testing, which causes data corruption or other undesirable effects when these CPUs are used in production. These ever-present problems may also have simply become more evident as more CPUs are operated and monitored by large cloud providers. If the RTL ("source code") of a CPU were available, we could apply greybox fuzzing to the CPU model almost as we do to any other software [arXiv:2102.02308]. However our targets are general purpose x86_64 CPUs produced by third parties, where we do not have the RTL design, so in our case CPU implementations are opaque. Moreover, we are more interested in electrical defects as opposed to logic bugs. We present SiliFuzz, a work-in-progress system that finds CPU defects by fuzzing software proxies, like CPU simulators or disassemblers, and then executing the accumulated test inputs (known as the corpus) on actual CPUs on a large scale. The major difference between this work and traditional software fuzzing is that a software bug fixed once will be fixed for all installations of the software, while for CPU defects we have to test every individual core repeatedly over its lifetime due to wear and tear. In this paper we also analyze four groups of CPU defects that SiliFuzz has uncovered and describe patterns shared by other SiliFuzz findings.

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

↑