summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorDominik Brodowski2018-03-17 15:18:30 +0100
committerDominik Brodowski2018-04-02 20:15:01 +0200
commit6b27aef09fea32b805a8c81287b1bb80362dadb0 (patch)
treec7188fcb528eeb261b62bbbfebb5466881849c0a /kernel/fork.c
parentkernel: open-code sys_rt_sigpending() in sys_sigpending() (diff)
downloadkernel-qcow2-linux-6b27aef09fea32b805a8c81287b1bb80362dadb0.tar.gz
kernel-qcow2-linux-6b27aef09fea32b805a8c81287b1bb80362dadb0.tar.xz
kernel-qcow2-linux-6b27aef09fea32b805a8c81287b1bb80362dadb0.zip
kexec: call do_kexec_load() in compat syscall directly
do_kexec_load() can be called directly by compat_sys_kexec() as long as the same parameters checks are completed which are currently handled (also) by sys_kexec(). Therefore, move those to kexec_load_check(), call that newly introduced helper function from both sys_kexec() and compat_sys_kexec(), and duplicate the remaining code from sys_kexec() in compat_sys_kexec(). This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.GA17492@light.dominikbrodowski.net Cc: Eric Biederman <ebiederm@xmission.com> Cc: kexec@lists.infradead.org Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions