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

细粒度并发程序的组合不干涉

Compositional Non-Interference for Fine-Grained Concurrent Programs

Dan Frumin, Robbert Krebbers, Lars Birkedal

摘要:

非干扰性是一种程序属性,可确保不存在信息泄漏。在程序设计语言的上下文中,有两种常见的方法来建立非干扰:类型系统和程序逻辑。类型系统提供了强大的自动化(通过类型检查),但它们在它们支持的程序类型方面有固有的限制。程序逻辑支持具有挑战性的程序,但它们通常需要大量的人工帮助,并且不能处理模块或更高阶的程序。为了连接这两种方法,我们提出了SeLoC-一种非干扰的分离逻辑,在此基础上,我们使用逻辑关系技术建立了一个类型系统。通过在分离逻辑之上构建类型系统,我们可以组合地验证由类型化和非类型化部分组成的程序。前一部分通过型式检验进行验证,后一部分通过人工校对进行验证。SeLoC的核心技术贡献是最弱前提条件的关系形式,可以使用分离逻辑资源跟踪信息流。SeLoC是完全机器检查的,并且构建在Iris框架之上,用于Coq中的并发分离逻辑。与Iris的集成为细粒度并发提供了无缝支持,这是之前的类型系统和程序逻辑无法实现的无干扰性。

英文摘要:

Non-interference is a program property that ensures the absence of information leaks. In the context of programming languages, there exist two common approaches for establishing non-interference: type systems and program logics. Type systems provide strong automation (by means of type checking), but they are inherently restrictive in the kind of programs they support. Program logics support challenging programs, but they typically require significant human assistance, and cannot handle modules or higher-order programs. To connect these two approaches, we present SeLoC---a separation logic for non-interference, on top of which we build a type system using the technique of logical relations. By building a type system on top of separation logic, we can compositionally verify programs that consist of typed and untyped parts. The former parts are verified through type checking, while the latter parts are verified through manual proof. The core technical contribution of SeLoC is a relational form of weakest preconditions that can track information flow using separation logic resources. SeLoC is fully machine-checked, and built on top of the Iris framework for concurrent separation logic in Coq. The integration with Iris provides seamless support for fine-grained concurrency, which was beyond the reach of prior type systems and program logics for non-interference.

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

↑