]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: use the correct function type in SYSCALL_DEFINE0
authorSami Tolvanen <samitolvanen@google.com>
Fri, 24 May 2019 22:11:17 +0000 (15:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:15:20 +0000 (08:15 +0200)
commit98fd62e0a15727a39dd62b41290b7bde8b41bcfe
tree651572397936e8253b2cf3511b7591998b6a3c2b
parentc5fdfaedecc2382b1cb1bcfae790798d9ad14b85
arm64: use the correct function type in SYSCALL_DEFINE0

[ Upstream commit 0e358bd7b7ebd27e491dabed938eae254c17fe3b ]

Although a syscall defined using SYSCALL_DEFINE0 doesn't accept
parameters, use the correct function type to avoid indirect call
type mismatches with Control-Flow Integrity checking.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/include/asm/syscall_wrapper.h