2015 · 98 citations · 36 references
ComputingComputer EngineeringComputer ScienceCompilersFormal MethodsProgramming LanguagesCode GenerationCompiler ConstructionControl-flow AnalysisData-flow AnalysisDeductive VerificationAutomated Theorem ProvingCompiler DesignCompiler Optimization ValidationCompiler SupportInterprocedural Optimization
There is a significant body of work devoted to testing, verifying, and certifying the correctness of optimizing compilers. The focus of such work is to determine if source code and optimized code have the same functional semantics. In this paper, we introduce the correctness-security gap, which arises when a compiler optimization preserves the functionality of but violates a security guarantee made by source code. We show with concrete code examples that several standard optimizations, which have been formally proved correct, in-habit this correctness-security gap. We analyze this gap and conclude that it arises due to techniques that model the state of the program but not the state of the underlying machine. We propose a broad research programme whose goal is to identify, understand, and mitigate the impact of security errors introduced by compiler optimizations. Our proposal includes research in testing, program analysis, theorem proving, and the development of new, accurate machine models for reasoning about the impact of compiler optimizations on security.
36
Shared memory consistency models: a tutorial
Sarita V. Adve, Kourosh Gharachorloo · Computer · 1996 · 1.1K citations
Dennis M. Ritchie, Ken Thompson · Communications of the ACM · 1983 · 970 citations
Cross-VM side channels and their use to extract private keys
Yinqian Zhang, Ari Juels, Michael K. Reiter et al. · 2012 · 785 citations
Formal certification of a compiler back-end or
Xavier Leroy · 2006 · 652 citations
Ken Thompson · Communications of the ACM · 1984 · 648 citations · Full text