DoubleTake:基于证据的动态分析快速精确的错误检测
DoubleTake: Fast and Precise Error Detection via Evidence-Based Dynamic Analysis
摘要:
本文介绍了基于证据的动态分析,这种方法可以实现轻量级分析-这些错误的开销低于5%-使其首次在部署设置中执行这些分析变得实用。基于证据的动态分析的关键见解是,对于一类错误,可以确保它们在过去某个时间点发生的证据保留下来,以便以后检测。基于证据的动态分析允许执行以几乎全速进行直到历元结束(例如,重量级系统调用)。然后,它检查程序状态,以检查在该时期的某个时间发生错误的证据。如果是,它将回滚执行并重新执行代码,同时激活检测以查明错误。我们提出了DoubleTake,一个原型的循证动态分析框架。DoubleTake既实用又易于部署,既不需要自定义硬件、编译器,也不需要操作系统支持。我们通过构建动态分析来发现缓冲区溢出、释放后内存使用错误和内存泄漏,从而展示了DoubleTake的通用性和效率。我们的评估表明,DoubleTake是高效的,平均仅增加4%的开销,使其成为迄今为止最快的此类系统。它也是精确的:DoubleTake将这些错误的位置精确定位到它们发生的确切行和内存地址,为程序员提供有价值的调试信息。
英文摘要:
This paper presents evidence-based dynamic analysis, an approach that enables lightweight analyses--under 5% overhead for these bugs--making it practical for the first time to perform these analyses in deployed settings. The key insight of evidence-based dynamic analysis is that for a class of errors, it is possible to ensure that evidence that they happened at some point in the past remains for later detection. Evidence-based dynamic analysis allows execution to proceed at nearly full speed until the end of an epoch (e.g., a heavyweight system call). It then examines program state to check for evidence that an error occurred at some time during that epoch. If so, it rolls back execution and re-executes the code with instrumentation activated to pinpoint the error. We present DoubleTake, a prototype evidence-based dynamic analysis framework. DoubleTake is practical and easy to deploy, requiring neither custom hardware, compiler, nor operating system support. We demonstrate DoubleTake's generality and efficiency by building dynamic analyses that find buffer overflows, memory use-after-free errors, and memory leaks. Our evaluation shows that DoubleTake is efficient, imposing just 4% overhead on average, making it the fastest such system to date. It is also precise: DoubleTake pinpoints the location of these errors to the exact line and memory addresses where they occur, providing valuable debugging information to programmers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。