Pointer Logic’s Extensions and Applications
- Author
- WangZhiFang
- Advisor
- ChenYiYun
- School
- University of Science and Technology of China
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Doctoral dissertation
- Year
- 2009
- Downloads
- 118
- Citations
- 0
- Software Security
- The procedural nature of certificate
- Storage memory model
- Pointer logic
- verification framework
Abstract
Nowadays,software technique is widely used.However,the architecture of software is more and more complicated as its size grows,and it is more and more difficult to guarantee its safety.In the programming language such as C,C++ or Java,pointers or references are commonly used to achieve high performance. But the flexibility of pointers is apt to cause errors such as null pointer reference, dangling pointer deference and memory leaks which are difficult to find.Once these errors occur,the system would crash.And more seriously,they can be taken advantage of by hackers.On the other hand,the reason that pointer errors are hard to detect is because distinct pointers might be aliased to each other,i.e., two different names could refer to the same memory address.Modifying the value of one pointer could affect the value of the other,which exhibits great difficulties for debugging and reasoning.As a result,the research on the safety of pointer programs plays an important role in software security.As the research of pointer program safety is challenging,while software test can not guarantee its soundness,pointer program verification becomes a hot research topic.However,the current verification methods bear lots of defects-either they have to introduce stack or heap which is not the syntax of the programming language to capture the programming running state,or they generate complicated verification conditions which can not be automatedly proved.The introduction of stack and heap needs to know the exact memory address,but isomorphic heaps are indistinguishable.Storeless memory models not only get over these problems, but also lead to automated verification because of its nice properties.In essence pointer logic is based on the method of Storeless memory models,but still lacks the description of an abstract storeless model,which leads to the algorithmic style description of the inference rules,hindering the exploration of pointer logic essence.Furthermore,pointer logic lack support for pointer arithmetic,and the implementation PLCC(V1) generates verification conditions which has to be proved in interactive theorem prove in COQ.Based on the above consideration,this thesis proposes a storeless model and probes into its properties such as right regularity,prefix closure etc..Meanwhile, the thesis focuses on the well-formedness of pointer logic’s assertion language, and rephrases pointer logie’s inference rules.In order to verify widely used data structures,the thesis proposes frame rule in Pointer Logic and the rule for func- tion call.Furthermore,the source language and assertion language are extended to support pointer arithmetic,while Pointer Logic rules are extended to ensure the safety of pointer arithmetic.Formerly in Pointer Logic the sets are unnamed which can not handle programs containing function calls under some circumstances. Thus this thesis proposes Pointer Logic with labels to verify programs with arbitrary function call.As to the implementation,automatic deduction algorithms for Pointer Logic rules are designed and the unfolding mechanism are proposed to deal with the user-defined predicates.At last,the work in thesis is implemented in PLCC(V2).The main contributions and characteristics of this dissertation are:●It presents a more effective storeless memory model which not only enjoys the nice properties of existing storeless models,but also overcomes their shortcomings such as redundancy and high costs.●It perfects Pointer Logic by rephrasing Pointer Logic rules on the abstract model.Because the model is simple and efficient,the thesis can discover a flaw in former Pointer Logic rules:the no_leak function would reject correct programs in some circumstances,while in this thesis the rule is corrected.●It extends Pointer Logic.Compared to former Pointer Logic,the thesis extends pointer logic in local reasoning,pointer arithmetic on dynamic arrays and pointer set with labels to verify programs including arbitrary function call.As a result,Pointer Logic can guarantee more programs’ safety properties.●This thesis designs efficient algorithms and proposes unfolding mechanism to automate Pointer Logic rule deduction,and all are implemented in an automated verification tool PLCC(V2).Compared to PLCC(V1) which requires the programmer to prove the verification condition it generates,this work implements a newer version to automatedly reason about the properties of pointer programs.Moreover,PLCC(V2) can verify the operations on widely used data structures such as singly-linked lists,doubly-linked circular lists and trees etc.,including the famous Schorr-Waite tree traversal algorithm which is always considered as the milestone for pointer formalizations.
Table of contents
Abstract 5-7
Abstract 7-13
Chapter 1 Introduction 13-31
1.1 pointer program verification research 14-26
1.1.1 Hoare logic 14-17
1.1.2 Separation logic 17-21
1.1.3 storage semantics 21-24
1.1.4 pointer logic 24-26
1.2 the existence and direction of development 26-27
1.3 This article provides an overview of 27-31
1.3.1 content and the main contribution 27-30
1.3.2 chapters 30-31
Chapter 2 pointer logic 31-57
2.1 MiniPointerC 31-35
2.1.1 syntax 31-33
2.1.2 operational semantics 33-35
2.2 storage abstraction model 35-43
2.2.1 access paths and aliases 35-39
2.2.2 memory state 39-43
2.3 pointer logic 43-54
2.3.1 assertion language 43-46
2.3.2 pointer logic rules 46-53
2.3.3 to ensure the basic safety properties 53-54
2.4 Summary 54-57
2.4.1 work 54-55
2.4.2 Summary 55-57
Chapter 3 pointer logical extension 57-75
3.1 e-PointerC language 57-59
3.2 assertion language extensions 59-60
3.3 Modular reasoning 60-65
3.3.1 object reachability 61-62
3.3.2 Inference Rules 62-63
3.3.3 Case Study 63-65
3.4 support pointer arithmetic, pointer logic 65-70
3.4.1 Inference Rules 65-69
3.4.2 Case Study 69-70
3.5 tagged pointer logic 70-74
3.5.1 Inference Rules 71-72
3.5.2 Case Study 72-74
3.6 Summary 74-75
Implementation and Application of Chapter 4
pointer logic verification system 75-95
4.1 pointer logic rules to achieve 75-80
4.1.1 core algorithm 76-80
4.2 Expand mechanism 80-84
4.2.1 Expand the inductive predicate 81-83
4.2.2 Expand describe the predicate 83-84
4.3 Schorr-Waite tree traversal algorithm for automatic verification 84-90
4.3.1 algorithm source code 85-87
4.3.2 specification 87-89
4.3.3 verify 89-90
4.4 implementation and experimental assessment 90-92
4.5 Summary 92-95
4.5.1 work 92-93
4.5.2 Summary 93-95
Chapter 5 Conclusion 95-99
5.1 The paper summary of the work 95-97
5.2 further 97-99
References 99-105
thank 105-107
papers published during the reading and research achievements 107-108
Related dissertations
- Certifying the Safety of Assembly Pointer Programs
- Research on the Attack and Defense Techniques of Code Reuse
- Research on Software Vulnerability Analysis Oriented Parallel Symbolic Execution
- Protection of Non-Control-Data Based on LLVM Framework
- Study on Program Diversity for Software Security
- Research and implementation of software encryption key protection
- Certifying Compilation in an Infrastructure for Developing Trustable Software
- A Pointer Logic for Safety Verification of Pointer Programs
- AOP Technology and Its Applications in Software Security
- Research on Process Model of Testing and Evaluation for Safety-critical Software
- The Design and Implementation of an Automated Theorem Prover Used for Pointer Logic
- Improving the Dependability of Cloud Computing Systems
- Research on Methods of Threat Model Driven Software Security Evaluation and Testing
- Software security research and development of key technologies to achieve
- The Design and Implementation of a Static Analysis System in Source Code
- Research on Balise Telegram Programming and Management Software
- Bank of intelligence back to the single - management software design and development
- The Research on International Standards for Functional Safety
- The Study of the Methods for Detecting Security Vulnerabilities in Computer Softwares
- Aspect-oriented software technology based security framework for research