arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.09026cs.CR
收藏

一种防止缓冲区溢出的上下文感知失效无关计算

Context-aware Failure-oblivious Computing as a Means of Preventing Buffer Overflows

Manuel Rigger, Daniel Pekarek, Hanspeter Mössenböck

摘要:

在像C这样的语言中,缓冲区溢出很普遍。一种常见的缓解技术是使用在执行期间检测它们并中止程序的工具,以防止数据泄漏或控制流转移。然而,对于服务器应用,希望在保持系统可用性的同时防止这种错误。为此,我们提出了一种方法来处理缓冲区溢出而不中止程序。这种方法涉及基于允许查询缓冲区大小的内省函数在库函数中实现连续逻辑。我们证明,内省可以在流行的错误查找和错误缓解工具,如LLVM的AddressSanitizer,SoftBound和基于英特尔MPX的边界检查。我们评估了我们的方法在一个案例研究的真实世界的错误,并表明,明确跟踪边界数据的工具,内省的结果在一个低的性能开销。

英文摘要:

In languages like C, buffer overflows are widespread. A common mitigation technique is to use tools that detect them during execution and abort the program to prevent the leakage of data or the diversion of control flow. However, for server applications, it would be desirable to prevent such errors while maintaining availability of the system. To this end, we present an approach to handle buffer overflows without aborting the program. This approach involves implementing a continuation logic in library functions based on an introspection function that allows querying the size of a buffer. We demonstrate that introspection can be implemented in popular bug-finding and bug-mitigation tools such as LLVM's AddressSanitizer, SoftBound, and Intel-MPX-based bounds checking. We evaluated our approach in a case study of real-world bugs and show that for tools that explicitly track bounds data, introspection results in a low performance overhead.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