Effective Bug Finding in C Programs with Shape and Effect Abstractions
In: $2, 2017, S. 34-54
Online
Zeitungsartikel
Zugriff:
Software projects tend to suffer from conceptually simple resource manipulation bugs, such as accessing a de-allocated memory region, or acquiring a non-reentrant lock twice. Static code scanners are used extensively to remove these bugs from projects like the Linux kernel. Yet, when the manipulation of the resource spans multiple functions, efficiently finding these bugs is a challenge. We present a shape-and-effect inference system for C, that enables efficient and scalable inter-procedural reasoning about resource manipulation. The inference system is used to build a program abstraction: a control-flow graph decorated with alias relationships and observable effects. Bugs are found by model checking this control-flow graph, matching undesirable sequences of operations. We evaluate a prototype implementation of our approach (EBA) and run it on a collection of historical double-lock bugs from the Linux kernel. Our results show that our tool is more effective at finding bugs than similar code-scanning tools. EBA analyzes the drivers/ directory of Linux (nine thousand files) in less than thirty minutes, and uncovers a handful previously unknown double-lock bugs in various drivers.
Titel: |
Effective Bug Finding in C Programs with Shape and Effect Abstractions
|
---|---|
Autor/in / Beteiligte Person: | Abal, Iago ; Brabrand, Claus ; Wasowski, Andrzej |
Link: | |
Zeitschrift: | $2, 2017, S. 34-54 |
Veröffentlichung: | Springer, 2017 |
Medientyp: | Zeitungsartikel |
DOI: | 10.1007/978-3-319-52234-0_3 |
Schlagwort: |
|
Sonstiges: |
|