Research on Device Driver Reliability in Operating Systems

Author
MaChao
Advisor
HuShiMin , CaiJiRen
School
Tsinghua University
Major
Computer Science and Technology
Classification
TP316 Operating system
Degree
Doctoral dissertation
Year
2013
Downloads
18
Citations
0

Request the full text

Abstract

With the development of computer technology, hardware devices emerge inlarge numbers, making people’s life more and more convenient and comfortable.Because of the market competition, time spent in developing hardware devicebecomes less and less, which leads to serious vulnerability in device drivers.The vulnerability of device drivers threatens the reliability of the host operatingsystem and unreliable device drivers may cause operating systems abnormalityand failure. Therefore, technique on the reliability of device drivers has beenwidely researched.This thesis discusses some key problems on the reliability of device drivers.The important vulnerability includes problems of concurrency errors, kernelfunction usage rule violation and device protocol violations which are caused byhardware device failures. The main contributions include:(1) A novel device driver architecture named SerialDriver which is basedon invocation serialization. Serialization is an effective technique to avoidconcurrency errors of device drivers. Compared with other architectures,SerialDriver does not need to rewrite device drivers and is able to achieve thegoal of high performance and low overhead. Besides, SerialDriver can be widelyused in most operating systems.(2) The KFUR model which is used to check kernel function usage ruleviolation in device drivers. There are a large number of situations that kernelfunction usage rules are violated in device drivers. The KFUR model describeskernel function usage rules and provides the condition in which usage rules areviolated. The system based on the KFUR model can check whether kernelfunction usage rules are violated. When some rule is violated, the system canprevent the operating system from failure or crash.(3) A tainted variables tracking model named Smelter, which is based onthe theory of the directed graph. Programmers do not consider about toleratinghardware device failures in drivers and thus analyzing device drivers to insertfault-tolerant codes at the compiler time is a good method to improve thereliability. The Smelter model supports cross procedure and complex data structure analysis to improve the precise. Therefore the Smelter model is ofgreat benefit to hardware device failure tolerance.(4) A device driver recovery approach named ISD which is based on driverbackup. Because methods in compiler time can not solve the issue of hardwaredevice failure tolerance in the runtime thoroughlyk, ISD uses the backuptechnique to improve the reliability. ISD adopts the backup driver to record dataand states of the running driver when the hardware device is correct. When thehardware device fails and the running driver works incorrectly, ISD replaces thebroken driver with the backup driver to keep the operating system in the correctstate.

Table of contents

Abstract 3-4 Abstract 4-9 Chapter 1 Introduction 9-18 1.1 Background 9-11 reliability issues 1.2 device driver 11-13 1.2.1 concurrency errors 11-12 1.2.2 interaction protocol violation 12- 13 1.3 This work and innovation 13-16 1.3.1 device driver architecture based on a request serialization 14-15 1.3.2 kernel function use rules detection model 15 1.3.3 variables based on a directed graph tracking pollution model 15-16 1.3.4 backup drive error-recovery method based 16 1.4 thesis structure 16-18 Chapter 2 related work 18-34 2.1 concurrency error Solution 18-20 2.2 interaction protocol violation solution 20-29 2.2.1 static detection methods 20-21 2.2.2 isolation method 21-29 2.3 device driver written reliable method 29-32 2.3.1 devices based on formal language specification 29-31 2.3.2 type-safe language -based device drivers 31-32 2.4 Chapter Summary 32-34 Chapter 3 based device driver architecture request serialization 34-47 3.1 request serialization thought 35 3.2 SerialDriver architecture design 35-38 3.2.1 architecture composed 36-37 3.2.2 running processes 37 3.2.3 design discussion 37-38 3.3 SerialDriver architecture for 38-41 3.3.1 message queue 38 -39 3.3.2 request processing threads 39-40 3.3.3 interface Adapter 40-41 3.4 experimental evaluation 41-46 3.4.1 reliability evaluation 41-42 3.4.2 performance Evaluation 42-46 3.5 Summary 46-47 Chapter 4 kernel function uses rules to detect model 47-63 4.1 KFUR model 48-50 4.2 KFUR model system design 50-51 4.3 KFUR model system to achieve 51-54 4.3.1 kernel function uses the rule base 51-53 4.3.2 detectable marker 53 4.3 .3 dynamic detector 53-54 4.4 experimental evaluation 54-62 4.4.1 reliability evaluation 54-56 4.4.2 performance evaluation 56-62 4.5 Chapter Summary 62-63 Chapter 5, based on a directed graph tracking pollution variable model 63-76 5.1 Smelter model 64-68 5.2 Smelter pollution variable tracking method 68-69 5.3 Smelter pollution variable tracking method analysis 69-72 5.3 .1 function parameters pollution attribute propagation 69-71 5.3.2 structures and arrays pollution attribute propagation 71-72 5.4 experimental evaluation 72-75 5.5 Chapter Summary 75-76 Chapter 6 error Recovery drive-based backup method 76-90 6.1 ISD design 76-80 6.1.1 control Module 78-79 6.1.2 virtual device 79 6.1.3 backup drive 79-80 6.2 ISD achieve 80-83 6.2.1 control Module 81-82 6.2.2 virtual device 82 6.2.3 backup drive 82-83 6.3 reliability evaluation 83-85 6.3.1 evaluation environment and methods 83-84 6.3.2 evaluation results 84-85 6.4 performance evaluation 85-88 6.4.1 running performance evaluation results 85-86 6.4.2 inject error performance evaluation results 86-88 6.5 Chapter Summary 88-90 Chapter 7 summary and Outlook 90-93 7.1 summarizes 90-91 7.2 the next step 91-93 references 93-101 Thanks 101-102 resume, published during the school the academic and research 102-103

