Beyond the PDP-11
Authors:
Open Access
- 14 March 2015
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 50 (4) , 117-130
Abstract
We propose a new memory-safe interpretation of the C abstract machine that provides stronger protection to benefit security and debugging. Despite ambiguities in the specification intended to provide implementation flexibility, contemporary implementations of C have converged on a memory model similar to the PDP-11, the original target for C. This model lacks support for memory safety despite well-documented impacts on security and reliability. Attempts to change this model are often hampered by assumptions embedded in a large body of existing C code, dating back to the memory model exposed by the original C compiler for the PDP-11. Our experience with attempting to implement a memory-safe variant of C on the CHERI experimental microprocessor led us to identify a number of problematic idioms. We describe these as well as their interaction with existing memory safety schemes and the assumptions that they make beyond the requirements of the C specification. Finally, we refine the CHERI ISA and abstract model for C, by combining elements of the CHERI capability model and fat pointers, and present a softcore CPU that implements a C abstract machine that can run legacy C code with strong memory protection guarantees.Keywords
Funding Information
- Defense Advanced Research Projects Agency (FA8750-10-C-0237, FA8750-11-C-0249)
This publication has 19 references indexed in Scilit:
- Bringing java's wild native world under controlACM Transactions on Information and System Security, 2013
- Low-fat pointers2013
- Mitigating program security vulnerabilitiesACM Computing Surveys, 2012
- Emscripten2011
- A few billion lines of code laterCommunications of the ACM, 2010
- Native ClientCommunications of the ACM, 2010
- HardboundACM SIGARCH Computer Architecture News, 2008
- Secure virtual architecture2007
- Garbage collection in an uncooperative environmentSoftware: Practice and Experience, 1988
- UNIX Time-Sharing System: The C Programming LanguageBell System Technical Journal, 1978