首页> 外文会议> >SafeMem: exploiting ECC-memory for detecting memory leaks and memory corruption during production runs
【24h】

SafeMem: exploiting ECC-memory for detecting memory leaks and memory corruption during production runs

机译:SafeMem:利用ECC内存来检测生产运行期间的内存泄漏和内存损坏

获取原文

摘要

Memory leaks and memory corruption are two major forms of software bugs that severely threaten system availability and security. According to the US-CERT vulnerability notes database, 68% of all reported vulnerabilities in 2003 were caused by memory leaks or memory corruption. Dynamic monitoring tools, such as the state-of-the-art Purify, are commonly used to detect memory leaks and memory corruption. However, most of these tools suffer from high overhead, with up to a 20 times slowdown, making them infeasible to be used for production-runs. This paper proposes a tool called SafeMem to detect memory leaks and memory corruption on-the-fly during production-runs. This tool does not rely on any new hardware support. Instead, it makes a novel use of existing ECC memory technology and exploits intelligent dynamic memory usage behavior analysis to detect memory leaks and corruption. We have evaluated SafeMem with seven real-world applications that contain memory leak or memory corruption bugs. SafeMem detects all tested bugs with low overhead (only 1.6%-14.4%), 2-3 orders of magnitudes smaller than Purify. Our results also show that ECC-protection is effective in pruning false positives for memory leak detection, and in reducing the amount of memory waste (by a factor of 64-74) used for memory monitoring in memory corruption detection compared to page-protection.
机译:内存泄漏和内存损坏是严重影响系统可用性和安全性的软件错误的两种主要形式。根据US-CERT漏洞记录数据库,在2003年报告的所有漏洞中,有68%是由内存泄漏或内存损坏引起的。动态监视工具(例如最新的Purify)通常用于检测内存泄漏和内存损坏。但是,这些工具大多数都具有高昂的开销,其速度最多可降低20倍,因此无法用于生产运行。本文提出了一种名为SafeMem的工具,用于在生产运行过程中即时检测内存泄漏和内存损坏。该工具不依赖任何新的硬件支持。相反,它新颖地利用了现有的ECC内存技术,并利用智能动态内存使用行为分析来检测内存泄漏和损坏。我们已经使用包含内存泄漏或内存损坏错误的七个实际应用程序对SafeMem进行了评估。 SafeMem能够以较低的开销(仅1.6%-14.4%)检测到所有经过测试的错误,比Purify小2-3个数量级。我们的结果还表明,与页面保护相比,ECC保护在修剪内存泄漏检测的误报方面有效,并且在减少内存损坏检测中用于内存监视的内存浪费(减少64-74倍)方面有效。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号