首页> 外文会议>International conference on ICT systems security and privacy protection >SIMBER: Eliminating Redundant Memory Bound Checks via Statistical Inference
【24h】

SIMBER: Eliminating Redundant Memory Bound Checks via Statistical Inference

机译:SIMBER:通过统计推断消除冗余内存绑定检查

获取原文
获取外文期刊封面目录资料

摘要

Unsafe memory accesses in programs written using popular programming languages like C and C++ have been among the leading causes of software vulnerability. Memory safety checkers, such as Soft-bound, enforce memory spatial safety by checking if accesses to array elements are within the corresponding array bounds. However, such checks often result in high execution time overhead due to the cost of executing the instructions associated with the bound checks. To mitigate this problem, techniques to eliminate redundant bound checks are needed. In this paper, we propose a novel framework, SIMBER, to eliminate redundant memory bound checks via statistical inference. In contrast to the existing techniques that primarily rely on static code analysis, our solution leverages a simple, model-based inference to identify redundant bound checks based on runtime statistics from past program executions. We construct a knowledge base containing sufficient conditions using variables inside functions, which are then applied adaptively to avoid future redundant checks at a function-level granularity. Our experimental results on real-world applications show that SIMBER achieves zero false positives. Also, our approach reduces the performance overhead by up to 86.94% over Softbound, and incurs a modest 1.7% code size increase on average to circumvent the redundant bound checks inserted by Softbound.
机译:使用像C和C ++这样的流行编程语言编写的程序中的不安全的内存访问是软件漏洞的主要原因。通过检查到数组元素的访问,内存安全检查器(如软绑定,通过检查对相应的数组绑定)是否在相应的阵列中,执行内存空间安全。然而,由于执行与绑定检查相关联的指令的成本,这种检查通常导致高执行时间开销。为缓解此问题,需要消除冗余绑定检查的技术。在本文中,我们提出了一种新颖的框架Simber,通过统计推断消除冗余内存绑定检查。与主要依赖静态代码分析的现有技术相比,我们的解决方案利用了一个简单的模型的推断,以根据过去的程序执行中的运行时统计来识别冗余绑定检查。我们构建一个具有足够条件的知识库,使用内部功能的变量,然后自适应地应用,以避免在函数级粒度处的未来冗余检查。我们对现实应用的实验结果表明,Simber实现了零误报。此外,我们的方法在软装书减少达的性能开销到86.94%,并造成平均适度的1.7%的代码大小的增加,以规避由软装书插入冗余约束检查。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号