[PATCH] D49793: [AArch64] - return address signing

Luke Cheeseman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 26 03:31:44 PDT 2018


LukeCheeseman added inline comments.


================
Comment at: include/clang/Frontend/CodeGenOptions.h:114
+    Partial,        // Sign the return address of functions that spill LR
+    All             // Sign the return address of all functions
+  };
----------------
kcc wrote:
> what's the purpose of signing LR if it is not spilled? 
Assuming you are in a context where you have managed to gain control of the flow of execution. If you don't sign functions that spill LR then those functions become good candidates for finding gadgets as now execution can start from any point in that function.


https://reviews.llvm.org/D49793





More information about the cfe-commits mailing list