Do #ifdefs Influence the occurrence of vulnerabilities? An empirical study of the Linux kernel

Gabriel Ferreira, Momin Malik, Christian Kästner, Jürgen Pfeffer, Sven Apel

Publikation: Beitrag in Buch/Bericht/KonferenzbandKonferenzbeitragBegutachtung

22 Zitate (Scopus)

Abstract

Preprocessors support the diversification of software products with #ifdefs, but also require additional effort from developers to maintain and understand variable code. We conjecture that #ifdefs cause developers to produce more vulnerable code because they are required to reason about multiple features simultaneously and maintain complex mental models of dependencies of configurable code. We extracted a variational call graph across all configurations of the Linux kernel, and used configuration complexity metrics to compare vulnerable and non-vulnerable functions considering their vulnerability history. Our goal was to learn about whether we can observe a measurable influence of configuration complexity on the occurrence of vulnerabilities. Our results suggest, among others, that vulnerable functions have higher variability than non-vulnerable ones and are also constrained by fewer configuration options. This suggests that developers are inclined to notice functions appear in frequently-compiled product variants. We aim to raise developers' awareness to address variability more systematically, since configuration complexity is an important, but often ignored aspect of software product lines.

OriginalspracheEnglisch
TitelProceedings - 20th International Systems and Software Product Line Conference, SPLC 2016
Redakteure/-innenEbrahim Bagheri, Hong Mei, Xin Peng, Antonio Ruiz Cortes, Bran Selic, Yingfei Xiong, Rick Rabiser, Norbert Siegmund, Christoph Elsner, Jun Wei, Bing Xie, Jesper Andersson, Andrzej Wasowski, Li Zhang, Yun Xie, Krzysztof Czarnecki, Thorsten Berger, Jocelyn Simmonds
Herausgeber (Verlag)Association for Computing Machinery
Seiten65-73
Seitenumfang9
ISBN (elektronisch)9781450340502
DOIs
PublikationsstatusVeröffentlicht - 16 Sept. 2016
Extern publiziertJa
Veranstaltung20th International Systems and Software Product Line Conference, SPLC 2016 - Beijing, China
Dauer: 16 Sept. 201623 Sept. 2016

Publikationsreihe

NameACM International Conference Proceeding Series
Band16-23-September-2016

Konferenz

Konferenz20th International Systems and Software Product Line Conference, SPLC 2016
Land/GebietChina
OrtBeijing
Zeitraum16/09/1623/09/16

Fingerprint

Untersuchen Sie die Forschungsthemen von „Do #ifdefs Influence the occurrence of vulnerabilities? An empirical study of the Linux kernel“. Zusammen bilden sie einen einzigartigen Fingerprint.

Dieses zitieren