Dominik Brodowski
ab641afa73
fs: add do_compat_futimesat() helper; remove in-kernel call to compat syscall
...
Using the fs-internal do_compat_futimesat() helper allows us to get rid of
the fs-internal call to the compat_sys_futimesat() syscall.
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:44 +02:00
Dominik Brodowski
570484bfe8
fs: add do_compat_signalfd4() helper; remove in-kernel call to compat syscall
...
Using the fs-internal do_compat_signalfd4() helper allows us to get rid of
the fs-internal call to the compat_sys_signalfd4() syscall.
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:43 +02:00
Dominik Brodowski
05585e4495
fs: add do_compat_select() helper; remove in-kernel call to compat syscall
...
Using the fs-internal do_compat_select() helper allows us to get rid of
the fs-internal call to the compat_sys_select() syscall.
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:42 +02:00
Dominik Brodowski
e02af2ff65
fs: add do_compat_fcntl64() helper; remove in-kernel call to compat syscall
...
Using the fs-internal do_compat_fcntl64() helper allows us to get rid of
the fs-internal call to the compat_sys_fcntl64() syscall.
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:42 +02:00
Dominik Brodowski
4bdb9acabf
fs: add kern_select() helper; remove in-kernel call to sys_select()
...
Using this helper allows us to avoid the in-kernel call to the sys_umount()
syscall.
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:41 +02:00
Dominik Brodowski
30cfe4ef8b
fs: add do_vmsplice() helper; remove in-kernel call to syscall
...
Using the fs-internal do_vmsplice() helper allows us to get rid of the
fs-internal call to the sys_vmsplice() syscall.
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:40 +02:00
Dominik Brodowski
98e5f7bd2c
fs: add do_lookup_dcookie() helper; remove in-kernel call to syscall
...
Using the fs-internal do_lookup_dcookie() helper allows us to get rid of
fs-internal calls to the sys_lookup_dcookie() syscall.
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:39 +02:00
Dominik Brodowski
2fc96f8331
fs: add do_eventfd() helper; remove internal call to sys_eventfd()
...
Using this helper removes an in-kernel call to the sys_eventfd() syscall.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:39 +02:00
Dominik Brodowski
52fb6db0fd
fs: add do_signalfd4() helper; remove internal calls to sys_signalfd4()
...
Using this helper removes in-kernel calls to the sys_signalfd4() syscall
function.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:38 +02:00
Dominik Brodowski
791eb22eef
fs: add do_epoll_*() helpers; remove internal calls to sys_epoll_*()
...
Using the helper functions do_epoll_create() and do_epoll_wait() allows us
to remove in-kernel calls to the related syscall functions.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:37 +02:00
Dominik Brodowski
f13903587c
fs: add do_futimesat() helper; remove internal call to sys_futimesat()
...
Using this helper removes the in-kernel call to the sys_futimesat()
syscall.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:37 +02:00
Dominik Brodowski
ee81feb64e
fs: add do_renameat2() helper; remove internal call to sys_renameat2()
...
Using this helper removes in-kernel calls to the sys_renameat2() syscall.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:36 +02:00
Dominik Brodowski
0a216dd1cf
fs: add do_pipe2() helper; remove internal call to sys_pipe2()
...
Using this helper removes an in-kernel call to the sys_pipe2() syscall.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:35 +02:00
Dominik Brodowski
2dae024806
fs: add do_readlinkat() helper; remove internal call to sys_readlinkat()
...
Using the do_readlinkat() helper removes an in-kernel call to the
sys_readlinkat() syscall.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:34 +02:00
Dominik Brodowski
af03c4acb7
mm: add kernel_[sg]et_mempolicy() helpers; remove in-kernel calls to syscalls
...
Using the mm-internal kernel_[sg]et_mempolicy() helper allows us to get
rid of the mm-internal calls to the sys_[sg]et_mempolicy() syscalls.
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: linux-mm@kvack.org
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:34 +02:00
Dominik Brodowski
e7dc9ad6e9
mm: add kernel_mbind() helper; remove in-kernel call to syscall
...
Using the mm-internal kernel_mbind() helper allows us to get rid of the
mm-internal call to the sys_mbind() syscall.
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: linux-mm@kvack.org
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:33 +02:00
Dominik Brodowski
7addf44388
mm: add kernel_move_pages() helper, move compat syscall to mm/migrate.c
...
Move compat_sys_move_pages() to mm/migrate.c and make it call a newly
introduced helper -- kernel_move_pages() -- instead of the syscall.
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: linux-mm@kvack.org
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:32 +02:00
Dominik Brodowski
b6e9b0babb
mm: add kernel_migrate_pages() helper, move compat syscall to mm/mempolicy.c
...
Move compat_sys_migrate_pages() to mm/mempolicy.c and make it call a newly
introduced helper -- kernel_migrate_pages() -- instead of the syscall.
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: linux-mm@kvack.org
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:31 +02:00
Dominik Brodowski
7d4dd4f159
sched: add do_sched_yield() helper; remove in-kernel call to sched_yield()
...
Using the sched-internal do_sched_yield() helper allows us to get rid of
the sched-internal call to the sys_sched_yield() syscall.
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: Ingo Molnar <mingo@redhat.com >
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:31 +02:00
Dominik Brodowski
e530dca584
kernel: provide ksys_*() wrappers for syscalls called by kernel/uid16.c
...
Using these helpers allows us to avoid the in-kernel calls to these
syscalls: sys_setregid(), sys_setgid(), sys_setreuid(), sys_setuid(),
sys_setresuid(), sys_setresgid(), sys_setfsuid(), and sys_setfsgid().
The ksys_ prefix denotes that these function are meant as a drop-in
replacement for the syscall. In particular, they use the same calling
convention.
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: Al Viro <viro@ZenIV.linux.org.uk >
Cc: Eric W. Biederman <ebiederm@xmission.com >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:30 +02:00
Dominik Brodowski
6203deb0a7
kernel: add do_compat_sigaltstack() helper; remove in-kernel call to compat syscall
...
Using this helper allows us to avoid the in-kernel call to the
compat_sys_sigaltstack() syscall.
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 W. Biederman" <ebiederm@xmission.com >
Cc: Al Viro <viro@zeniv.linux.org.uk >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:29 +02:00
Dominik Brodowski
192c58073d
kernel: add do_getpgid() helper; remove internal call to sys_getpgid()
...
Using the do_getpgid() helper removes an in-kernel call to the
sys_getpgid() syscall.
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: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:28 +02:00
Dominik Brodowski
31c213f210
ipc: add msgsnd syscall/compat_syscall wrappers
...
Provide ksys_msgsnd() and compat_ksys_msgsnd() wrappers to avoid in-kernel
calls to these syscalls. The ksys_ prefix denotes that these functions are
meant as a drop-in replacement for the syscalls. In particular, they use
the same calling convention as sys_msgsnd() and compat_sys_msgsnd().
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:28 +02:00
Dominik Brodowski
078faac9e8
ipc: add msgrcv syscall/compat_syscall wrappers
...
Provide ksys_msgrcv() and compat_ksys_msgrcv() wrappers to avoid in-kernel
calls to these syscalls. The ksys_ prefix denotes that these functions are
meant as a drop-in replacement for the syscalls. In particular, they use
the same calling convention as sys_msgrcv() and compat_sys_msgrcv().
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:27 +02:00
Dominik Brodowski
e340db5648
ipc: add msgctl syscall/compat_syscall wrappers
...
Provide ksys_msgctl() and compat_ksys_msgctl() wrappers to avoid in-kernel
calls to these syscalls. The ksys_ prefix denotes that these functions are
meant as a drop-in replacement for the syscalls. In particular, they use
the same calling convention as sys_msgctl() and compat_sys_msgctl().
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: Al Viro <viro@zeniv.linux.org.uk >
Cc: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:26 +02:00