从二进制到机器无关码的声音转换
Sound Transpilation from Binary to Machine-Independent Code
摘要:
为了处理现代指令集体系结构的复杂性和异构性,分析平台共享一个共同的设计,即采用与硬件无关的中间表示。使用这些平台来验证系统到二进制级别是有吸引力的,因为它们提供了高度的自动化。然而,它引入了信任从二进制代码到中间语言的翻译的正确性的需要。实现高度的信任是具有挑战性的,因为这种转译必须处理(i)指令的所有副作用,(ii)多指令编码(例如ARM Thumb),以及(iii)可变指令长度(例如Intel)。我们克服了这些问题,正式建模的交互式定理证明器HOL4,并通过实现证明生产转译这样的中间语言之一。该工具将ARMv8程序翻译为中间语言,并生成HOL4证明,以模拟定理的形式证明翻译的正确性。我们还展示了如何转译定理可以用来转移属性验证的中间语言的二进制代码。
英文摘要:
In order to handle the complexity and heterogeneity of mod- ern instruction set architectures, analysis platforms share a common design, the adoption of hardware-independent intermediate representa- tions. The usage of these platforms to verify systems down to binary-level is appealing due to the high degree of automation they provide. How- ever, it introduces the need for trusting the correctness of the translation from binary code to intermediate language. Achieving a high degree of trust is challenging since this transpilation must handle (i) all the side effects of the instructions, (ii) multiple instruction encoding (e.g. ARM Thumb), and (iii) variable instruction length (e.g. Intel). We overcome these problems by formally modeling one of such intermediate languages in the interactive theorem prover HOL4 and by implementing a proof- producing transpiler. This tool translates ARMv8 programs to the in- termediate language and generates a HOL4 proof that demonstrates the correctness of the translation in the form of a simulation theorem. We also show how the transpiler theorems can be used to transfer properties verified on the intermediate language to the binary code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。