首页> 外文会议>IEEE Annual International Computers, Software and Applications Conference >PF-Miner: A New Paired Functions Mining Method for Android Kernel in Error Paths
【24h】

PF-Miner: A New Paired Functions Mining Method for Android Kernel in Error Paths

机译:PF-MINER:错误路径中的Android内核的新配对功能挖掘方法

获取原文

摘要

Drivers are significant components of the operating systems(OSs), and they run in kernel mode. Generally, drivers have many errors to handle, and the functions called in the normal execution paths and error handling paths are in pairs, which are named as paired functions. However, some developers do not handle the errors completely as they forget about or are unaware of releasing the acquired resources, thus memory leaks and other potential problems can be easily introduced. Therefore, it is highly valuable to automatically extract paired functions for these problems and detect violations for the programmers. This paper proposes an efficient tool named PF-Miner, which can automatically extract paired functions and detect violations between normal execution paths and error handling paths from the source code of C program with the data mining and statistical methods. We have evaluated PF-Miner on different versions of Android kernel 2.6.39 and 3.10.0, and 81 bugs reported by PF-Miner in 2.6.39 have been fixed before the latest version 3.10.0. PF-Miner only needs about 150 seconds to analyze the source code of 3.10.0, and 983 violations have been detected from 546 paired functions that have been extracted. We have reported the top 51 violations as potential bugs to the developers, and 15 bugs have been confirmed.
机译:驱动程序是操作系统(OSS)的重要组成部分,它们以内核模式运行。通常,驱动程序具有许多错误的误差,并且在正常执行路径和错误处理路径中调用的函数成对,其被命名为配对函数。但是,一些开发人员不会完全处理错误,因为它们忘记或不知道释放所获得的资源,因此可以轻易引入内存泄漏和其他潜在问题。因此,自动提取用于这些问题的配对功能并检测程序员的违规是非常有价值的。本文提出了一个名为PF-Miner的有效工具,它可以自动提取配对函数并检测来自C程序源代码的正常执行路径和错误处理路径与数据挖掘和统计方法。我们对不同版本的Android内核2.6.39和3.10.0进行了评估的PF-Miner,PF-Miner报告的81个错误在最新版本3.10.0之前已修复。 PF-Miner仅需要大约150秒才能分析3.10.0的源代码,并且已从已提取的546个配对功能中检测到983个违规行为。我们报告了前51名违规是开发人员的潜在错误,并确认了15个错误。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号