arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2209.01789cs.ARcs.CR
收藏

ProcessorFuzz:使用控制和状态寄存器指导处理器模糊

ProcessorFuzz: Guiding Processor Fuzzing using Control and Status Registers

Sadullah Canakci, Chathura Rajapaksha, Anoop Mysore Nataraja, Leila Delshadtehrani, Michael Taylor, Manuel Egele, Ajay Joshi

摘要:

随着现代处理器的复杂性在过去几年中不断增加,开发有效的验证策略以在制造之前识别错误已经变得至关重要。未被发现的微架构的错误在处理器中可以表现为严重的安全漏洞的形式,侧通道,功能错误等的启发,软件模糊,一种常用的技术用于软件测试,多个最近的作品使用硬件模糊寄存器传输级(RTL)设计的验证。然而,这些作品受到一些限制,如缺乏广泛使用的硬件描述语言(HDL)的支持和误导性的覆盖信号,错误地识别“有趣的”输入。为了克服这些缺点,我们提出了ProcessorFuzz,一个处理器模糊,指导模糊与一个新的CSR过渡覆盖度量。ProcessorFuzz监控控制和状态寄存器(CSR)中的转换,因为CSR负责控制和保持处理器的状态。因此,CSR中的转换指示新的处理器状态,并且基于该反馈引导模糊器使得ProcessorFuzz能够探索新的处理器状态。ProcessorFuzz与HDL无关,在处理器设计中不需要任何工具。因此,它支持以不同硬件语言编写的各种RTL设计。我们用三个真实的开源处理器-- Rocket、BOOM和BlackParrot--评估了ProcessorFuzz。ProcessorFuzz触发一组真实错误的速度(平均)比DIFUZZRTL快1.23 $\times$。此外,我们的实验在三个RISC-V内核中发现了8个新错误,在参考模型中发现了一个新错误。所有九个bug都得到了相应项目开发人员的确认。

英文摘要:

As the complexity of modern processors has increased over the years, developing effective verification strategies to identify bugs prior to manufacturing has become critical. Undiscovered micro-architectural bugs in processors can manifest as severe security vulnerabilities in the form of side channels, functional bugs, etc. Inspired by software fuzzing, a technique commonly used for software testing, multiple recent works use hardware fuzzing for the verification of Register-Transfer Level (RTL) designs. However, these works suffer from several limitations such as lack of support for widely-used Hardware Description Languages (HDLs) and misleading coverage-signals that misidentify "interesting" inputs. Towards overcoming these shortcomings, we present ProcessorFuzz, a processor fuzzer that guides the fuzzer with a novel CSR-transition coverage metric. ProcessorFuzz monitors the transitions in Control and Status Registers (CSRs) as CSRs are in charge of controlling and holding the state of the processor. Therefore, transitions in CSRs indicate a new processor state, and guiding the fuzzer based on this feedback enables ProcessorFuzz to explore new processor states. ProcessorFuzz is agnostic to the HDL and does not require any instrumentation in the processor design. Thus, it supports a wide range of RTL designs written in different hardware languages. We evaluated ProcessorFuzz with three real-world open-source processors -- Rocket, BOOM, and BlackParrot. ProcessorFuzz triggered a set of ground-truth bugs 1.23$\times$ faster (on average) than DIFUZZRTL. Moreover, our experiments exposed 8 new bugs across the three RISC-V cores and one new bug in a reference model. All nine bugs were confirmed by the developers of the corresponding projects.

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

↑