Re: [PATCH 05/15] x86: Implement function_nocfi
From: Borislav Petkov
Date: Fri Apr 16 2021 - 18:03:06 EST
On Fri, Apr 16, 2021 at 02:49:23PM -0700, Sami Tolvanen wrote:
> __nocfi only disables CFI checking in a function, the compiler still
> changes function addresses to point to the CFI jump table, which is
> why we need function_nocfi().
So call it __func_addr() or get_function_addr() or so, so that at least
it is clear what this does.
Also, am I going to get a steady stream of patches adding that wrapper
to function names or is this it? IOW, have you built an allyesconfig to
see how many locations need touching?
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette