]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: fix function types in COND_SYSCALL
authorSami Tolvanen <samitolvanen@google.com>
Tue, 10 Sep 2019 22:40:44 +0000 (15:40 -0700)
committerWill Deacon <will@kernel.org>
Tue, 17 Sep 2019 11:11:50 +0000 (12:11 +0100)
commit06890e8669e1e3fd14e4b886882a0eff3cdcca14
treeb0857d724355e32bd3b6c065df3f4ea86d76f94c
parentef971dfb5e3f7f5866c25a07b3b5f83fd0573244
arm64: fix function types in COND_SYSCALL

Define a weak function in COND_SYSCALL instead of a weak alias to
sys_ni_syscall, which has an incompatible type. This fixes indirect
call mismatches with Control-Flow Integrity (CFI) checking.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/syscall_wrapper.h