Re: [PATCH v5 13/18] arm64: use function_nocfi with __pa_symbol

2021-04-06 Thread Mark Rutland
On Thu, Apr 01, 2021 at 04:32:11PM -0700, Sami Tolvanen wrote: > With CONFIG_CFI_CLANG, the compiler replaces function address > references with the address of the function's CFI jump table > entry. This means that __pa_symbol(function) returns the physical > address of the jump table entry, which

[PATCH v5 13/18] arm64: use function_nocfi with __pa_symbol

2021-04-01 Thread Sami Tolvanen
With CONFIG_CFI_CLANG, the compiler replaces function address references with the address of the function's CFI jump table entry. This means that __pa_symbol(function) returns the physical address of the jump table entry, which can lead to address space confusion as the jump table points to the