Pairminer: Mining for paired functions in Kernel extensions

Hu Qiu Liu, Jia Ju Bai, Yu Ping Wang, Zhe Bian, Shi Min Hu

科研成果: 书/报告/会议事项章节会议稿件同行评审

5 引用 (Scopus)
Plum Print visual indicator of research metrics
  • Citations
    • Citation Indexes: 5
  • Captures
    • Readers: 4
see details

摘要

Drivers use kernel extension functions to manage devices, and there are often many rules on how they should be used. Among the rules, utilization of paired functions, which means that the functions must be called in pairs between two different functions, is extremely complex and important. However, such pairing rules are not well documented, and these rules can be easily violated by programmers when they unconsciously ignore or forget about them. Therefore it is useful to develop a tool to automatically extract paired functions in the kernel source and detect incorrect usages. We put forward a method called PairMiner in this paper. Heuristic and statistical mechanisms are adopted to associate with the special structure of drivers' source code, to find out paired functions between relative operations, and then to detect violations with extracted paired functions. In the experiment evaluation, we have successfully found 1023 paired functions in Linux 3.10.10. The utility of PairMiner was evaluated by analyzing the source code of Linux 2.6.38 and 3.10.10. PairMiner located 265 bugs about paired function violations in 2.6.38 which have been fixed in 3.10.10. We also have identified 1994 paired function violations which have not yet been fixed in 3.10.10. We have reported some violations as potential bugs with emails to the developers, 27 developers have replied the emails and 20 bugs have been confirmed so far, 2 violations are confirmed as false positive.

源语言英语
主期刊名ISPASS 2015 - IEEE International Symposium on Performance Analysis of Systems and Software
出版商Institute of Electrical and Electronics Engineers Inc.
93-101
页数9
ISBN(电子版)9781479919567
DOI
出版状态已出版 - 27 4月 2015
已对外发布
活动2015 15th IEEE International Symposium on Performance Analysis of Systems and Software, ISPASS 2015 - Philidelphia, 美国
期限: 29 3月 201531 3月 2015

出版系列

姓名ISPASS 2015 - IEEE International Symposium on Performance Analysis of Systems and Software

会议

会议2015 15th IEEE International Symposium on Performance Analysis of Systems and Software, ISPASS 2015
国家/地区美国
Philidelphia
时期29/03/1531/03/15

指纹

探究 'Pairminer: Mining for paired functions in Kernel extensions' 的科研主题。它们共同构成独一无二的指纹。

引用此

Liu, H. Q., Bai, J. J., Wang, Y. P., Bian, Z., & Hu, S. M. (2015). Pairminer: Mining for paired functions in Kernel extensions. 在 ISPASS 2015 - IEEE International Symposium on Performance Analysis of Systems and Software (页码 93-101). 文章 7095788 (ISPASS 2015 - IEEE International Symposium on Performance Analysis of Systems and Software). Institute of Electrical and Electronics Engineers Inc.. https://doi.org/10.1109/ISPASS.2015.7095788