Related dissertations

  1. Research on Qualitative Characteristics of Useful Financial Information Based on Fair Value
    ZhouWei ·Hunan University ·2013 ·Master's thesis
  2. Research of Supply Chain Coordination Model from the Perspective of Customer Satisfaction
    HuWei ·Anhui University of Engineering ·2013 ·Master's thesis
  3. Reliability Based Maintenance Management Study of AB Petrochemical Co
    RenZhiYong ·Shandong University ·2013 ·Master's thesis
  4. Uncertain reliability of remanufacturing logistics network construction research environment based on
    CaoJinLong ·Wuyi University ·2013 ·Master's thesis
  5. Reliability Research and Analysis of the DGA Online Monitoring System
    GuoTao ·Central South University ·2013 ·Master's thesis
  6. Design of High Reliability BLDCM Drive Control System for Space End Effector
  7. Design of Distributed Concurrent State-aware System for the Quadruped Bionic Robot
    LiuMingLiang ·Central South University ·2013 ·Master's thesis
  8. The Analysis and Improvement of LEACH Protocol Based on Trust and Energy
    WangWeiLong ·Northwest Normal University ·2013 ·Master's thesis
  9. The Research and Implementation of Embedded TCP/IP Stack Based on F28M35HX
  10. Research on the Key Issues of Structured P2P Network
  11. Research on Efficient and Reliable Virtual Network Mapping Algorithms
    DiHao ·University of Electronic Science and Technology ·2013 ·Doctoral dissertation
  12. Research of Text Representation Based on VSM Model and Soft Sensor Based on Bayesian Networks
  13. A Design and Implementation of Operation and Maintenance System on Campus Network
  14. Design and Implementation of Books Retrieval System Based on Barcode Recognition Technology
  15. Research on Key Technologies of Service-oriented Information System
    PeiShuJun ·Harbin University of Science and Technology ·2012 ·Doctoral dissertation
  16. Computing Method and Promotion Theory of Architecture Software Reliability Based on Model Driven Architecture
    HuChangHong ·Jilin University ·2013 ·Doctoral dissertation
  17. Design of a Highly Reliable Financial Transaction Matching System with High Performance
    SunChangZuo ·Zhejiang University ·2014 ·Master's thesis
  18. Reliability Computing of Concurrent Software Based on Program Invariants
    ZhouHui ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  19. The Design and Implementation of Mechanism for Data Availability Management in Hybrid Backup System
  20. Research on Failure Rate Estimation and Multi-objective Optimization Methods for Complex Systems