A Pointer Logic for Safety Verification of Pointer Programs
- Author
- HuaBaoJian
- Advisor
- ChenYiYun
- School
- University of Science and Technology of China
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Doctoral dissertation
- Year
- 2008
- Downloads
- 141
- Citations
- 0
Abstract
Nowadays, information technologies play more and more important roles in all aspects of our world: industries, governments, bussiness, and schools. Once a node in this network collapses, an expensice catastrophe would happen. As a result, the requirement for software safety and security becomes more and more urgent. To moderate this disparity, developing high-assurance software based on formal methods is an essential approach. Among various formal methods, language-based approach to software security has attracted widespread attention in the past decade. These approaches help reduce the Trusted Computing Base of software systems by starting from the base of software, that is, programming languages and compilers.One promising approach for high secure software development in the future is the software property proving-based framework. In this framework, programmers design safety policies and decribe them as software specifications, which are fed to the compilers along with normal program code. In order to prove these programs satisfy these specifications, the compiler generates verification conditions, which are proved automatically or interatively by the programmers. A compiler translates these program code, along with those verification conditions and proofs, and such kind of compilers are called certifying compiler. At the assembly level, an independent proof checker checks the object code to ensure it satisfy its specifications. The key benifit of this framework is that it offers source-level proof methods, instead of at assembly-level, which makes the process of program development more effecient. Meanwhile, making use of a certifing compiler greatly reduces the trusted computing base by removing the compier and prover from the TCB.As an integral part of the above framework, this thesis investigates pointer logic and its application to source code proving. This thesis designs PointerC, a C-like imperative language which retains C’s explicit memory management facilities. The primary design motivation for PointerC is our goal to study more expressive safetye polies beyond type safety such as memory safety. And this thesis makes use of a static discipline combining type system and pointer logic system.This thesis proposes a novel program logic, i.e., the pointer logic. The primary goal for the design of pointer logic is: on on hand, traditional type system are weak and could not check the value-related safety obligations; on the other hand, Hoare logic can not handle pointer operations directly. The pointer logic extends traditional Hoare logic with new predicates and operations, and presents new deduction rules. The pointer logic has been implemented in our prototype certifying compiler and has been employed to prove some nontrivial pointer programs. This thesis proves pointer logic soundness with respect to operational semantics.This thesis investigates the application of the pointer logic to a small object-oriented language. To be specific, this thesis designs a small object-oriented language Cool, presents its syntax, static and dynamic semantics. Comparing with the pointer logic for PointerC, the pointer logic for Cool can also serve as a static garbage detection tool, which is capable to detect garbages in two ways: stack-allocation and static detection. Stack-allocation reduces the existence of garbage by allocating objects on stacks, instead of in heaps. And static garbage could detect some static garbages at compile time.The work presented in this thesis is the first step to the investigation of property proving-based software safety research. And this work provides a method to the safety verifications of larger and more practical saftware systems.
Table of contents
Summary 5-7
Abstract 7-12
Chapter 1 Introduction 12-27
1.1 Background 12-13
1.2 software-based security language theory studies 13-23
1.2.1 Type System 14-18
1.2.2 Hoare logic and program verification 18-22
1.2.3 Type System and method of combining logic systems 22-23
1.3 problems and development direction 23-24
1.4 This article outlines 24-27
1.4.1 contents and main contribution 24-26
1.4.2 chapters arranged 26-27
Chapter 2, based on the nature of the program proved highly secure software design framework 27-34
2.1 -based software program designed to prove the nature of the framework 27-28
2.2 source language design and the nature of proof 28-29
2.3 certifying compiler and proof translation 29-30
2.4 target language level verification framework 30-33
2.5 of this chapter subsections 33-34
Chapter 3, the source language PointerC 34-55
3.1 syntax 34-36
3.2 operational semantics 36-45
3.2.1 abstract machine model 37-38
3.2.2 Operation semantic rules 38-45
3.3 type system 45-50
3.3.1 stereotypes rules 45-50
3.3.2 Vice condition 50
3.4 security theorem and its proof 50-53
3.5 Summary 53-55
3.5.1 related work 53-54
3.5.2 Summary 54-55
Chapter 4 pointer logic 55-74
4.1 Introduction 55-57
4.2 assertion language 57-58
4.3 inference rules 58-66
4.3.1 basic operations and predicates 58-61
4.3.2 pointer inference rules of logic 61-66
4.4 proves instance 66-68
4.5 pointer logic implemented in certifying compiler of 68-69
4.6 Reliability prove 69-72
4.7 of this chapter subsections 72-74
4.7.1 and related work comparing 72-73
4.7.2 subsections 73-74
Chapter 5 pointer logic applied to the object-oriented language 74-100
5.1 Cool: Java is a command set formula 74-84
5.2 pointer logic 84-91
5.2.1 assertion language 84-86
5.2.2 Design motivation 86
5.2.3 axioms and inference rules 86-91
5.3 pointer logic for static garbage collection 91-96
5.3.1 stack allocation 92-94
5.3.2 Static garbage judgment 94-96
5.4 design and implementation of source-level pointer logic verification system 96-97
5.5 of this chapter subsections 97-100
5.5.1 Comparison with related work 97-99
5.5.2 This chapter sections 99-100
Chapter 6 Conclusion 100-104
6.1 Thesis summary 100-102
6.2 further work 102-104
References 104-110
Thanks 110-112
research papers published during the read and made ?? 112-113
Related dissertations
- Certifying Compilation in an Infrastructure for Developing Trustable Software
- Certifying the Safety of Assembly Pointer Programs
- A program verification tool design and implementation
- To support the research of use case modeling formal evolution
- An Integration of Several Data Flow Analysis Techniques for Program Verification
- A Modular Approach on Building Certified Software System
- Research on Testing and Evaluating Theory of Reliability and Safety for High Dependability Software
- Certifying Concurrent Porgrams Using Transactional Memory
- Constraint Based Prolog Semantics and Its Applications in the Testing, Analysis and Verification of Prolog Programs
- Study on Program Verification Based on Symbolic Computation
- Research on Relationship and Transition between the Software Reliability and Safety
- The Research of Partitioned Symbolic Execution Model and Its Environment Interaction Problem
- Pointer Logic’s Extensions and Applications
- Program Verification Based on Computer Algebra
- Automated Loop Invariant Generation for Program Verification
- Study on Program Verification
- Concurrent Object-oriented Program Slicing and Its Application in Program Verification
- Research on Methods of Security Assurance Based on Computer-Assisted Proof
- Software Safety Assurance Framework and Safety Technology Application
- Analysis and Check of Type Conversion and Control Flow Safety Vulnerability