diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2018-03-17 15:18:30 +0100 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2018-04-02 20:15:01 +0200 |
commit | 6b27aef09fea32b805a8c81287b1bb80362dadb0 (patch) | |
tree | c7188fcb528eeb261b62bbbfebb5466881849c0a /arch/x86/ia32 | |
parent | d53238cd51a80f6f2e5b9d64830c62e2086787bd (diff) |
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 'arch/x86/ia32')
0 files changed, 0 insertions, 0 deletions