diff options
author | Sami Tolvanen <[email protected]> | 2019-09-13 14:14:02 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-10-11 12:52:32 +0200 |
commit | f53e2cd0b8ab7d9e390414470bdbd830f660133f (patch) | |
tree | a29b5460e3a96c0b6a94b0e40e44f61d00751966 /lib/memory-notifier-error-inject.c | |
parent | 6e4847640c6aebcaa2d9b3686cecc91b41f09269 (diff) |
x86/mm: Use the correct function type for native_set_fixmap()
We call native_set_fixmap indirectly through the function pointer
struct pv_mmu_ops::set_fixmap, which expects the first parameter to be
'unsigned' instead of 'enum fixed_addresses'. This patch changes the
function type for native_set_fixmap to match the pointer, which fixes
indirect call mismatches with Control-Flow Integrity (CFI) checking.
Signed-off-by: Sami Tolvanen <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: H . Peter Anvin <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions