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

Automated and reliable resource release in device drivers based on dynamic analysis

  • Jia Ju Bai
  • , Yu Ping Wang*
  • , Shi Min Hu
  • *此作品的通讯作者
  • Tsinghua University

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

摘要

In a modern operating system, device drivers acquire system resources to work. The acquired resources should be explicitly released by the drivers, because the operating system never reclaims them. Moreover, improper resource release can cause system crashes or hangs. Thus resource release is very important to driver reliability. However, according to our study on Linux driver mailing lists, many applied patches involve the modifications of resource release. Thus current resource management in drivers is not reliable enough. In this paper, we propose a novel approach named AutoRR, which can automatically and reliably release resources based on dynamic analysis. To identify resource handling operations, we use the dynamic specification-mining technique to mine resource acquiring and releasing functions. During execution, we maintain a resource-state list by intercepting the mined functions. If the driver fails to release acquired resources, AutoRR will report bugs and call corresponding releasing functions to safely release the resources. Dynamic analyses of resource dependency, allocation hierarchy, error handling form and releasing time are performed to avoid introducing new bugs when releasing resources. The evaluation on 12 Linux drivers shows that 40 detected bugs are all successfully and safely tolerated, and the overhead is only 7.84%.

源语言英语
页(从-至)463-479
页数17
期刊Journal of Systems and Software
137
DOI
出版状态已出版 - 3月 2018
已对外发布

指纹

探究 'Automated and reliable resource release in device drivers based on dynamic analysis' 的科研主题。它们共同构成独一无二的指纹。

引用此