Design and Implementation of Safe Device Driver Module Based on Virtual Machine Technology

Author
YinYiMing
Advisor
ZhouLingLing
School
Shanghai Jiaotong University
Major
Circuits and Systems
Classification
TP309 Security and confidentiality
Degree
Master's thesis
Year
2008
Downloads
139
Citations
1

Request the full text

Abstract

Device drivers and other kernel extension module is thought to be caused mainly due to the operating system kernel unstable , but the current mainstream operating system uses a single- core design of these error-prone modules lack the necessary isolation mechanism , causing the errors generated by these modules affects the whole kernel. This combined with the existing research results, proposed the use of virtual machine technology separating the driver and the kernel architecture , such an approach is actually driven by the virtual machine to take over the running domain , limiting the driver 's behavior in a virtual machine , while in the driver errors that occur will also be a virtual machine captured by the virtual machine process it properly , it will not affect the rest of the kernel . Isolated using a virtual machine architecture while offering versatility through cross-platform virtual machine platform support, the same driver can run on many different platforms , which greatly improves the program reusability. The entire system is implemented using the Java Virtual Machine user mode (JVM) separating the driver and the kernel , the Linux system to build a new driver architecture , and the original Linux kernel and some USB driver stack ported to the USB device driver new driver architecture . In the process of achieving full account of the security of the system and the balance of performance , has taken some optimization measures . The main part of the JVM as a system driver, using the object-oriented design methods, improving the driver's scalability and maintainability. Testing of the system architecture focused on security and system performance , test results showed that compared with the original kernel driver , the new driver architecture exhibit greater stability , and in terms of performance , time and data volume requirements for the device is not high , the performance of the driver is very close to the original ; while the need for a large data processing apparatus , the performance of a certain extent. In summary , the subject 's safety based on virtual machine technology driven model can improve the overall system security , and performance of the system in an acceptable range . Issues raised in the use of virtual machine technology while providing fault isolation environment and cross-platform universal driver architecture , innovative .

Table of contents

Abstract 5-6 ABSTRACT 6-14 Chapter 1 Introduction 14-22 1.1 operating system instability 14-15 1.2 operating system to improve stability of 15-19 1.2.1 of the mainstream operating system improvements 16-18 1.2.2 new operating system model 18-19 1.3 virtualization thinking 19-20 1.3.1 virtual machine technology classification and application 19-20 1.3.2 virtual machine isolation technologies drivers 20 1.4 Subsequent chapters Summary 20-22 Chapter 2, the Linux operating system and Java virtual machine is introduced 22-32 2.1 Linux operating system architecture and stability analysis 22-25 2.1.1 Linux kernel structure 22-24 2.1.2 Linux system stability analysis 24-25 2.2 Java virtual machine and its safety 25-30 2.2.1 Java language features 26 2.2.2 Java Virtual Machine structure 26-29 2.2.3 Java Virtual Machine security policy 29-30 2.3 Chapter Summary 30-32 Chapter 3 System design and safety analysis 32-41 3.1 System Architecture 32-34 3.1.1 virtualization design 32-33 3.1.2 virtual machine form 33 3.1.3 Performance Considerations 33 3.1.4 System Design 33-34 3.2 system analysis 34-38 3.2.1 Compatibility with existing systems 35 3.2.2 system operation security 35-36 3.2.3 universal drive platform 36-37 3.2.4 system prototype implementation 37-38 3.3 Comparison with existing research 38-40 3.3.1 Nooks 38-39 3.3.2 new next-generation operating system 39-40 3.4 System Design Summary 40-41 Chapter 4 kernel mode driver module 41-55 4.1 Hardware Abstraction Layer 41-45 4.1.1 Peripheral mainstream hardware platform architecture 41-43 4.1.2 reliable common operating functions 43 4.1.3 concise flexible interface 43-45 4.2 kernel management module 45-50 4.2.1 Communications agency 45-47 4.2.2 Resource Management 47-48 4.2.3 system implementation 48-50 4.3 Security analysis 50-52 4.3.1 security of their code 50 4.3.2 safety monitoring role 50-52 4.4 System Performance Considerations 52-53 4.4.1 interrupt handler 52-53 4.4.2 efficient data transfer 53 4.5 Chapter Summary 53-55 Chapter 5, the communication mechanism between modules 55-71 5.1 interprocess communication with the Java Native Interface 55-60 5.1.1 Java Native Interface 55-57 5.1.2 interprocess communication 57-60 5.2 interprocess communication functions to achieve 60-65 5.2.1 Communication between driver 60-61 5.2.2 driver service interface to the application 61-65 5.3 kernel module interface 65-66 5.3.1 Device Initialization 65 5.3.2 Data Access and Transmission 65-66 5.4 isolation between different drive 66-70 5.4.1 USB devices hot swap 67-68 5.4.2 device driver loading and removable 68-69 5.4.3 drivers under the universal significance of isolation 69-70 5.5 Summary of inter-module communication 70-71 Chapter 6 Java driver design 71-88 6.1 object-oriented driver architecture 71-77 6.1.1 driver with Object Description 71-72 6.1.2 USB driver stack 72-76 6.1.3 based on this architecture driver development 76-77 6.2 multithreaded programming 77-81 6.2.1 of different treatments, different speeds 77-78 6.2.2 multithreaded design 78-79 6.2.3 Effective thread synchronization 79-80 6.2.4 use the thread pool 80-81 6.3 anomalies and errors capture 81-83 6.3.1 Non-fatal exception 82 6.3.2 severely abnormal 82-83 6.4 with C language-driven comparison 83-86 6.4.1 Macro Conversion 83-84 6.4.2 global variable handling 84-85 6.4.3 memory pointer operations 85-86 6.5 Chapter Summary 86-88 Chapter 7 system performance and safety testing 88-98 7.1 test environment, equipment and methods 88-89 7.2 performance test 89-93 7.2.1 interrupt response test 89-90 7.2.2 Test data processing capabilities 90-92 7.2.3 Performance Analysis of test results 92-93 7.3 Security Testing 93-97 7.3.1 bug capture capability 94 7.3.2 program misbehavior processing capabilities 94-97 7.4 Test Results Summary 97-98 Chapter 8 Summary and Outlook 98-101 8.1 operating system, improve the stability 98-99 8.2 cross-platform Universal Driver Architecture 99 8.3 issues to be resolved 99-100 8.4 future direction 100-101 References 101-104 Thanks 104-105 papers published during the study for a degree 105

