]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Move system_call_exception() to syscall.c
authorXiu Jianfeng <xiujianfeng@huawei.com>
Fri, 1 Jul 2022 08:24:34 +0000 (16:24 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 Jul 2022 06:22:15 +0000 (16:22 +1000)
commit8364543c2d7b92d3c5fabd6a970fc3c79bf56e33
tree0a799169a408e2c2a9c897f5e5ad19356bf324ae
parent980b7d0f3d12e8aceb9990dea1d295421a8625cd
powerpc: Move system_call_exception() to syscall.c

This is a lead-up patch to enable syscall stack randomization, which
uses alloca() and makes the compiler add unconditional stack canaries
on syscall entry. In order to avoid triggering needless checks and
slowing down the entry path, the feature needs to disable stack
protector at the compilation unit level as there is no general way to
control stack protector coverage with a function attribute.

So move system_call_exception() to syscall.c to avoid affecting other
functions in interrupt.c.

Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220701082435.126596-2-xiujianfeng@huawei.com
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/interrupt.c
arch/powerpc/kernel/syscall.c [new file with mode: 0644]