SoftBound: Highly Compatible and Complete Spatial Memory Safety for C. Nagarakatte, S., Zhao, J., Martin, M. M., & Zdancewic, S. In Proc. of the ACM SIGPLAN Conf. on Programming Language Design and Implementation, 2009. abstract bibtex The serious bugs and security vulnerabilities facilitated by C/C++'s lack of bounds checking are well known, yet C and C++ remain in widespread use. Unfortunately, C's arbitrary pointer arithmetic, conflation of pointers and arrays, and programmer-visible memory layout make retrofitting C/C++ with spatial safety guarantees extremely challenging. Existing approaches suffer from incompleteness, have high runtime overhead, or require non-trivial changes to the C source code. Thus far, these deficiencies have prevented widespread adoption of such techniques. This paper proposes SoftBound, a compile-time transformation for enforcing spatial safety of C. Inspired by HardBound, a previously proposed hardware-assisted approach, SoftBound similarly records base and bound information for every pointer as disjoint metadata. This decoupling enables SoftBound to provide spatial safety without requiring changes to C source code. Unlike HardBound, SoftBound is a software-only approach and performs metadata manipulation only when loading or storing pointer values. A formal proof shows that this is sufficient to provide spatial safety even in the presence of arbitrary casts. SoftBound's full checking mode provides complete spatial violation detection with 67% runtime overhead on average. To further reduce overheads, SoftBound has a store-only checking mode that successfully detects all the security vulnerabilities in a test suite at the cost of only 22% runtime overhead on average.
@inproceedings{nagarakatte_softbound:_2009,
title = {{SoftBound}: {Highly} {Compatible} and {Complete} {Spatial} {Memory} {Safety} for {C}},
shorttitle = {{SoftBound}},
abstract = {The serious bugs and security vulnerabilities facilitated by C/C++'s lack of bounds checking are well known, yet C and C++ remain in widespread use. Unfortunately, C's arbitrary pointer arithmetic, conflation of pointers and arrays, and programmer-visible memory layout make retrofitting C/C++ with spatial safety guarantees extremely challenging. Existing approaches suffer from incompleteness, have high runtime overhead, or require non-trivial changes to the C source code. Thus far, these deficiencies have prevented widespread adoption of such techniques. This paper proposes SoftBound, a compile-time transformation for enforcing spatial safety of C. Inspired by HardBound, a previously proposed hardware-assisted approach, SoftBound similarly records base and bound information for every pointer as disjoint metadata. This decoupling enables SoftBound to provide spatial safety without requiring changes to C source code. Unlike HardBound, SoftBound is a software-only approach and performs metadata manipulation only when loading or storing pointer values. A formal proof shows that this is sufficient to provide spatial safety even in the presence of arbitrary casts. SoftBound's full checking mode provides complete spatial violation detection with 67\% runtime overhead on average. To further reduce overheads, SoftBound has a store-only checking mode that successfully detects all the security vulnerabilities in a test suite at the cost of only 22\% runtime overhead on average.},
urldate = {2015-12-30TZ},
booktitle = {Proc. of the {ACM} {SIGPLAN} {Conf}. on {Programming} {Language} {Design} and {Implementation}},
author = {Nagarakatte, Santosh and Zhao, Jianzhou and Martin, Milo M.K. and Zdancewic, Steve},
year = {2009},
keywords = {C, buffer overflows, spatial memory safety}
}
Downloads: 0
{"_id":"AuprbHWYhwPsy7eXM","bibbaseid":"nagarakatte-zhao-martin-zdancewic-softboundhighlycompatibleandcompletespatialmemorysafetyforc-2009","downloads":0,"creationDate":"2016-10-15T13:23:04.590Z","title":"SoftBound: Highly Compatible and Complete Spatial Memory Safety for C","author_short":["Nagarakatte, S.","Zhao, J.","Martin, M. M.","Zdancewic, S."],"year":2009,"bibtype":"inproceedings","biburl":"http://bibbase.org/zotero/pentarious","bibdata":{"bibtype":"inproceedings","type":"inproceedings","title":"SoftBound: Highly Compatible and Complete Spatial Memory Safety for C","shorttitle":"SoftBound","abstract":"The serious bugs and security vulnerabilities facilitated by C/C++'s lack of bounds checking are well known, yet C and C++ remain in widespread use. Unfortunately, C's arbitrary pointer arithmetic, conflation of pointers and arrays, and programmer-visible memory layout make retrofitting C/C++ with spatial safety guarantees extremely challenging. Existing approaches suffer from incompleteness, have high runtime overhead, or require non-trivial changes to the C source code. Thus far, these deficiencies have prevented widespread adoption of such techniques. This paper proposes SoftBound, a compile-time transformation for enforcing spatial safety of C. Inspired by HardBound, a previously proposed hardware-assisted approach, SoftBound similarly records base and bound information for every pointer as disjoint metadata. This decoupling enables SoftBound to provide spatial safety without requiring changes to C source code. Unlike HardBound, SoftBound is a software-only approach and performs metadata manipulation only when loading or storing pointer values. A formal proof shows that this is sufficient to provide spatial safety even in the presence of arbitrary casts. SoftBound's full checking mode provides complete spatial violation detection with 67% runtime overhead on average. To further reduce overheads, SoftBound has a store-only checking mode that successfully detects all the security vulnerabilities in a test suite at the cost of only 22% runtime overhead on average.","urldate":"2015-12-30TZ","booktitle":"Proc. of the ACM SIGPLAN Conf. on Programming Language Design and Implementation","author":[{"propositions":[],"lastnames":["Nagarakatte"],"firstnames":["Santosh"],"suffixes":[]},{"propositions":[],"lastnames":["Zhao"],"firstnames":["Jianzhou"],"suffixes":[]},{"propositions":[],"lastnames":["Martin"],"firstnames":["Milo","M.K."],"suffixes":[]},{"propositions":[],"lastnames":["Zdancewic"],"firstnames":["Steve"],"suffixes":[]}],"year":"2009","keywords":"C, buffer overflows, spatial memory safety","bibtex":"@inproceedings{nagarakatte_softbound:_2009,\n\ttitle = {{SoftBound}: {Highly} {Compatible} and {Complete} {Spatial} {Memory} {Safety} for {C}},\n\tshorttitle = {{SoftBound}},\n\tabstract = {The serious bugs and security vulnerabilities facilitated by C/C++'s lack of bounds checking are well known, yet C and C++ remain in widespread use. Unfortunately, C's arbitrary pointer arithmetic, conflation of pointers and arrays, and programmer-visible memory layout make retrofitting C/C++ with spatial safety guarantees extremely challenging. Existing approaches suffer from incompleteness, have high runtime overhead, or require non-trivial changes to the C source code. Thus far, these deficiencies have prevented widespread adoption of such techniques. This paper proposes SoftBound, a compile-time transformation for enforcing spatial safety of C. Inspired by HardBound, a previously proposed hardware-assisted approach, SoftBound similarly records base and bound information for every pointer as disjoint metadata. This decoupling enables SoftBound to provide spatial safety without requiring changes to C source code. Unlike HardBound, SoftBound is a software-only approach and performs metadata manipulation only when loading or storing pointer values. A formal proof shows that this is sufficient to provide spatial safety even in the presence of arbitrary casts. SoftBound's full checking mode provides complete spatial violation detection with 67\\% runtime overhead on average. To further reduce overheads, SoftBound has a store-only checking mode that successfully detects all the security vulnerabilities in a test suite at the cost of only 22\\% runtime overhead on average.},\n\turldate = {2015-12-30TZ},\n\tbooktitle = {Proc. of the {ACM} {SIGPLAN} {Conf}. on {Programming} {Language} {Design} and {Implementation}},\n\tauthor = {Nagarakatte, Santosh and Zhao, Jianzhou and Martin, Milo M.K. and Zdancewic, Steve},\n\tyear = {2009},\n\tkeywords = {C, buffer overflows, spatial memory safety}\n}\n\n","author_short":["Nagarakatte, S.","Zhao, J.","Martin, M. M.","Zdancewic, S."],"key":"nagarakatte_softbound:_2009","id":"nagarakatte_softbound:_2009","bibbaseid":"nagarakatte-zhao-martin-zdancewic-softboundhighlycompatibleandcompletespatialmemorysafetyforc-2009","role":"author","urls":{},"keyword":["C","buffer overflows","spatial memory safety"],"downloads":0},"search_terms":["softbound","highly","compatible","complete","spatial","memory","safety","nagarakatte","zhao","martin","zdancewic"],"keywords":["c","buffer overflows","spatial memory safety"],"authorIDs":[],"dataSources":["QiRZ7m7shEMvADZkd"]}