]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: fix syscall_fn_t type
authorSami Tolvanen <samitolvanen@google.com>
Fri, 24 May 2019 22:11:16 +0000 (15:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:15:20 +0000 (08:15 +0200)
commitc5fdfaedecc2382b1cb1bcfae790798d9ad14b85
treea8f445fc0e82d7486b684384432c900335e96ba6
parentdf6384e0f42ea8921a37b0e752502d01f59a93b2
arm64: fix syscall_fn_t type

[ Upstream commit 8ef8f368ce72b5e17f7c1f1ef15c38dcfd0fef64 ]

Syscall wrappers in <asm/syscall_wrapper.h> use const struct pt_regs *
as the argument type. Use const in syscall_fn_t as well to fix indirect
call type mismatches with Control-Flow Integrity checking.

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