CETS: Compiler Enforced Temporal Safety for C. Nagarakatte, S., Zhao, J., Martin, M. M., & Zdancewic, S. In Proc. of the Int'l Symp. on Memory Management, 2010. abstract bibtex Temporal memory safety errors, such as dangling pointer dereferences and double frees, are a prevalent source of software bugs in unmanaged languages such as C. Existing schemes that attempt to retrofit temporal safety for such languages have high runtime overheads and/or are incomplete, thereby limiting their effectiveness as debugging aids. This paper presents CETS, a compile-time transformation for detecting all violations of temporal safety in C programs. Inspired by existing approaches, CETS maintains a unique identifier with each object, associates this metadata with the pointers in a disjoint metadata space to retain memory layout compatibility, and checks that the object is still allocated on pointer dereferences. A formal proof shows that this is sufficient to provide temporal safety even in the presence of arbitrary casts if the program contains no spatial safety violations. Our CETS prototype employs both temporal check removal optimizations and traditional compiler optimizations to achieve a runtime overhead of just 48% on average. When combined with a spatial-checking system, the average overall overhead is 116% for complete memory safety
@inproceedings{nagarakatte_cets:_2010,
title = {{CETS}: {Compiler} {Enforced} {Temporal} {Safety} for {C}},
shorttitle = {{CETS}},
abstract = {Temporal memory safety errors, such as dangling pointer dereferences and double frees, are a prevalent source of software bugs in unmanaged languages such as C. Existing schemes that attempt to retrofit temporal safety for such languages have high runtime overheads and/or are incomplete, thereby limiting their effectiveness as debugging aids. This paper presents CETS, a compile-time transformation for detecting all violations of temporal safety in C programs. Inspired by existing approaches, CETS maintains a unique identifier with each object, associates this metadata with the pointers in a disjoint metadata space to retain memory layout compatibility, and checks that the object is still allocated on pointer dereferences. A formal proof shows that this is sufficient to provide temporal safety even in the presence of arbitrary casts if the program contains no spatial safety violations. Our CETS prototype employs both temporal check removal optimizations and traditional compiler optimizations to achieve a runtime overhead of just 48\% on average. When combined with a spatial-checking system, the average overall overhead is 116\% for complete memory safety},
urldate = {2015-12-30TZ},
booktitle = {Proc. of the {Int}'l {Symp}. on {Memory} {Management}},
author = {Nagarakatte, Santosh and Zhao, Jianzhou and Martin, Milo M.K. and Zdancewic, Steve},
year = {2010},
keywords = {C, dangling pointers, memory safety, temporal errors}
}
Downloads: 0
{"_id":"X7zLoX9bBLywFz9aW","bibbaseid":"nagarakatte-zhao-martin-zdancewic-cetscompilerenforcedtemporalsafetyforc-2010","downloads":0,"creationDate":"2016-10-15T13:23:04.584Z","title":"CETS: Compiler Enforced Temporal Safety for C","author_short":["Nagarakatte, S.","Zhao, J.","Martin, M. M.","Zdancewic, S."],"year":2010,"bibtype":"inproceedings","biburl":"http://bibbase.org/zotero/pentarious","bibdata":{"bibtype":"inproceedings","type":"inproceedings","title":"CETS: Compiler Enforced Temporal Safety for C","shorttitle":"CETS","abstract":"Temporal memory safety errors, such as dangling pointer dereferences and double frees, are a prevalent source of software bugs in unmanaged languages such as C. Existing schemes that attempt to retrofit temporal safety for such languages have high runtime overheads and/or are incomplete, thereby limiting their effectiveness as debugging aids. This paper presents CETS, a compile-time transformation for detecting all violations of temporal safety in C programs. Inspired by existing approaches, CETS maintains a unique identifier with each object, associates this metadata with the pointers in a disjoint metadata space to retain memory layout compatibility, and checks that the object is still allocated on pointer dereferences. A formal proof shows that this is sufficient to provide temporal safety even in the presence of arbitrary casts if the program contains no spatial safety violations. Our CETS prototype employs both temporal check removal optimizations and traditional compiler optimizations to achieve a runtime overhead of just 48% on average. When combined with a spatial-checking system, the average overall overhead is 116% for complete memory safety","urldate":"2015-12-30TZ","booktitle":"Proc. of the Int'l Symp. on Memory Management","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":"2010","keywords":"C, dangling pointers, memory safety, temporal errors","bibtex":"@inproceedings{nagarakatte_cets:_2010,\n\ttitle = {{CETS}: {Compiler} {Enforced} {Temporal} {Safety} for {C}},\n\tshorttitle = {{CETS}},\n\tabstract = {Temporal memory safety errors, such as dangling pointer dereferences and double frees, are a prevalent source of software bugs in unmanaged languages such as C. Existing schemes that attempt to retrofit temporal safety for such languages have high runtime overheads and/or are incomplete, thereby limiting their effectiveness as debugging aids. This paper presents CETS, a compile-time transformation for detecting all violations of temporal safety in C programs. Inspired by existing approaches, CETS maintains a unique identifier with each object, associates this metadata with the pointers in a disjoint metadata space to retain memory layout compatibility, and checks that the object is still allocated on pointer dereferences. A formal proof shows that this is sufficient to provide temporal safety even in the presence of arbitrary casts if the program contains no spatial safety violations. Our CETS prototype employs both temporal check removal optimizations and traditional compiler optimizations to achieve a runtime overhead of just 48\\% on average. When combined with a spatial-checking system, the average overall overhead is 116\\% for complete memory safety},\n\turldate = {2015-12-30TZ},\n\tbooktitle = {Proc. of the {Int}'l {Symp}. on {Memory} {Management}},\n\tauthor = {Nagarakatte, Santosh and Zhao, Jianzhou and Martin, Milo M.K. and Zdancewic, Steve},\n\tyear = {2010},\n\tkeywords = {C, dangling pointers, memory safety, temporal errors}\n}\n\n","author_short":["Nagarakatte, S.","Zhao, J.","Martin, M. M.","Zdancewic, S."],"key":"nagarakatte_cets:_2010","id":"nagarakatte_cets:_2010","bibbaseid":"nagarakatte-zhao-martin-zdancewic-cetscompilerenforcedtemporalsafetyforc-2010","role":"author","urls":{},"keyword":["C","dangling pointers","memory safety","temporal errors"],"downloads":0},"search_terms":["cets","compiler","enforced","temporal","safety","nagarakatte","zhao","martin","zdancewic"],"keywords":["c","dangling pointers","memory safety","temporal errors"],"authorIDs":[],"dataSources":["QiRZ7m7shEMvADZkd"]}