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

并发内存管理的依赖-保证推理:正确性、安全性与保密性

Rely-guarantee Reasoning about Concurrent Memory Management: Correctness, Safety and Security

Yongwang Zhao, David Sanan

AI总结:

本文首次对 Zephyr RTOS 并发内存管理进行形式化规范与机械化证明,扩展 PiCore 框架以验证完整性,并在功能验证中发现 C 实现中的三个缺陷。

摘要:

并发操作系统(OS)的形式化验证具有挑战性,尤其是动态内存管理的验证,这是由于其复杂的数据结构和分配算法。内存管理的不正确规范与实现可能导致系统崩溃或可被利用的攻击。本文首次针对一个真实世界操作系统的并发内存管理,给出了涵盖功能正确性、安全性和保密性等一整套性质的形式化规范与机械化证明。为了达到最高保证评估级别,我们为 Zephyr RTOS 伙伴内存管理开发了细粒度形式化规范,该规范紧密贴合 C 代码,便于对规范和源代码进行确认。基于依赖-保证的组合验证技术已在形式化模型上得到实施。为支持保密性性质的形式化验证,我们将依赖-保证框架 PiCore 扩展为一种面向完整性的组合推理方法。设计的安全性验证表明其保持了完整性性质,而功能性质的验证则暴露出若干问题。在检查与违反这些性质的设计行相对应的源代码后,这些验证问题被转化为在 Zephyr 的 C 实现中发现三个缺陷。

英文摘要:

Formal verification of concurrent operating systems (OSs) is challenging, in particular the verification of the dynamic memory management due to its complex data structures and allocation algorithm. An incorrect specification and implementation of the memory management may lead to system crashes or exploitable attacks. This article presents the first formal specification and mechanized proof of a concurrent memory management for a real-world OS concerning a comprehensive set of properties, including functional correctness, safety and security. To achieve the highest assurance evaluation level, we develop a fine-grained formal specification of the Zephyr RTOS buddy memory management, which closely follows the C code easing validation of the specification and the source code. The rely-guarantee-based compositional verification technique has been enforced over the formal model. To support formal verification of the security property, we extend our rely-guarantee framework PiCore by a compositional reasoning approach for integrity. Whilst the security verification of the design shows that it preserves the integrity property, the verification of the functional properties shows several problems. These verification issues are translated into finding three bugs in the C implementation of Zephyr, after inspecting the source code corresponding to the design lines breaking the properties.

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

↑