首页> 外文会议>International Symposium on High-Performance Computer Architecture >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,用于检测生产运行过程中的内存泄漏和内存损坏

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

摘要

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%是由内存泄漏或内存损坏引起的。动态监控工具,例如最先进的净化,通常用于检测内存泄漏和内存损坏。然而,大多数这些工具遭受高度开销,减速时间高达20倍,使其可用于生产运行。本文提出了一种名为SAFEMEM的工具,可在生产运行期间检测运行中的内存泄漏和内存损坏。此工具不依赖于任何新的硬件支持。相反,它使现有的ECC内存技术进行了新颖的使用,并利用智能动态内存使用行为分析来检测内存泄漏和损坏。我们已经评估了具有包含内存泄漏或内存损坏错误的七个真实应用程序的Sauremem。 Safemem检测具有低开销的所有测试错误(仅1.6%-14.4%),大于净化的2-3个级数。我们的研究结果还表明,ECC保护在修剪内存泄漏检测的误报方面是有效的,并且在与页面保护相比,用于在内存损坏检测中用于内存监测的内存废物量(64-74倍)。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号