diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2018-04-09 13:51:43 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-04-09 17:47:28 +0300 |
commit | 5ac9efa3c50d7caff9f3933bb8a3ad1139d92d92 (patch) | |
tree | 8911252894d4f412bf6e2f1f1b4378a9f366d966 /arch/x86/entry/syscalls/syscall_64.tbl | |
parent | e145242ea0df6b7d28fd7186e61d6840fa4bb06e (diff) | |
download | linux-5ac9efa3c50d7caff9f3933bb8a3ad1139d92d92.tar.xz |
syscalls/core, syscalls/x86: Clean up compat syscall stub naming convention
Tidy the naming convention for compat syscall subs. Hints which describe
the purpose of the stub go in front and receive a double underscore to
denote that they are generated on-the-fly by the COMPAT_SYSCALL_DEFINEx()
macro.
For the generic case, this means:
t kernel_waitid # common C function (see kernel/exit.c)
__do_compat_sys_waitid # inlined helper doing the actual work
# (takes original parameters as declared)
T __se_compat_sys_waitid # sign-extending C function calling inlined
# helper (takes parameters of type long,
# casts them to unsigned long and then to
# the declared type)
T compat_sys_waitid # alias to __se_compat_sys_waitid()
# (taking parameters as declared), to
# be included in syscall table
For x86, the naming is as follows:
t kernel_waitid # common C function (see kernel/exit.c)
__do_compat_sys_waitid # inlined helper doing the actual work
# (takes original parameters as declared)
t __se_compat_sys_waitid # sign-extending C function calling inlined
# helper (takes parameters of type long,
# casts them to unsigned long and then to
# the declared type)
T __ia32_compat_sys_waitid # IA32_EMULATION 32-bit-ptregs -> C stub,
# calls __se_compat_sys_waitid(); to be
# included in syscall table
T __x32_compat_sys_waitid # x32 64-bit-ptregs -> C stub, calls
# __se_compat_sys_waitid(); to be included
# in syscall table
If only one of IA32_EMULATION and x32 is enabled, __se_compat_sys_waitid()
may be inlined into the stub __{ia32,x32}_compat_sys_waitid().
Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180409105145.5364-3-linux@dominikbrodowski.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/entry/syscalls/syscall_64.tbl')
-rw-r--r-- | arch/x86/entry/syscalls/syscall_64.tbl | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/arch/x86/entry/syscalls/syscall_64.tbl b/arch/x86/entry/syscalls/syscall_64.tbl index a83c0f7f462f..73f4951fc2fa 100644 --- a/arch/x86/entry/syscalls/syscall_64.tbl +++ b/arch/x86/entry/syscalls/syscall_64.tbl @@ -342,43 +342,43 @@ # # x32-specific system call numbers start at 512 to avoid cache impact -# for native 64-bit operation. The __compat_sys_x32 stubs are created +# for native 64-bit operation. The __x32_compat_sys stubs are created # on-the-fly for compat_sys_*() compatibility system calls if X86_X32 # is defined. # -512 x32 rt_sigaction __compat_sys_x32_rt_sigaction +512 x32 rt_sigaction __x32_compat_sys_rt_sigaction 513 x32 rt_sigreturn sys32_x32_rt_sigreturn -514 x32 ioctl __compat_sys_x32_ioctl -515 x32 readv __compat_sys_x32_readv -516 x32 writev __compat_sys_x32_writev -517 x32 recvfrom __compat_sys_x32_recvfrom -518 x32 sendmsg __compat_sys_x32_sendmsg -519 x32 recvmsg __compat_sys_x32_recvmsg -520 x32 execve __compat_sys_x32_execve/ptregs -521 x32 ptrace __compat_sys_x32_ptrace -522 x32 rt_sigpending __compat_sys_x32_rt_sigpending -523 x32 rt_sigtimedwait __compat_sys_x32_rt_sigtimedwait -524 x32 rt_sigqueueinfo __compat_sys_x32_rt_sigqueueinfo -525 x32 sigaltstack __compat_sys_x32_sigaltstack -526 x32 timer_create __compat_sys_x32_timer_create -527 x32 mq_notify __compat_sys_x32_mq_notify -528 x32 kexec_load __compat_sys_x32_kexec_load -529 x32 waitid __compat_sys_x32_waitid -530 x32 set_robust_list __compat_sys_x32_set_robust_list -531 x32 get_robust_list __compat_sys_x32_get_robust_list -532 x32 vmsplice __compat_sys_x32_vmsplice -533 x32 move_pages __compat_sys_x32_move_pages -534 x32 preadv __compat_sys_x32_preadv64 -535 x32 pwritev __compat_sys_x32_pwritev64 -536 x32 rt_tgsigqueueinfo __compat_sys_x32_rt_tgsigqueueinfo -537 x32 recvmmsg __compat_sys_x32_recvmmsg -538 x32 sendmmsg __compat_sys_x32_sendmmsg -539 x32 process_vm_readv __compat_sys_x32_process_vm_readv -540 x32 process_vm_writev __compat_sys_x32_process_vm_writev -541 x32 setsockopt __compat_sys_x32_setsockopt -542 x32 getsockopt __compat_sys_x32_getsockopt -543 x32 io_setup __compat_sys_x32_io_setup -544 x32 io_submit __compat_sys_x32_io_submit -545 x32 execveat __compat_sys_x32_execveat/ptregs -546 x32 preadv2 __compat_sys_x32_preadv64v2 -547 x32 pwritev2 __compat_sys_x32_pwritev64v2 +514 x32 ioctl __x32_compat_sys_ioctl +515 x32 readv __x32_compat_sys_readv +516 x32 writev __x32_compat_sys_writev +517 x32 recvfrom __x32_compat_sys_recvfrom +518 x32 sendmsg __x32_compat_sys_sendmsg +519 x32 recvmsg __x32_compat_sys_recvmsg +520 x32 execve __x32_compat_sys_execve/ptregs +521 x32 ptrace __x32_compat_sys_ptrace +522 x32 rt_sigpending __x32_compat_sys_rt_sigpending +523 x32 rt_sigtimedwait __x32_compat_sys_rt_sigtimedwait +524 x32 rt_sigqueueinfo __x32_compat_sys_rt_sigqueueinfo +525 x32 sigaltstack __x32_compat_sys_sigaltstack +526 x32 timer_create __x32_compat_sys_timer_create +527 x32 mq_notify __x32_compat_sys_mq_notify +528 x32 kexec_load __x32_compat_sys_kexec_load +529 x32 waitid __x32_compat_sys_waitid +530 x32 set_robust_list __x32_compat_sys_set_robust_list +531 x32 get_robust_list __x32_compat_sys_get_robust_list +532 x32 vmsplice __x32_compat_sys_vmsplice +533 x32 move_pages __x32_compat_sys_move_pages +534 x32 preadv __x32_compat_sys_preadv64 +535 x32 pwritev __x32_compat_sys_pwritev64 +536 x32 rt_tgsigqueueinfo __x32_compat_sys_rt_tgsigqueueinfo +537 x32 recvmmsg __x32_compat_sys_recvmmsg +538 x32 sendmmsg __x32_compat_sys_sendmmsg +539 x32 process_vm_readv __x32_compat_sys_process_vm_readv +540 x32 process_vm_writev __x32_compat_sys_process_vm_writev +541 x32 setsockopt __x32_compat_sys_setsockopt +542 x32 getsockopt __x32_compat_sys_getsockopt +543 x32 io_setup __x32_compat_sys_io_setup +544 x32 io_submit __x32_compat_sys_io_submit +545 x32 execveat __x32_compat_sys_execveat/ptregs +546 x32 preadv2 __x32_compat_sys_preadv64v2 +547 x32 pwritev2 __x32_compat_sys_pwritev64v2 |