]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: use the correct function type for __arm64_sys_ni_syscall
authorSami Tolvanen <samitolvanen@google.com>
Fri, 24 May 2019 22:11:18 +0000 (15:11 -0700)
committerWill Deacon <will.deacon@arm.com>
Wed, 29 May 2019 12:46:00 +0000 (13:46 +0100)
commit5778e0e793fa8ee39fe5e52639b58a370c9b5d52
tree1afbe4c0b12c895cf99c20f0ef80616a3fbd73e1
parentb130e6f91d5e522294d9c2f158cd6f8e410d828d
arm64: use the correct function type for __arm64_sys_ni_syscall

Calling sys_ni_syscall through a syscall_fn_t pointer trips indirect
call Control-Flow Integrity checking due to a function type
mismatch. Use SYSCALL_DEFINE0 for __arm64_sys_ni_syscall instead and
remove the now unnecessary casts.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/sys.c
arch/arm64/kernel/sys32.c