跳到主要导航 跳到搜索 跳到主要内容

LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Data race is one of the most common concurrency issues in OS kernels, and it can cause severe problems like system crashes and privilege escalation. Therefore, detecting kernel races is important and necessary. A critical step of kernel race detection is to identify locking rules that which variable should be protected by which lock. However, due to insufficient documents of kernel concurrency, it is challenging to identify accurate locking rules, causing existing approaches to produce many false results in kernel race detection. In this paper, we design a new static analysis approach named LR-Miner, to effectively detect data races in OS kernels by mining locking rules from kernel code. LR-Miner consists of three key techniques: (1) a field-aware mining method that constructs and statistically analyzes the structure field relation between locks and accessed variables, to mine accurate locking rules from kernel code; (2) an alias-aware checking method to detect data races that violate the mined locking rules; (3) a pattern-based estimation strategy to estimate the security impact of the found races and identify harmful ones. We have evaluated LR-Miner on two popular OS kernels including Linux and FreeBSD, and it finds 306 real races with a false positive rate of 19.9%. Among these found races, 200 are estimated to be harmful, and 61 of them have been confirmed by kernel developers. 10 harmful races have been assigned with CVE IDs.

源语言英语
主期刊名Proceedings of the 33rd USENIX Security Symposium
出版商USENIX Association
6149-6166
页数18
ISBN(电子版)9781939133441
出版状态已出版 - 2024
活动33rd USENIX Security Symposium, USENIX Security 2024 - Philadelphia, 美国
期限: 14 8月 202416 8月 2024

出版系列

姓名Proceedings of the 33rd USENIX Security Symposium

会议

会议33rd USENIX Security Symposium, USENIX Security 2024
国家/地区美国
Philadelphia
时期14/08/2416/08/24

指纹

探究 'LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules' 的科研主题。它们共同构成独一无二的指纹。

引用此