Cargando…
Trace-Relating Compiler Correctness and Secure Compilation
Compiler correctness is, in its simplest form, defined as the inclusion of the set of traces of the compiled program into the set of traces of the original program, which is equivalent to the preservation of all trace properties. Here traces collect, for instance, the externally observable events of...
Autores principales: | , , , , , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
2020
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702255/ http://dx.doi.org/10.1007/978-3-030-44914-8_1 |
_version_ | 1783616577734705152 |
---|---|
author | Abate, Carmine Blanco, Roberto Ciobâcă, Ștefan Durier, Adrien Garg, Deepak Hrițcu, Cătălin Patrignani, Marco Tanter, Éric Thibault, Jérémy |
author_facet | Abate, Carmine Blanco, Roberto Ciobâcă, Ștefan Durier, Adrien Garg, Deepak Hrițcu, Cătălin Patrignani, Marco Tanter, Éric Thibault, Jérémy |
author_sort | Abate, Carmine |
collection | PubMed |
description | Compiler correctness is, in its simplest form, defined as the inclusion of the set of traces of the compiled program into the set of traces of the original program, which is equivalent to the preservation of all trace properties. Here traces collect, for instance, the externally observable events of each execution. This definition requires, however, the set of traces of the source and target languages to be exactly the same, which is not the case when the languages are far apart or when observations are fine-grained. To overcome this issue, we study a generalized compiler correctness definition, which uses source and target traces drawn from potentially different sets and connected by an arbitrary relation. We set out to understand what guarantees this generalized compiler correctness definition gives us when instantiated with a non-trivial relation on traces. When this trace relation is not equality, it is no longer possible to preserve the trace properties of the source program unchanged. Instead, we provide a generic characterization of the target trace property ensured by correctly compiling a program that satisfies a given source property, and dually, of the source trace property one is required to show in order to obtain a certain target property for the compiled code. We show that this view on compiler correctness can naturally account for undefined behavior, resource exhaustion, different source and target values, side-channels, and various abstraction mismatches. Finally, we show that the same generalization also applies to many secure compilation definitions, which characterize the protection of a compiled program against linked adversarial code. |
format | Online Article Text |
id | pubmed-7702255 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2020 |
record_format | MEDLINE/PubMed |
spelling | pubmed-77022552020-12-01 Trace-Relating Compiler Correctness and Secure Compilation Abate, Carmine Blanco, Roberto Ciobâcă, Ștefan Durier, Adrien Garg, Deepak Hrițcu, Cătălin Patrignani, Marco Tanter, Éric Thibault, Jérémy Programming Languages and Systems Article Compiler correctness is, in its simplest form, defined as the inclusion of the set of traces of the compiled program into the set of traces of the original program, which is equivalent to the preservation of all trace properties. Here traces collect, for instance, the externally observable events of each execution. This definition requires, however, the set of traces of the source and target languages to be exactly the same, which is not the case when the languages are far apart or when observations are fine-grained. To overcome this issue, we study a generalized compiler correctness definition, which uses source and target traces drawn from potentially different sets and connected by an arbitrary relation. We set out to understand what guarantees this generalized compiler correctness definition gives us when instantiated with a non-trivial relation on traces. When this trace relation is not equality, it is no longer possible to preserve the trace properties of the source program unchanged. Instead, we provide a generic characterization of the target trace property ensured by correctly compiling a program that satisfies a given source property, and dually, of the source trace property one is required to show in order to obtain a certain target property for the compiled code. We show that this view on compiler correctness can naturally account for undefined behavior, resource exhaustion, different source and target values, side-channels, and various abstraction mismatches. Finally, we show that the same generalization also applies to many secure compilation definitions, which characterize the protection of a compiled program against linked adversarial code. 2020-04-18 /pmc/articles/PMC7702255/ http://dx.doi.org/10.1007/978-3-030-44914-8_1 Text en © The Author(s) 2020 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. |
spellingShingle | Article Abate, Carmine Blanco, Roberto Ciobâcă, Ștefan Durier, Adrien Garg, Deepak Hrițcu, Cătălin Patrignani, Marco Tanter, Éric Thibault, Jérémy Trace-Relating Compiler Correctness and Secure Compilation |
title | Trace-Relating Compiler Correctness and Secure Compilation |
title_full | Trace-Relating Compiler Correctness and Secure Compilation |
title_fullStr | Trace-Relating Compiler Correctness and Secure Compilation |
title_full_unstemmed | Trace-Relating Compiler Correctness and Secure Compilation |
title_short | Trace-Relating Compiler Correctness and Secure Compilation |
title_sort | trace-relating compiler correctness and secure compilation |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702255/ http://dx.doi.org/10.1007/978-3-030-44914-8_1 |
work_keys_str_mv | AT abatecarmine tracerelatingcompilercorrectnessandsecurecompilation AT blancoroberto tracerelatingcompilercorrectnessandsecurecompilation AT ciobacastefan tracerelatingcompilercorrectnessandsecurecompilation AT durieradrien tracerelatingcompilercorrectnessandsecurecompilation AT gargdeepak tracerelatingcompilercorrectnessandsecurecompilation AT hritcucatalin tracerelatingcompilercorrectnessandsecurecompilation AT patrignanimarco tracerelatingcompilercorrectnessandsecurecompilation AT tantereric tracerelatingcompilercorrectnessandsecurecompilation AT thibaultjeremy tracerelatingcompilercorrectnessandsecurecompilation |