On Mon, May 16, 2022 at 12:39:19PM -0700, Sami Tolvanen wrote:
quoted
quoted
With the current compiler patch, LLVM sets up function arguments after
the CFI check. if it's a problem, we can look into changing that.
Yes, please fix that. Again see that same patch for why this is a
problem. Objtool can trivially find retpoline calls, but finding this
kCFI gadget is going to be hard work. If you ensure they're
unconditionally stuck together, then the problem goes away find one,
finds the other.
You can use .kcfi_traps to locate the check right now, but I agree,
it's not quite ideal.
Oohh, indeed. Looking at that, I think .kcfi_traps would be better as
relative offsets; eg. 'addr = (void*)s + *s' like. Halfs the amount of
storage needed for it.
Also, that code can use a few {} extra.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel