RUS  ENG
Full version
JOURNALS // Proceedings of the Institute for System Programming of the RAS // Archive

Proceedings of ISP RAS, 2025 Volume 37, Issue 5, Pages 67–80 (Mi tisp1042)

Coloring symbolic memory graphs to detect DRM-specific errors in Linux drivers

E. M. Orlova, A. A. Vasilyev, O. M. Petrov

Ivannikov Institute for System Programming of the RAS

Abstract: This paper discusses a particular type of subtle use-after-free errors in the Direct Rendering Manager (DRM) subsystem of the Linux kernel. These errors occur due to incorrectly allocated memory for structures accessible from user space via device callbacks. To detect these errors, we use a shape analysis based on the Symbolic Memory Graph (SMG) domain. We introduce the coloring of allocated memory to track its origin. Among 186 Linux DRM drivers, we have found 6 violations of the proposed rule.

Keywords: Linux drivers, use-after-free, shape analysis, software model checking, symbolic memory graphs.

Language: English

DOI: 10.15514/ISPRAS-2025-37(5)-5



© Steklov Math. Inst. of RAS, 2025