]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:15:20 +0000 (08:15 +0200)
commit467f902643f58052ee7613ac547eb5a95cf832a2
tree332397828a8be732a8c99c9c9f9360151ce08eb7
parent98fd62e0a15727a39dd62b41290b7bde8b41bcfe
arm64: use the correct function type for __arm64_sys_ni_syscall

[ Upstream commit 1e29ab3186e33c77dbb2d7566172a205b59fa390 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/kernel/sys.c
arch/arm64/kernel/sys32.c