Re: [PATCH v5 03/18] mm: add generic function_nocfi macro

2021-04-06 Thread Mark Rutland
On Thu, Apr 01, 2021 at 04:32:01PM -0700, Sami Tolvanen wrote: > With CONFIG_CFI_CLANG, the compiler replaces function addresses > in instrumented C code with jump table addresses. This means that > __pa_symbol(function) returns the physical address of the jump table > entry instead of the actual

Re: [PATCH v5 03/18] mm: add generic function_nocfi macro

2021-04-02 Thread Christoph Hellwig
Thanks, this looks much better than the earlier naming: Acked-by: Christoph Hellwig

[PATCH v5 03/18] mm: add generic function_nocfi macro

2021-04-01 Thread Sami Tolvanen
With CONFIG_CFI_CLANG, the compiler replaces function addresses in instrumented C code with jump table addresses. This means that __pa_symbol(function) returns the physical address of the jump table entry instead of the actual function, which may not work as the jump table code will immediately