ShadowCallStack
A Clang instrumentation that keeps return addresses on a separate, hidden stack so a stack overwrite can't redirect ret.
With -fsanitize=shadow-call-stack, every function prologue writes the return address to a second stack and the epilogue reads it back from there rather than from the regular one. A buffer overflow can scribble over the old copy all it likes — nobody uses it. It is a direct answer to ROP.
The trick needs a register that points at the shadow stack and that nothing else touches. On AArch64 that is x18, which AAPCS64 already sets aside as the platform register, so the whole program, libraries included, must be built with -ffixed-x18. An x86-64 variant existed for a while but was dropped in LLVM 9 after it proved bypassable. Android uses it in the kernel and parts of userspace; Intel's CET does the same job in silicon.