基于特征切片的精确Bug检测
Feature Slice Matching for Precise Bug Detection
AI总结:
本文提出MATUS方法,通过特征切片和端到端学习精准检测Bug,发现31个Linux内核未知Bug并获得验证。
摘要:
通过测量函数相似性来检测Bug是有效的,但与Bug无关的语句会因噪声干扰而影响性能。现有工作中抑制噪声干扰并不能解决难题,即消除目标中的噪声。本文提出MATUS,基于相似性测量来减轻目标噪声以实现精确的Bug检测。从有缺陷的查询和目标中提取特征切片,以表示(潜在)Bug逻辑的语义特征。特别是,MATUS利用 buggy 代码中的先验知识指导目标切片,以端到端的方式确定目标中的切片标准。所有特征切片都基于向量相似性进行嵌入和比较。对可疑的Bug进行审计,以确认目标中的未知Bug。实验表明,MATUS在实际项目中具有优势,效率可接受。总共,MATUS在Linux内核中发现了31个未知Bug。所有都已由内核开发者确认,其中11个已分配CVE。
英文摘要:
Measuring the function similarity to detect bugs is effective, but the statements unrelated to the bugs can impede the performance due to the noise interference. Suppressing the noise interference in existing works does not manage the tough job, i.e., eliminating the noise in the targets. In this paper, we propose MATUS to mitigate the target noise for precise bug detection based on similarity measurement. Feature slices are extracted from both the buggy query and the targets to represent the semantic feature of (potential) bug logics. In particular, MATUS guides the target slicing with the prior knowledge from the buggy code, in an end-to-end way to pinpoint the slicing criterion in the targets. All feature slices are embedded and compared based on the vector similarity. Buggy candidates are audited to confirm unknown bugs in the targets. Experiments show that MATUS holds advantages in bug detection for real-world projects with acceptable efficiency. In total, MATUS has spotted 31 unknown bugs in the Linux kernel. All of them have been confirmed by the kernel developers, and 11 have been assigned CVEs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。