6 ms·
Would it have been better if the return addresses were put in a separate stack than the function variables to begin with?
by alok-g 9y ago
Would it have been better if the return addresses were put in a separate stack than the function variables to begin with?
- willvarfar 9y agoThis is what -fsanitize=safe-stack does in software https://clang.llvm.org/docs/SafeStack.html https://clang.llvm.org/docs/SafeStack.html and what the new Mill CPU does in hardware. On the Mill, the return addresses are on a hardware-managed call stack that cannot be corrupted by the program.