Related dissertations

  1. Windows CE-based automotive multimedia systems design and driver development
    TaoHuiRong ·Hebei University of Technology ·2007 ·Master's thesis
  2. Research and Implementation on Driver-Hardening Techniques of Carrier Grade Linux
  3. ARM9-based embedded LINUX platform Research and Implementation
    LiShanShou ·Hefei University of Technology ·2007 ·Master's thesis
  4. Linux-based operating system supporting teaching and research
    LiuDaiXu ·Sichuan University ·2006 ·Master's thesis
  5. The Research on Stability of Security Market in China
  6. Research on the Method for Identifying and Evaluating Enterprise Credit Risk Considering Commercial Banking System
    TaoYiBo ·Northeastern University ·2013 ·Master's thesis
  7. The Impact of Capital Adequacy Ratio on the Stability of China’s Commercial Banks
  8. Research on the Influence Led by Shadow Banking to Stability of Commercial Banks in China
  9. Research on Macro Stress Testing of Commercial Bank’s Capital Adequacy Ratio
    JiangQingHai ·Hunan University ·2013 ·Master's thesis
  10. A Empirical Research of Bank Competition and Stability in China
  11. An Empirical Research about Stability of Commercial Banks
    ZhangShuangLing ·Dongbei University of Finance ·2013 ·Master's thesis
  12. Study on the effects of foreign bank entry on Chinese banking and the Countermeasures
    DuanJie ·Capital University of Economics ·2014 ·Master's thesis
  13. Foreign Bank Entry and the Stability of the Host Country Banking System
    WenZuo ·University of Jinan ·2013 ·Master's thesis
  14. Research on the Shadow Banking Products Effect on the Stability of the Financial System
    GongYueXin ·Nankai University ·2013 ·Doctoral dissertation
  15. Fuzhou Mail Processing Center Optimization Research
    ZhuangYouLin ·Xiamen University ·2013 ·Master's thesis
  16. Research on Operations Strategy and Stability of Coalitions in Supply Chain
    XiaoDan ·South China University of Technology ·2013 ·Doctoral dissertation
  17. Research to the Stability of Strategic Alliances
    ZhengJingYuan ·Dongbei University of Finance ·2013 ·Master's thesis
  18. Executives Change, Management Equity and Team Stability
    ZhangLiFang ·Dongbei University of Finance ·2013 ·Master's thesis
  19. Application Study of Lean Production in Electrolux Hangzhou Plant
  20. Research on Price Fluctuation and Stability of Chinese Primary Agricultural Products
    JiangXiaoYan ·Ningbo University ·2013 ·Master's thesis