2020 · 11 citations · 10 references
EngineeringComputer EngineeringComputer ScienceComputer ArchitectureFault ToleranceFault-tolerant ComputingError DetectionHardware TrojansInstruction Set ArchitectureMicroarchitectural SecurityMicroarchitecture DesignProcessor MicroarchitectureCrash RecoveryGround Truth VerificationGround-truth ValidationMicroarchitectural Security VerificationMicroarchitecture EmulationProcessor Security VerificationRisc ArchitecturesRisc-v Core Design
Undocumented and faulty CPU instructions can cause undefined behavior and system instability, impairing software efforts such as OS crash recovery and resilience, and system security. Although often not considered, the identification of such undocumented instructions is critical. We present a portable RISC instruction scanner that is able to search for undocumented instructions on a wide range of RISC architectures, empowering users to verify the reliable and secure operation of their systems. We propose two methods to look for undocumented instructions. Both attempt to execute a single instruction word in a controlled manner, regaining control afterwards. Subsequently, we determine if the instruction word is considered valid by the processor, comparing this result to the processor's ISA specification. Our prototype scanner can scan multiple ARMv8 and RISC-V systems. Various inconsistencies were discovered in the QEMU emulator and disassemblers used as ground truth. Furthermore, we found an undocumented instruction on a RISC-V chip.
10
László Szekeres, Mathias Payer, Tao Wei et al. · 2013 · 658 citations · Full text
Meltdown: reading kernel memory from user space
Moritz Lipp, Michael Schwarz, Daniel Gruss et al. · USENIX Security Symposium · 2018 · 645 citations
The RISC-V Instruction Set Manual
Andrew Waterman, Yunsup Lee, David A. Patterson et al. · 2014 · 177 citations
Lorenzo Martignoni, Roberto Paleari, Giampaolo Fresi Roglia et al. · 2009 · 141 citations