首页 | 本学科首页   官方微博 | 高级检索  
     

针对内核模块访存错误的内存检测方法
引用本文:纪程,陈香兰,李曦.针对内核模块访存错误的内存检测方法[J].计算机系统应用,2014,23(12):142-148.
作者姓名:纪程  陈香兰  李曦
作者单位:1. 中国科学技术大学计算机科学与技术学院,合肥,230027
2. 中国科学技术大学计算机科学与技术学院,合肥 230027; 中国科学技术大学苏州研究院,苏州 215123
摘    要:分析了Linux 内核模块特点,针对内核模块中二进制指令执行时带来的访存错误,设计了一种针对内核模块的静态检测方法。通过模拟内核模块中指令的执行,并比较访存指令请求与相关内存区域信息,静态检测方法目标是找出代码对内存的非法访问,并对可疑的访存行为发出警告。针对 ARM 处理器平台,给出了静态检测方法的具体实现,并对内核模块中的访存错误就行了检测验证。实验表明,静态检测方法能够有效找出包括地址越界访问、读未初始化内存、访问已释放内存等访存错误,本文的静态检测方法达到了预期的检测效果。

关 键 词:Linux内核模块  内存访问  静态检测  指令模拟
收稿时间:4/1/2014 12:00:00 AM
修稿时间:2014/4/25 0:00:00

Memory Detecting Method for Access Errors Inside Kernel Modules
JI Cheng,CHEN Xiang-Lan and LI Xi.Memory Detecting Method for Access Errors Inside Kernel Modules[J].Computer Systems& Applications,2014,23(12):142-148.
Authors:JI Cheng  CHEN Xiang-Lan and LI Xi
Affiliation:College of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China;College of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China;Suzhou Institute for Advanced Study, University of Science and Technology of China, Suzhou 215123, China;College of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China;Suzhou Institute for Advanced Study, University of Science and Technology of China, Suzhou 215123, China
Abstract:This paper studies the memory access characteristics of Linux kernel module, and then suggests a static approach to detect memory access errors when running the code inside kernel module. Through simulation of instructions inside kernel module and comparison between access request and record of memory region, our suggested method is able to find a variety of memory access errors, such as overflow, accessing arbitrary address, invalid pointer, which are the most common threats. At last, based on ARM Processor platform, we give an implementation of our method for detecting errors induced by kernel module, and the experiment result shows it can efficiently work as we expect.
Keywords:Linux kernel module  memory access  static detection method  instruction simulation
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号