Труды Института системного программирования РАН (Oct 2018)

Configurable Toolset for Static Verification of Operating Systems Kernel Modules

  • I. S. Zakharov,
  • M. U. Mandrykin,
  • V. S. Mutilin,
  • E. M. Novikov,
  • A. K. Petrenko,
  • A. V. Khoroshilov

DOI
https://doi.org/10.15514/ISPRAS-2014-26(2)-1
Journal volume & issue
Vol. 26, no. 2
pp. 5 – 42

Abstract

Read online

An operating system (OS) kernel is a critical software regarding to reliability and efficiency. Quality of a modern OSs kernel is high enough. Another situation is with kernel modules, e.g. device drivers, which due to various reasons have a significantly lower level of quality. One of the most critical and widespread bugs in kernel modules are violations of rules of correct usage of a kernel API. One can identify all such the violations in modules or prove their correctness with help of static verification tools which needs contract specifications describing formally obligations of a kernel and modules with respect to each other. The paper considers existing methods and toolsets for static verification of kernel modules of different OSs. It suggests a new method for static verification of Linux kernel modules that allows to configure checking at each of its stages. The paper shows how this method can be adapted for checking kernel components of other OSs. It describes an architecture of a configurable toolset for static verification of Linux kernel modules, which implements the proposed method, and demonstrates results of its practical application. Directions of further development are considered in conclusion

Keywords