跳到主要导航 跳到搜索 跳到主要内容

PF-miner: A new paired functions mining method for android kernel in error paths

  • Huqiu Liu*
  • , Yuping Wang
  • , Lingbo Jiang
  • , Shimin Hu
  • *此作品的通讯作者
  • Tsinghua University

科研成果: 期刊稿件 › 会议文章 › 同行评审

摘要

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.

源语言英语
期刊论文编号6899198
页(从-至)33-42
页数10
期刊Proceedings - IEEE Computer Society's International Computer Software and Applications Conference
DOI
出版状态已出版 - 15 9月 2014
已对外发布是
活动38th Annual IEEE Computer Software and Applications Conference, COMPSAC 2014 - Vasteras, 瑞典
期限: 21 7月 2014 → 25 7月 2014

学术指纹

探究 'PF-miner: A new paired functions mining method for android kernel in error paths' 的科研主题。它们共同构成独一无二的学术指纹。

引用此