Proof-Carrying Garbage Collection

Author
LinChunXiao
Advisor
ChenYiYun
School
University of Science and Technology of China
Major
Computer Software and Theory
Classification
TP312 Programming language ALGOL
Degree
Doctoral dissertation
Year
2008
Downloads
81
Citations
1

Request the full text

Abstract

The programming language Java and C # security program can completely avoid a number of the often security vulnerabilities in the programs written in traditional programming languages, so as to improve the reliability of the software. However, many security features such security language depends on its operating environment, especially the correctness and security of the garbage collection mechanism. Unfortunately, garbage collection algorithms are usually difficult to design and implement correctly. At the same time, the garbage collector and the interaction of the user program are often quite complex clear error. Therefore, in order to improve the safety and reliability of the programming languages ??use garbage collection mechanism, rigorous research will be needed on the safety and correctness of the garbage collection process. This work uses the form of assembly language level program verification framework based on Hoare logic of security and correctness of the garbage collector, the garbage collector with a variety of user program, in particular the security typed assembly language interaction were The strict formal verification. This work is based on the proof-carrying code technology, all the validation in the computer-aided theorem proving tools COQ computer check proof. In this way, the garbage collector and the user program can be constructed for a complete proof carry security package, to be published through the Internet and other channels. The first part of this article is verified the two typical garbage collector assembly language. The use of the work style of separation logic the code specification language gives the stop marker - sweep garbage collector, and security specifications based on the initial snapshot Yuasa incremental garbage collector, and Hoare-style program logic and reasoning methods proved garbage collector meet its safety specification. The second part of the work from the deficiencies to exist independently verified garbage collector, proposed and implemented a common method to verify the interaction of the garbage collector and user program. The core idea is to use technology similar to abstract data types abstract garbage collector interface and its validation of the user program, makes the verification of the user programs do not need to care about the specific implementation of the garbage collector, and to facilitate the verification of the user program and the garbage collector verification link. The last part of the work study type the safety garbage collection process. Based typed assembly language to provide verification of the garbage collection process, which is based on an open assembly language level program logic, and uses the main idea of ??the second part of the work, the details of the garbage collector abstracted away from typed assembly language type system to simplify the design of a typed assembly language. In the same time, this paper also discusses the realization of these work in computer-aided theorem proving tools COQ, as well as some methods and techniques that improve the proof of the efficiency of the design and development of these implementations. The main contribution of this work and innovation, including: 1) a carry proof procedure validation framework based on the assembly language level, for the first time successfully verified assembly level implementation code for a variety of garbage collection algorithms, and they and the interaction of the user program; 2) a general method based on abstract data types of technology, the garbage collector, the user program, and their interaction concise and rigorous verification; 3) for the first time successfully resolved the minimum Trusted Computing Base typed assembly language provides type-safe garbage collection process in the premise of the hot issues; 4) based on the separation of logic technology, successfully for the first time from a single memory unit constructed mark - cleaning the garbage collector specific memory specification. These studies are a useful attempt to reduce security program design language Trusted Computing Base - use the form of program verification technology to carry proof based on garbage collection process can be excluded from the security programming language Trusted Computing Base. At the same time, they are also for the assembly language level program in the form of validation, accumulation of important theoretical and practical experience in the application of the technology to carry proof of code. With the progress of such technologies, more trusted software can be verified to be excluded from the system's trusted computing base.

Table of contents

