2012 · 77 citations · 25 references
ComputingComputer EngineeringComputer ScienceComputer ArchitectureHardware SecurityHardware-software Co-designSoftware TestingSymbolic ExecutionTestbenchesAtomicityAtomicity ViolationsBinary InstrumentationEmulationMicroarchitecture EmulationProcessor EmulationRoot CausesTest Cases
Processor emulators are widely used to provide isolation and instrumentation of binary software. However they have proved difficult to implement correctly: processor specifications have many corner cases that are not exercised by common workloads. It is untenable to base other system security properties on the correctness of emulators that have received only ad-hoc testing. To obtain emulators that are worthy of the required trust, we propose a technique to explore a high-fidelity emulator with symbolic execution, and then lift those test cases to test a lower-fidelity emulator. The high-fidelity emulator serves as a proxy for the hardware specification, but we can also further validate by running the tests on real hardware. We implement our approach and apply it to generate about 610,000 test cases; for about 95% of the instructions we achieve complete path coverage. The tests reveal thousands of individual differences; we analyze those differences to shed light on a number of root causes, such as atomicity violations and missing security features.
25
Symbolic execution and program testing
James C. King · Communications of the ACM · 1976 · 3K citations · Full text
Nicholas Nethercote, Julian Seward · 2007 · 2.3K citations
Patrice Godefroid, Nils Klarlund, Koushik Sen · ACM SIGPLAN Notices · 2005 · 2.1K citations
IEEE Software · 2011 · 2K citations