EUVIMEDEUVIMED entdecken
Crossref

Understanding and Mitigating Twin Function Misuses in Operating System Kernel

Jinyu Gu, Jiacheng Shi, Haroran Su, Wentai Li, Binyu Zang, Haibing Guan, Haibo Chen

IEEE Transactions on Computers · 01.08.2023 · 72 (8) · 2181-2193

DOI: 10.1109/tc.2023.3240365 ↗

Kurz gefasst

Fachartikel in der Zeitschrift IEEE Transactions on Computers, erschienen am 01.08.2023. Verfasst von Jinyu Gu und 6 weiteren Autor:innen. Die Arbeit wurde bisher 2-mal zitiert (Crossref) und nennt 45 Literaturangaben. Gefördert von: National Natural Science Foundation of China, Shanghai Committee of Science and Technology.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Major operating system kernels expose twin functions, which are groups of internal primitives that have mostly common but slightly diverging semantics, to kernel modules and subsystems. They are created to make the basic primitives work well in various scenarios. Unfortunately, though being expected as solutions, twin functions may turn to problem-makers in practice. As we have observed from over 500 patches applied to upstream Linux and FreeBSD, developers choose an improper one from the twins, leaving the kernel with stability and security bugs as well as error-prone code. In this paper, we aim to understand and mitigate the twin function misuse problem. First, we provide an informative discussion on the misuse-fix patches. We find that violating the constraints from calling context, missing the primitives with better performance, lacking the necessary security enhancements, and breaking the kernel coding style are the four major factors that lead to misuse. We then identify the programming rules from the patches and apply them with a static program analysis tool extended from Coccinelle, including callgraph tainting and type-based function pointer resolving. We have 136 patches accepted by the Linux community and fix 320 new misuses in the upstream Linux kernel.

Förderung

  • National Natural Science Foundation of China
  • Shanghai Committee of Science and Technology

Zitieren

APA

Gu, J., Shi, J., Su, H., Li, W., Zang, B., Guan, H., & Chen, H. (2023). Understanding and Mitigating Twin Function Misuses in Operating System Kernel. IEEE Transactions on Computers, 72(8), 2181-2193. https://doi.org/10.1109/tc.2023.3240365

Vancouver

Gu J, Shi J, Su H, Li W, Zang B, Guan H, et al. Understanding and Mitigating Twin Function Misuses in Operating System Kernel. IEEE Transactions on Computers. 2023;72(8):2181-2193. doi:10.1109/tc.2023.3240365

BibTeX
@article{Gu2023,
  author = {Gu, Jinyu and Shi, Jiacheng and Su, Haroran and Li, Wentai and Zang, Binyu and Guan, Haibing and Chen, Haibo},
  title = {Understanding and Mitigating Twin Function Misuses in Operating System Kernel},
  journal = {IEEE Transactions on Computers},
  year = {2023},
  volume = {72},
  number = {8},
  pages = {2181--2193},
  doi = {10.1109/tc.2023.3240365}
}
Kostenlos starten →