diff options
| author | Sami Tolvanen <[email protected]> | 2021-04-08 18:28:35 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2021-04-08 23:04:22 +0000 |
| commit | 6c4df54ed293f6383efb97fca0e643b8dcbc3769 (patch) | |
| tree | 82f453876971aeb991bfc1210db1e8a5c2f1620d /drivers/firmware/psci/psci.c | |
| parent | treewide: Change list_sort to use const pointers (diff) | |
| download | kernel-6c4df54ed293f6383efb97fca0e643b8dcbc3769.tar.gz kernel-6c4df54ed293f6383efb97fca0e643b8dcbc3769.zip | |
lkdtm: use function_nocfi
To ensure we take the actual address of a function in kernel text,
use function_nocfi. Otherwise, with CONFIG_CFI_CLANG, the compiler
replaces the address with a pointer to the CFI jump table, which is
actually in the module when compiled with CONFIG_LKDTM=m.
Signed-off-by: Sami Tolvanen <[email protected]>
Acked-by: Kees Cook <[email protected]>
Tested-by: Nathan Chancellor <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/firmware/psci/psci.c')
0 files changed, 0 insertions, 0 deletions
