Fast, compatible, complete memory safety For C programs

Thesis: M. Eng., Massachusetts Institute of Technology, Department of Electrical Engineering and Computer Science, 2016. === Cataloged from PDF version of thesis. === Includes bibliographical references (pages 95-97). === The lack of memory safety in C/C++ programs is one of, if not the, most persis...

Full description

Bibliographic Details
Main Author: Davis, Eli Bristol
Other Authors: Martin C. Rinard and Stelios Sidiroglou-Douskos.
Format: Others
Language:English
Published: Massachusetts Institute of Technology 2017
Subjects:
Online Access:http://hdl.handle.net/1721.1/112860
id ndltd-MIT-oai-dspace.mit.edu-1721.1-112860
record_format oai_dc
spelling ndltd-MIT-oai-dspace.mit.edu-1721.1-1128602019-05-02T15:53:49Z Fast, compatible, complete memory safety For C programs Davis, Eli Bristol Martin C. Rinard and Stelios Sidiroglou-Douskos. Massachusetts Institute of Technology. Department of Electrical Engineering and Computer Science. Massachusetts Institute of Technology. Department of Electrical Engineering and Computer Science. Electrical Engineering and Computer Science. Thesis: M. Eng., Massachusetts Institute of Technology, Department of Electrical Engineering and Computer Science, 2016. Cataloged from PDF version of thesis. Includes bibliographical references (pages 95-97). The lack of memory safety in C/C++ programs is one of, if not the, most persistent and costly sources of program exploits. Attacks based on memory corruption can range from the reading of private data to a complete hostile takeover of a process. While many solutions to this problem have been proposed, it is as of yet unsolved-as old memory corruption attacks are rendered obsolete, new attacks continually spring up. This lack of success is largely due to the trade-offs that memory safety solutions make between completeness, compatibility, and overhead. There no a single solution with all three properties, and a solution must have all three in order to once-and-for-all solve the lack of memory safety in C programs: If a solution is incomplete, attackers will find a workaround. Unless it is backwards compatible and low-overhead, it will not be deployed in production. My goal for this thesis was to take an existing system which is close to having all three properties, and add the missing property. I chose to work with SoftboundCETS an LLVM pass which is already complete and backwards compatible, but has high runtime overhead. In this thesis, I take SoftboundCETS and heavily optimize its runtimes, reducing its total overhead by half. I split the original pass into two separate passes (one to mark which instructions were to be instrumented and the second to do the actual instrumentation) and then insert several optimization passes between them. I test my results on selected benchmarks from SPEC2000 and SPEC2006, and create a virtual machine image which allows my results to be reliably reproduced. Lastly, I propose a number of further optimizations which would allow Softbound-CETS to achieve low enough overhead to be used in a mid-performance production system. by Eli Bristol Davis. M. Eng. 2017-12-20T18:15:08Z 2017-12-20T18:15:08Z 2016 2016 Thesis http://hdl.handle.net/1721.1/112860 1014182895 eng MIT theses are protected by copyright. They may be viewed, downloaded, or printed from this source but further reproduction or distribution in any format is prohibited without written permission. http://dspace.mit.edu/handle/1721.1/7582 97 pages application/pdf Massachusetts Institute of Technology
collection NDLTD
language English
format Others
sources NDLTD
topic Electrical Engineering and Computer Science.
spellingShingle Electrical Engineering and Computer Science.
Davis, Eli Bristol
Fast, compatible, complete memory safety For C programs
description Thesis: M. Eng., Massachusetts Institute of Technology, Department of Electrical Engineering and Computer Science, 2016. === Cataloged from PDF version of thesis. === Includes bibliographical references (pages 95-97). === The lack of memory safety in C/C++ programs is one of, if not the, most persistent and costly sources of program exploits. Attacks based on memory corruption can range from the reading of private data to a complete hostile takeover of a process. While many solutions to this problem have been proposed, it is as of yet unsolved-as old memory corruption attacks are rendered obsolete, new attacks continually spring up. This lack of success is largely due to the trade-offs that memory safety solutions make between completeness, compatibility, and overhead. There no a single solution with all three properties, and a solution must have all three in order to once-and-for-all solve the lack of memory safety in C programs: If a solution is incomplete, attackers will find a workaround. Unless it is backwards compatible and low-overhead, it will not be deployed in production. My goal for this thesis was to take an existing system which is close to having all three properties, and add the missing property. I chose to work with SoftboundCETS an LLVM pass which is already complete and backwards compatible, but has high runtime overhead. In this thesis, I take SoftboundCETS and heavily optimize its runtimes, reducing its total overhead by half. I split the original pass into two separate passes (one to mark which instructions were to be instrumented and the second to do the actual instrumentation) and then insert several optimization passes between them. I test my results on selected benchmarks from SPEC2000 and SPEC2006, and create a virtual machine image which allows my results to be reliably reproduced. Lastly, I propose a number of further optimizations which would allow Softbound-CETS to achieve low enough overhead to be used in a mid-performance production system. === by Eli Bristol Davis. === M. Eng.
author2 Martin C. Rinard and Stelios Sidiroglou-Douskos.
author_facet Martin C. Rinard and Stelios Sidiroglou-Douskos.
Davis, Eli Bristol
author Davis, Eli Bristol
author_sort Davis, Eli Bristol
title Fast, compatible, complete memory safety For C programs
title_short Fast, compatible, complete memory safety For C programs
title_full Fast, compatible, complete memory safety For C programs
title_fullStr Fast, compatible, complete memory safety For C programs
title_full_unstemmed Fast, compatible, complete memory safety For C programs
title_sort fast, compatible, complete memory safety for c programs
publisher Massachusetts Institute of Technology
publishDate 2017
url http://hdl.handle.net/1721.1/112860
work_keys_str_mv AT daviselibristol fastcompatiblecompletememorysafetyforcprograms
_version_ 1719030432244170752