Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/2039239.2039241acmconferencesArticle/Chapter ViewAbstractPublication PagessospConference Proceedingsconference-collections
research-article

Finding resource-release omission faults in Linux

Published: 23 October 2011 Publication History

Abstract

The management of the releasing of allocated resources is a continual problem in ensuring the robustness of systems code. Missing resource-releasing operations lead to memory leaks and deadlocks. A number of approaches have been proposed to detect such problems, but they often have a high rate of false positives, or focus only on commonly used functions. In this paper we observe that resource-releasing operations are often found in error-handling code, and that the choice of resource-releasing operation may depend on the context in which it is to be used. We propose an approach to finding resource-release omission faults in C code that takes into account these issues. We use our approach to find over 100 faults in the drivers directory of Linux 2.6.34, with a false positive rate of only 16%, well below the 30% that has been found to be acceptable to developers.

References

[1]
A. Bessey, K. Block, B. Chelf, A. Chou, B. Fulton, S. Hallem, C. Henri-Gros, A. Kamsky, S. McPeak, and D. Engler. A few billion lines of code later: using static analysis to find bugs in the real world. Commun. ACM, 53:66--75, Feb. 2010.
[2]
D. R. Engler, D. Y. Chen, A. Chou, and B. Chelf. Bugs as deviant behavior: A general approach to inferring errors in systems code. In Proceedings of the 18th ACM Symposium on Operating System Principles, pages 57--72, Banff, Canada, Oct. 2001.
[3]
T. Kremenek, P. Twohey, G. Back, A. Ng, and D. Engler. From uncertainty to belief: Inferring the specification within. In OSDI, pages 161--176, Nov. 2006.
[4]
J. L. Lawall, J. Brunel, R. R. Hansen, H. Stuart, G. Muller, and N. Palix. WYSIWIB: A declarative approach to finding protocols and bugs in Linux code. In DSN, pages 43--52, Estoril, Portugal, June 2009.
[5]
C. Le Goues and W. Weimer. Specification mining with few false positives. In TACAS, volume 5505 of Lecture Notes in Computer Science, pages 292--306, York, UK, Mar. 2009.
[6]
Z. Li and Y. Zhou. PR-Miner: automatically extracting implicit programming rules and detecting violations in large software code. In ESEC/FSE, pages 306--315, Lisbon, Portugal, Sept. 2005.
[7]
Linux. Linux-next gitweb, 2011. http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=summary.
[8]
Y. Padioleau, J. Lawall, R. R. Hansen, and G. Muller. Documenting and automating collateral evolutions in Linux device drivers. In EuroSys 2008, pages 247--260, Glasgow, Scotland, Mar. 2008.
[9]
M. K. Ramanathan, A. Grama, and S. Jagannathan. Path-sensitive inference of function precedence protocols. In ICSE, pages 240--250, Minneapolis, MN, USA, May 2007.
[10]
W. Weimer and G. C. Necula. Mining temporal specifications for error detection. In TACAS, volume 3440 of Lecture Notes in Computer Science, pages 461--476, Edinburgh, UK, Apr. 2005.

Cited By

View all
  • (2019)Effective error-specification inference via domain-knowledge expansionProceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3338906.3338960(466-476)Online publication date: 12-Aug-2019
  • (2014)A Study of Linux File System EvolutionACM Transactions on Storage10.1145/256001210:1(1-32)Online publication date: 1-Jan-2014
  • (2013)A study of Linux file system evolutionProceedings of the 11th USENIX conference on File and Storage Technologies10.5555/2591272.2591276(31-44)Online publication date: 12-Feb-2013
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
PLOS '11: Proceedings of the 6th Workshop on Programming Languages and Operating Systems
October 2011
45 pages
ISBN:9781450309790
DOI:10.1145/2039239
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 23 October 2011

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Research-article

Conference

SOSP '11
Sponsor:

Acceptance Rates

Overall Acceptance Rate 17 of 32 submissions, 53%

Upcoming Conference

SOSP '25
ACM SIGOPS 31st Symposium on Operating Systems Principles
October 13 - 16, 2025
Seoul , Republic of Korea

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)3
  • Downloads (Last 6 weeks)0
Reflects downloads up to 11 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2019)Effective error-specification inference via domain-knowledge expansionProceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3338906.3338960(466-476)Online publication date: 12-Aug-2019
  • (2014)A Study of Linux File System EvolutionACM Transactions on Storage10.1145/256001210:1(1-32)Online publication date: 1-Jan-2014
  • (2013)A study of Linux file system evolutionProceedings of the 11th USENIX conference on File and Storage Technologies10.5555/2591272.2591276(31-44)Online publication date: 12-Feb-2013
  • (2013)A novel resource related faults detecting approachProceedings of 2013 3rd International Conference on Computer Science and Network Technology10.1109/ICCSNT.2013.6967109(260-264)Online publication date: Oct-2013

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media