Abstract 5-7 Abstract 7-12 Chapter 1 Introduction 12-30 1.1 garbage collection technology 13-18 1.1.1 Basic concept 13-14 1.1.2 classic garbage collection algorithm 14-15 1.1.3 user program and the garbage collector interacts 15-17 1.1.4 accurate and conservative garbage collection 17 1.1.5 garbage collection security 17-18 1.2 form of program verification and proof-carrying code 18-23 1.2.1 classic Hoare logic 18-19 1.2.2 carry proof code 19-21 1.2.3 based proof-carrying code 21-23 1.3 research 23-27 1.3.1 formality procedures to verify 23-24 1.3.2 garbage collection to verify 24-26 1.3.3 Type safe garbage collection 26-27 1.4 This article Overview 27-30 1.4.1 main contribution, technical features and innovations 27-29 1.4.2 chapters arranged 29-30 Chapter 2 validation framework 30-49 2.1 yuan logic 30-31 2.2 abstract machine model 31-36 2.2.1 discuss 35-36 2.3 open assembly language programming inference system 36-41 2.3.1 inference rules 38-40 2.3.2 reliability and correctness 40-41 2.4 modular verify the stack control flow of the program's reasoning 41-46 2.4.1 verification condition generator 45-46 the the 2.5 separation logic style code specification language 46-49 Chapter 3 garbage collector verification 49-84 3.1 basic assumptions and related definitions 49-51 3.2 stop-mark - cleaning the garbage collector 51-67 3.2.1 Principle and algorithm 51-54 3.2.2 heap data structure defined 54-56 3.2.3 garbage collector specification 56-58 3.2.4 tectonic prove 58-67 3.3 Yuasa incremental garbage collector 67-84 3.3.1 interactive garbage collection 67-68 3.3.2 Principle and algorithm 68-71 3.3.3 Weak the three color abstract invariant 71-75 3.3.4 garbage collector specification 75-78 3.3.5 tectonic prove 78-84 The verify generic framework of the garbage collection process 84-97 4.1 based ADT's garbage collector interface specification 86-94 4.1.1 abstract store state specific storage status 87-89 4.1.2 abstract norms and concrete specification 89-94 4.2 user program based on an abstract interface specification validation 94-95 4.3 garbage collector based on an abstract interface specification validation 95-97 Chapter 5 typed assembly language construct validation of the garbage collection process 97-115 5.1 Overview 97-99 5.2 validation garbage collector 99-101 5.3 based typed assembly language 101-109 5.3.1 Type Definition 102-103 5.3.2 setting rules 103-106 5.3.3 embedded OCAP_ (LITE) framework 106-109 the the 5.4 proof garbage collector interface specification consistency 109-112 5.5 link instance 112-115 Chapter 6 validation COQ 115-129 6.1 computer-aided theorem proving tools COQ 115-116 6.2 validation framework 116-122 6.3 validation garbage collector 122 6.4 verify the garbage collector and the user program to interact 122-125 6.5 typed assembly language and validation of garbage collection 125-127 6.6 discussion 127-129 Chapter 7 Conclusion 129-132 7.1 article summarizes 129-130 7.2 follow-up study of Looking 130-132 the References 132-141 Acknowledgements 141-142 the papers published during reading the research achievements 142

Related dissertations

  1. Asymmetric Dual-Space Collectors
  2. Design and Implemention of Software Intermediate Layer
  3. The R/W Manner Research and Optimal Design of the Shingled-recording Hard Drivers
  4. Key Technique Research on Embedded System Virtual Machine
    WuZhiJun ·Ningbo University ·2012 ·Master's thesis
  5. Research on Some Energy-Aware Techniques of Flash Memory Storage System for Embedded Systems
    DuZuoHua ·Zhejiang University ·2007 ·Doctoral dissertation
  6. Research of the Secure Computing Based on Java USIM Card
  7. The Adaptive Optimizations in Java Virtual Machine
    ZouQiong ·University of Science and Technology of China ·2008 ·Doctoral dissertation
  8. Research on the Key Technologies of Digital Television System
    HuBo ·Huazhong University of Science and Technology ·2007 ·Doctoral dissertation
  9. Research on Program Execution Model Based on Runtime
  10. Research on Storage Management for Flash Memory
  11. Vehicle monitoring system performance improvement of key technology research
  12. The Research and Implementation of a Memory Leak Detective Technology
    WangZuo ·Beijing Jiaotong University ·2008 ·Master's thesis
  13. Study on Nand Flash File System of the On-board Data Recorder
    MengJun ·Beijing Jiaotong University ·2008 ·Master's thesis
  14. Research and Realization of the Implementation of Mass Storage Device in Embedded System
    LuoYueZuo ·East China Normal University ·2004 ·Master's thesis
  15. Collaborative graphics editing systems in the distributed environment
    LiChunPing ·Nanjing Normal University ·2004 ·Master's thesis
  16. Design and implementation of real-time systems based on virtual machine platforms
    CheFei ·Zhejiang University ·2004 ·Master's thesis
  17. Research and Practice of JAVA Virtual Machine Technology
    ZhengYanLing ·Southwest Jiaotong University ·2007 ·Master's thesis
  18. Java virtual machine memory management strategy
  19. Design and Implementation of Mobile Phone Navigation System
    YangLingZhi ·Shandong University ·2007 ·Master's thesis
  20. Porting & Tuning KVM in Power-Constrained Hand-Held Device
    LiangHongZuo ·Shanghai Jiaotong University ·2007 ·Master's thesis