CAMP:基于编译器和分配器的堆内存保护
CAMP: Compiler and Allocator-based Heap Memory Protection
AI总结:
提出CAMP,一种结合编译器和定制内存分配器的堆内存损坏检测工具,通过边界检查和悬空指针消除,在更低运行时开销下实现更强的堆损坏检测能力。
摘要:
堆是许多应用程序中关键且广泛使用的组件。由于其动态特性,加上堆管理算法的复杂性,它也经常成为安全利用的目标。为了增强堆的安全性,已经引入了各种堆保护技术,但它们要么引入显著的运行时开销,要么保护有限。我们提出了CAMP,一种用于检测和捕获堆内存损坏的新型检测工具。CAMP利用编译器和定制的内存分配器。编译器向目标程序添加边界检查和逃逸跟踪指令,而内存分配器跟踪内存范围,与插桩协调,并消除悬空指针。凭借新颖的错误检测方案,CAMP支持各种编译器优化策略,从而消除冗余和不必要的检查插桩。这种设计在不牺牲安全保证的前提下最小化了运行时开销。我们使用真实应用程序和SPEC CPU基准对CAMP与现有工具进行的评估和比较表明,它以更低的运行时开销提供了更好的堆损坏检测能力。
英文摘要:
The heap is a critical and widely used component of many applications. Due to its dynamic nature, combined with the complexity of heap management algorithms, it is also a frequent target for security exploits. To enhance the heap's security, various heap protection techniques have been introduced, but they either introduce significant runtime overhead or have limited protection. We present CAMP, a new sanitizer for detecting and capturing heap memory corruption. CAMP leverages a compiler and a customized memory allocator. The compiler adds boundary-checking and escape-tracking instructions to the target program, while the memory allocator tracks memory ranges, coordinates with the instrumentation, and neutralizes dangling pointers. With the novel error detection scheme, CAMP enables various compiler optimization strategies and thus eliminates redundant and unnecessary check instrumentation. This design minimizes runtime overhead without sacrificing security guarantees. Our evaluation and comparison of CAMP with existing tools, using both real-world applications and SPEC CPU benchmarks, show that it provides even better heap corruption detection capability with lower runtime overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。