本文已被:浏览 1662次 下载 2445次
Received:April 01, 2014 Revised:April 25, 2014
Received:April 01, 2014 Revised:April 25, 2014
中文摘要: 分析了Linux内核模块特点, 针对内核模块中二进制指令执行时带来的访存错误, 设计了一种针对内核模块的静态检测方法. 通过模拟内核模块中指令的执行, 并比较访存指令请求与相关内存区域信息, 静态检测方法目标是找出代码对内存的非法访问, 并对可疑的访存行为发出警告. 针对ARM处理器平台, 给出了静态检测方法的具体实现, 并对内核模块中的访存错误就行了检测验证. 实验表明, 静态检测方法能够有效找出包括地址越界访问、读未初始化内存、访问已释放内存等访存错误, 本文的静态检测方法达到了预期的检测效果.
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.
文章编号: 中图分类号: 文献标志码:
基金项目:
引用文本:
纪程,陈香兰,李曦.针对内核模块访存错误的内存检测方法.计算机系统应用,2014,23(12):142-148
JI Cheng,CHEN Xiang-Lan,LI Xi.Memory Detecting Method for Access Errors Inside Kernel Modules.COMPUTER SYSTEMS APPLICATIONS,2014,23(12):142-148
纪程,陈香兰,李曦.针对内核模块访存错误的内存检测方法.计算机系统应用,2014,23(12):142-148
JI Cheng,CHEN Xiang-Lan,LI Xi.Memory Detecting Method for Access Errors Inside Kernel Modules.COMPUTER SYSTEMS APPLICATIONS,2014,23(12):142-148