arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.28326cs.PL
收藏

向Rust的指针别名限制下验证不安全Rust程序

Towards verifying unsafe Rust programs against Rust's pointer-aliasing restrictions

Department of Computer Science, Leuven, Belgium(鲁汶大学计算机系)

Wannes Tas, Bart Jacobs

AI总结:

本文提出一种模块化验证方法,用于检查使用不安全块的Rust程序是否符合指针别名规则,提升程序安全性。

摘要:

Rust编程语言以其强大的所有权制度著称:每个值在每个时刻要么独占拥有,要么通过可变引用独占借用,或通过一个或多个共享引用只读借用。这些规则,即Rust的指针别名规则,被Rust编译器用来生成更高效的机器代码,并由Rust的静态类型系统强制执行,除了在不安全块内。在本文中,我们提出了朝着第一个程序逻辑方向的工作,用于模块化验证使用不安全块的Rust程序是否符合指针别名规则。

英文摘要:

The Rust programming language is famous for its strong ownership regime: at each point, each value is either exclusively owned, exclusively borrowed through a mutable reference, or borrowed as read-only through one or more shared references. These rules, known as Rust's pointer-aliasing rules, are exploited by the Rust compiler to generate more efficient machine code, and enforced by Rust's static type system, except inside unsafe blocks. In this paper, we present our work in progress towards the first program logic for modularly verifying that Rust programs that use unsafe blocks comply with the pointer-aliasing rules.

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

↑