使用 Pancake 验证设备驱动程序
Verifying Device Drivers with Pancake
AI总结:
针对设备驱动程序漏洞导致操作系统被攻破的问题,提出命令式语言 Pancake 及其编译器,结合 CakeML 后端与 Viper 前端,成功验证了以太网 NIC 的高性能驱动程序。
摘要:
设备驱动程序漏洞是操作系统被攻破的主要原因,因此对其进行形式化验证极具必要性。据我们所知,尚未有针对非平凡设备的现实且高性能的驱动程序被验证过。我们提出了 Pancake,一种用于系统编程的命令式语言,具有定义明确且对验证友好的语义。利用 CakeML 函数式语言的已验证编译器后端,我们为 Pancake 开发了一个编译器,保证二进制文件保留源代码的语义。通过将 Pancake 自动翻译到 Viper SMT 前端,我们验证了一个用于以太网 NIC 的高性能驱动程序。
英文摘要:
Device driver bugs are the leading cause of OS compromises, and their formal verification is therefore highly desirable. To the best of our knowledge, no realistic and performant driver has been verified for a non-trivial device. We propose Pancake, an imperative language for systems programming that features a well-defined and verification-friendly semantics. Leveraging the verified compiler backend of the CakeML functional language, we develop a compiler for Pancake that guarantees that the binary retains the semantics of the source code. Usng automatic translation of Pancake to the Viper SMT front-end, we verify a performant driver for an Ethernet NIC.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。