Beastie In For Checkup: Analyzing FreeBSD with LockDoc
Abstract
LockDoc is an approach to extract locking rules for kernel data structures, based on a dynamic execution trace. The recorded trace can e.g. be used to verify existing locking documentation. LockDoc results for Linux indicated that only 53 % of all examined data types were accessed consistently with their respective locking documentation [5]: Linux systematically elides locks for performance reasons, and the existing documentation is partially outdated or inconsistent. Without a solid “ground truth”, it is impossible to reliably attribute LockDoc’s findings to bugs in Linux, or to issues with the LockDoc approach itself.
Therefore, in this paper we present results from applying LockDoc to a much more straightforwardly and “cleanly” implemented operating system: FreeBSD offers sophisticated locking documentation – e.g. for many data structures, each individual field is annotated with a precise locking rule. We report that, for four centrally documented data types, FreeBSD adheres to the documented locking rules in 72.4 % of all dynamic data-structure accesses. Investigating the remaining rule-violating accesses, we already triggered two commits for the FreeBSD kernel fixing unprotected accesses, and nudge this value to 73.6 %.
- Citation
- BibTeX
Lochmann, A. & Schirmeier, H.,
(2021).
Beastie In For Checkup: Analyzing FreeBSD with LockDoc.
Tagungsband des FG-BS Herbsttreffens 2021.
Bonn:
Gesellschaft für Informatik e.V..
DOI: 10.18420/fgbs2021h-04
@inproceedings{mci/Lochmann2021,
author = {Lochmann, Alexander AND Schirmeier, Horst},
title = {Beastie In For Checkup: Analyzing FreeBSD with LockDoc},
booktitle = {Tagungsband des FG-BS Herbsttreffens 2021},
year = {2021},
editor = {} ,
doi = { 10.18420/fgbs2021h-04 },
publisher = {Gesellschaft für Informatik e.V.},
address = {Bonn}
}
author = {Lochmann, Alexander AND Schirmeier, Horst},
title = {Beastie In For Checkup: Analyzing FreeBSD with LockDoc},
booktitle = {Tagungsband des FG-BS Herbsttreffens 2021},
year = {2021},
editor = {} ,
doi = { 10.18420/fgbs2021h-04 },
publisher = {Gesellschaft für Informatik e.V.},
address = {Bonn}
}
Dateien | Groesse | Format | Anzeige | |
---|---|---|---|---|
Paper04.pdf | 525.4Kb | View/ |
Sollte hier kein Volltext (PDF) verlinkt sein, dann kann es sein, dass dieser aus verschiedenen Gruenden (z.B. Lizenzen oder Copyright) nur in einer anderen Digital Library verfuegbar ist. Versuchen Sie in diesem Fall einen Zugriff ueber die verlinkte DOI: 10.18420/fgbs2021h-04
Haben Sie fehlerhafte Angaben entdeckt? Sagen Sie uns Bescheid: Send Feedback
More Info
xmlui.MetaDataDisplay.field.date: 2021
Language:
(en)

Content Type: Text