Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'asm-generic-6.11' into loongarch-next

LoongArch architecture changes for 6.11 depend on the asm-generic
changes to avoid confliction, so merge them to create a base.

+1227 -1275
+1 -1
Makefile
··· 1219 1219 $(Q)$(srctree)/scripts/remove-stale-files 1220 1220 1221 1221 # Support for using generic headers in asm-generic 1222 - asm-generic := -f $(srctree)/scripts/Makefile.asm-generic obj 1222 + asm-generic := -f $(srctree)/scripts/Makefile.asm-headers obj 1223 1223 1224 1224 PHONY += asm-generic uapi-asm-generic 1225 1225 asm-generic: uapi-asm-generic
+2
arch/arc/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += syscall_table_32.h 3 + 2 4 generic-y += extable.h 3 5 generic-y += kvm_para.h 4 6 generic-y += mcs_spinlock.h
+14
arch/arc/include/asm/unistd.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 + #ifndef _ASM_ARC_UNISTD_H 3 + #define _ASM_ARC_UNISTD_H 4 + 5 + #include <uapi/asm/unistd.h> 6 + 7 + #define __ARCH_WANT_STAT64 8 + #define __ARCH_WANT_SYS_CLONE 9 + #define __ARCH_WANT_SYS_VFORK 10 + #define __ARCH_WANT_SYS_FORK 11 + 12 + #define NR_syscalls __NR_syscalls 13 + 14 + #endif
+2
arch/arc/include/uapi/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += unistd_32.h 3 + 2 4 generic-y += ucontext.h
+1 -43
arch/arc/include/uapi/asm/unistd.h
··· 7 7 * published by the Free Software Foundation. 8 8 */ 9 9 10 - /******** no-legacy-syscalls-ABI *******/ 11 - 12 - /* 13 - * Non-typical guard macro to enable inclusion twice in ARCH sys.c 14 - * That is how the Generic syscall wrapper generator works 15 - */ 16 - #if !defined(_UAPI_ASM_ARC_UNISTD_H) || defined(__SYSCALL) 17 - #define _UAPI_ASM_ARC_UNISTD_H 18 - 19 - #define __ARCH_WANT_RENAMEAT 20 - #define __ARCH_WANT_STAT64 21 - #define __ARCH_WANT_SET_GET_RLIMIT 22 - #define __ARCH_WANT_SYS_EXECVE 23 - #define __ARCH_WANT_SYS_CLONE 24 - #define __ARCH_WANT_SYS_CLONE3 25 - #define __ARCH_WANT_SYS_VFORK 26 - #define __ARCH_WANT_SYS_FORK 27 - #define __ARCH_WANT_TIME32_SYSCALLS 28 - 29 - #define sys_mmap2 sys_mmap_pgoff 30 - 31 - #include <asm-generic/unistd.h> 32 - 33 - #define NR_syscalls __NR_syscalls 34 - 35 - /* Generic syscall (fs/filesystems.c - lost in asm-generic/unistd.h */ 36 - #define __NR_sysfs (__NR_arch_specific_syscall + 3) 37 - 38 - /* ARC specific syscall */ 39 - #define __NR_cacheflush (__NR_arch_specific_syscall + 0) 40 - #define __NR_arc_settls (__NR_arch_specific_syscall + 1) 41 - #define __NR_arc_gettls (__NR_arch_specific_syscall + 2) 42 - #define __NR_arc_usr_cmpxchg (__NR_arch_specific_syscall + 4) 43 - 44 - __SYSCALL(__NR_cacheflush, sys_cacheflush) 45 - __SYSCALL(__NR_arc_settls, sys_arc_settls) 46 - __SYSCALL(__NR_arc_gettls, sys_arc_gettls) 47 - __SYSCALL(__NR_arc_usr_cmpxchg, sys_arc_usr_cmpxchg) 48 - __SYSCALL(__NR_sysfs, sys_sysfs) 49 - 50 - #undef __SYSCALL 51 - 52 - #endif 10 + #include <asm/unistd_32.h>
+3
arch/arc/kernel/Makefile.syscalls
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 3 + syscall_abis_32 += arc time32 renameat stat64 rlimit
+3 -2
arch/arc/kernel/sys.c
··· 8 8 9 9 #define sys_clone sys_clone_wrapper 10 10 #define sys_clone3 sys_clone3_wrapper 11 + #define sys_mmap2 sys_mmap_pgoff 11 12 12 - #undef __SYSCALL 13 13 #define __SYSCALL(nr, call) [nr] = (call), 14 + #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 14 15 15 16 void *sys_call_table[NR_syscalls] = { 16 17 [0 ... NR_syscalls-1] = sys_ni_syscall, 17 - #include <asm/unistd.h> 18 + #include <asm/syscall_table_32.h> 18 19 };
-1
arch/arm/include/asm/unistd.h
··· 37 37 #define __ARCH_WANT_SYS_FORK 38 38 #define __ARCH_WANT_SYS_VFORK 39 39 #define __ARCH_WANT_SYS_CLONE 40 - #define __ARCH_WANT_SYS_CLONE3 41 40 42 41 /* 43 42 * Unimplemented (or alternatively implemented) syscalls
+8
arch/arm64/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += syscall_table_32.h 3 + syscall-y += syscall_table_64.h 4 + 5 + # arm32 syscall table used by lib/compat_audit.c: 6 + syscall-y += unistd_32.h 7 + # same constants with prefixes, used by vdso, seccomp and sigreturn: 8 + syscall-y += unistd_compat_32.h 9 + 2 10 generic-y += early_ioremap.h 3 11 generic-y += mcs_spinlock.h 4 12 generic-y += qrwlock.h
+7 -6
arch/arm64/include/asm/seccomp.h
··· 8 8 #ifndef _ASM_SECCOMP_H 9 9 #define _ASM_SECCOMP_H 10 10 11 - #include <asm/unistd.h> 11 + #include <asm/unistd_compat_32.h> 12 12 13 13 #ifdef CONFIG_COMPAT 14 - #define __NR_seccomp_read_32 __NR_compat_read 15 - #define __NR_seccomp_write_32 __NR_compat_write 16 - #define __NR_seccomp_exit_32 __NR_compat_exit 17 - #define __NR_seccomp_sigreturn_32 __NR_compat_rt_sigreturn 14 + #define __NR_seccomp_read_32 __NR_compat32_read 15 + #define __NR_seccomp_write_32 __NR_compat32_write 16 + #define __NR_seccomp_exit_32 __NR_compat32_exit 17 + #define __NR_seccomp_sigreturn_32 __NR_compat32_rt_sigreturn 18 18 #endif /* CONFIG_COMPAT */ 19 19 20 20 #include <asm-generic/seccomp.h> ··· 23 23 #define SECCOMP_ARCH_NATIVE_NR NR_syscalls 24 24 #define SECCOMP_ARCH_NATIVE_NAME "aarch64" 25 25 #ifdef CONFIG_COMPAT 26 + #include <asm/unistd_compat_32.h> 26 27 # define SECCOMP_ARCH_COMPAT AUDIT_ARCH_ARM 27 - # define SECCOMP_ARCH_COMPAT_NR __NR_compat_syscalls 28 + # define SECCOMP_ARCH_COMPAT_NR __NR_compat32_syscalls 28 29 # define SECCOMP_ARCH_COMPAT_NAME "arm" 29 30 #endif 30 31
+2 -20
arch/arm64/include/asm/unistd.h
··· 17 17 #define __ARCH_WANT_SYS_VFORK 18 18 19 19 /* 20 - * Compat syscall numbers used by the AArch64 kernel. 21 - */ 22 - #define __NR_compat_restart_syscall 0 23 - #define __NR_compat_exit 1 24 - #define __NR_compat_read 3 25 - #define __NR_compat_write 4 26 - #define __NR_compat_gettimeofday 78 27 - #define __NR_compat_sigreturn 119 28 - #define __NR_compat_rt_sigreturn 173 29 - #define __NR_compat_clock_gettime 263 30 - #define __NR_compat_clock_getres 264 31 - #define __NR_compat_clock_gettime64 403 32 - #define __NR_compat_clock_getres_time64 406 33 - 34 - /* 35 20 * The following SVCs are ARM private. 36 21 */ 37 22 #define __ARM_NR_COMPAT_BASE 0x0f0000 38 23 #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE + 2) 39 24 #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5) 40 25 #define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800) 41 - 42 - #define __NR_compat_syscalls 463 43 26 #endif 44 27 45 28 #define __ARCH_WANT_SYS_CLONE 29 + #define __ARCH_WANT_NEW_STAT 46 30 47 - #ifndef __COMPAT_SYSCALL_NR 48 - #include <uapi/asm/unistd.h> 49 - #endif 31 + #include <asm/unistd_64.h> 50 32 51 33 #define NR_syscalls (__NR_syscalls)
+5 -934
arch/arm64/include/asm/unistd32.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 - /* 3 - * AArch32 (compat) system call definitions. 4 - * 5 - * Copyright (C) 2001-2005 Russell King 6 - * Copyright (C) 2012 ARM Ltd. 7 - */ 2 + #ifndef _UAPI__ASM_ARM_UNISTD_H 3 + #define _UAPI__ASM_ARM_UNISTD_H 8 4 9 - #ifndef __SYSCALL 10 - #define __SYSCALL(x, y) 11 - #endif 5 + #include <asm/unistd_32.h> 12 6 13 - #define __NR_restart_syscall 0 14 - __SYSCALL(__NR_restart_syscall, sys_restart_syscall) 15 - #define __NR_exit 1 16 - __SYSCALL(__NR_exit, sys_exit) 17 - #define __NR_fork 2 18 - __SYSCALL(__NR_fork, sys_fork) 19 - #define __NR_read 3 20 - __SYSCALL(__NR_read, sys_read) 21 - #define __NR_write 4 22 - __SYSCALL(__NR_write, sys_write) 23 - #define __NR_open 5 24 - __SYSCALL(__NR_open, compat_sys_open) 25 - #define __NR_close 6 26 - __SYSCALL(__NR_close, sys_close) 27 - /* 7 was sys_waitpid */ 28 - __SYSCALL(7, sys_ni_syscall) 29 - #define __NR_creat 8 30 - __SYSCALL(__NR_creat, sys_creat) 31 - #define __NR_link 9 32 - __SYSCALL(__NR_link, sys_link) 33 - #define __NR_unlink 10 34 - __SYSCALL(__NR_unlink, sys_unlink) 35 - #define __NR_execve 11 36 - __SYSCALL(__NR_execve, compat_sys_execve) 37 - #define __NR_chdir 12 38 - __SYSCALL(__NR_chdir, sys_chdir) 39 - /* 13 was sys_time */ 40 - __SYSCALL(13, sys_ni_syscall) 41 - #define __NR_mknod 14 42 - __SYSCALL(__NR_mknod, sys_mknod) 43 - #define __NR_chmod 15 44 - __SYSCALL(__NR_chmod, sys_chmod) 45 - #define __NR_lchown 16 46 - __SYSCALL(__NR_lchown, sys_lchown16) 47 - /* 17 was sys_break */ 48 - __SYSCALL(17, sys_ni_syscall) 49 - /* 18 was sys_stat */ 50 - __SYSCALL(18, sys_ni_syscall) 51 - #define __NR_lseek 19 52 - __SYSCALL(__NR_lseek, compat_sys_lseek) 53 - #define __NR_getpid 20 54 - __SYSCALL(__NR_getpid, sys_getpid) 55 - #define __NR_mount 21 56 - __SYSCALL(__NR_mount, sys_mount) 57 - /* 22 was sys_umount */ 58 - __SYSCALL(22, sys_ni_syscall) 59 - #define __NR_setuid 23 60 - __SYSCALL(__NR_setuid, sys_setuid16) 61 - #define __NR_getuid 24 62 - __SYSCALL(__NR_getuid, sys_getuid16) 63 - /* 25 was sys_stime */ 64 - __SYSCALL(25, sys_ni_syscall) 65 - #define __NR_ptrace 26 66 - __SYSCALL(__NR_ptrace, compat_sys_ptrace) 67 - /* 27 was sys_alarm */ 68 - __SYSCALL(27, sys_ni_syscall) 69 - /* 28 was sys_fstat */ 70 - __SYSCALL(28, sys_ni_syscall) 71 - #define __NR_pause 29 72 - __SYSCALL(__NR_pause, sys_pause) 73 - /* 30 was sys_utime */ 74 - __SYSCALL(30, sys_ni_syscall) 75 - /* 31 was sys_stty */ 76 - __SYSCALL(31, sys_ni_syscall) 77 - /* 32 was sys_gtty */ 78 - __SYSCALL(32, sys_ni_syscall) 79 - #define __NR_access 33 80 - __SYSCALL(__NR_access, sys_access) 81 - #define __NR_nice 34 82 - __SYSCALL(__NR_nice, sys_nice) 83 - /* 35 was sys_ftime */ 84 - __SYSCALL(35, sys_ni_syscall) 85 - #define __NR_sync 36 86 - __SYSCALL(__NR_sync, sys_sync) 87 - #define __NR_kill 37 88 - __SYSCALL(__NR_kill, sys_kill) 89 - #define __NR_rename 38 90 - __SYSCALL(__NR_rename, sys_rename) 91 - #define __NR_mkdir 39 92 - __SYSCALL(__NR_mkdir, sys_mkdir) 93 - #define __NR_rmdir 40 94 - __SYSCALL(__NR_rmdir, sys_rmdir) 95 - #define __NR_dup 41 96 - __SYSCALL(__NR_dup, sys_dup) 97 - #define __NR_pipe 42 98 - __SYSCALL(__NR_pipe, sys_pipe) 99 - #define __NR_times 43 100 - __SYSCALL(__NR_times, compat_sys_times) 101 - /* 44 was sys_prof */ 102 - __SYSCALL(44, sys_ni_syscall) 103 - #define __NR_brk 45 104 - __SYSCALL(__NR_brk, sys_brk) 105 - #define __NR_setgid 46 106 - __SYSCALL(__NR_setgid, sys_setgid16) 107 - #define __NR_getgid 47 108 - __SYSCALL(__NR_getgid, sys_getgid16) 109 - /* 48 was sys_signal */ 110 - __SYSCALL(48, sys_ni_syscall) 111 - #define __NR_geteuid 49 112 - __SYSCALL(__NR_geteuid, sys_geteuid16) 113 - #define __NR_getegid 50 114 - __SYSCALL(__NR_getegid, sys_getegid16) 115 - #define __NR_acct 51 116 - __SYSCALL(__NR_acct, sys_acct) 117 - #define __NR_umount2 52 118 - __SYSCALL(__NR_umount2, sys_umount) 119 - /* 53 was sys_lock */ 120 - __SYSCALL(53, sys_ni_syscall) 121 - #define __NR_ioctl 54 122 - __SYSCALL(__NR_ioctl, compat_sys_ioctl) 123 - #define __NR_fcntl 55 124 - __SYSCALL(__NR_fcntl, compat_sys_fcntl) 125 - /* 56 was sys_mpx */ 126 - __SYSCALL(56, sys_ni_syscall) 127 - #define __NR_setpgid 57 128 - __SYSCALL(__NR_setpgid, sys_setpgid) 129 - /* 58 was sys_ulimit */ 130 - __SYSCALL(58, sys_ni_syscall) 131 - /* 59 was sys_olduname */ 132 - __SYSCALL(59, sys_ni_syscall) 133 - #define __NR_umask 60 134 - __SYSCALL(__NR_umask, sys_umask) 135 - #define __NR_chroot 61 136 - __SYSCALL(__NR_chroot, sys_chroot) 137 - #define __NR_ustat 62 138 - __SYSCALL(__NR_ustat, compat_sys_ustat) 139 - #define __NR_dup2 63 140 - __SYSCALL(__NR_dup2, sys_dup2) 141 - #define __NR_getppid 64 142 - __SYSCALL(__NR_getppid, sys_getppid) 143 - #define __NR_getpgrp 65 144 - __SYSCALL(__NR_getpgrp, sys_getpgrp) 145 - #define __NR_setsid 66 146 - __SYSCALL(__NR_setsid, sys_setsid) 147 - #define __NR_sigaction 67 148 - __SYSCALL(__NR_sigaction, compat_sys_sigaction) 149 - /* 68 was sys_sgetmask */ 150 - __SYSCALL(68, sys_ni_syscall) 151 - /* 69 was sys_ssetmask */ 152 - __SYSCALL(69, sys_ni_syscall) 153 - #define __NR_setreuid 70 154 - __SYSCALL(__NR_setreuid, sys_setreuid16) 155 - #define __NR_setregid 71 156 - __SYSCALL(__NR_setregid, sys_setregid16) 157 - #define __NR_sigsuspend 72 158 - __SYSCALL(__NR_sigsuspend, sys_sigsuspend) 159 - #define __NR_sigpending 73 160 - __SYSCALL(__NR_sigpending, compat_sys_sigpending) 161 - #define __NR_sethostname 74 162 - __SYSCALL(__NR_sethostname, sys_sethostname) 163 - #define __NR_setrlimit 75 164 - __SYSCALL(__NR_setrlimit, compat_sys_setrlimit) 165 - /* 76 was compat_sys_getrlimit */ 166 - __SYSCALL(76, sys_ni_syscall) 167 - #define __NR_getrusage 77 168 - __SYSCALL(__NR_getrusage, compat_sys_getrusage) 169 - #define __NR_gettimeofday 78 170 - __SYSCALL(__NR_gettimeofday, compat_sys_gettimeofday) 171 - #define __NR_settimeofday 79 172 - __SYSCALL(__NR_settimeofday, compat_sys_settimeofday) 173 - #define __NR_getgroups 80 174 - __SYSCALL(__NR_getgroups, sys_getgroups16) 175 - #define __NR_setgroups 81 176 - __SYSCALL(__NR_setgroups, sys_setgroups16) 177 - /* 82 was compat_sys_select */ 178 - __SYSCALL(82, sys_ni_syscall) 179 - #define __NR_symlink 83 180 - __SYSCALL(__NR_symlink, sys_symlink) 181 - /* 84 was sys_lstat */ 182 - __SYSCALL(84, sys_ni_syscall) 183 - #define __NR_readlink 85 184 - __SYSCALL(__NR_readlink, sys_readlink) 185 - #define __NR_uselib 86 186 - __SYSCALL(__NR_uselib, sys_uselib) 187 - #define __NR_swapon 87 188 - __SYSCALL(__NR_swapon, sys_swapon) 189 - #define __NR_reboot 88 190 - __SYSCALL(__NR_reboot, sys_reboot) 191 - /* 89 was sys_readdir */ 192 - __SYSCALL(89, sys_ni_syscall) 193 - /* 90 was sys_mmap */ 194 - __SYSCALL(90, sys_ni_syscall) 195 - #define __NR_munmap 91 196 - __SYSCALL(__NR_munmap, sys_munmap) 197 - #define __NR_truncate 92 198 - __SYSCALL(__NR_truncate, compat_sys_truncate) 199 - #define __NR_ftruncate 93 200 - __SYSCALL(__NR_ftruncate, compat_sys_ftruncate) 201 - #define __NR_fchmod 94 202 - __SYSCALL(__NR_fchmod, sys_fchmod) 203 - #define __NR_fchown 95 204 - __SYSCALL(__NR_fchown, sys_fchown16) 205 - #define __NR_getpriority 96 206 - __SYSCALL(__NR_getpriority, sys_getpriority) 207 - #define __NR_setpriority 97 208 - __SYSCALL(__NR_setpriority, sys_setpriority) 209 - /* 98 was sys_profil */ 210 - __SYSCALL(98, sys_ni_syscall) 211 - #define __NR_statfs 99 212 - __SYSCALL(__NR_statfs, compat_sys_statfs) 213 - #define __NR_fstatfs 100 214 - __SYSCALL(__NR_fstatfs, compat_sys_fstatfs) 215 - /* 101 was sys_ioperm */ 216 - __SYSCALL(101, sys_ni_syscall) 217 - /* 102 was sys_socketcall */ 218 - __SYSCALL(102, sys_ni_syscall) 219 - #define __NR_syslog 103 220 - __SYSCALL(__NR_syslog, sys_syslog) 221 - #define __NR_setitimer 104 222 - __SYSCALL(__NR_setitimer, compat_sys_setitimer) 223 - #define __NR_getitimer 105 224 - __SYSCALL(__NR_getitimer, compat_sys_getitimer) 225 - #define __NR_stat 106 226 - __SYSCALL(__NR_stat, compat_sys_newstat) 227 - #define __NR_lstat 107 228 - __SYSCALL(__NR_lstat, compat_sys_newlstat) 229 - #define __NR_fstat 108 230 - __SYSCALL(__NR_fstat, compat_sys_newfstat) 231 - /* 109 was sys_uname */ 232 - __SYSCALL(109, sys_ni_syscall) 233 - /* 110 was sys_iopl */ 234 - __SYSCALL(110, sys_ni_syscall) 235 - #define __NR_vhangup 111 236 - __SYSCALL(__NR_vhangup, sys_vhangup) 237 - /* 112 was sys_idle */ 238 - __SYSCALL(112, sys_ni_syscall) 239 - /* 113 was sys_syscall */ 240 - __SYSCALL(113, sys_ni_syscall) 241 - #define __NR_wait4 114 242 - __SYSCALL(__NR_wait4, compat_sys_wait4) 243 - #define __NR_swapoff 115 244 - __SYSCALL(__NR_swapoff, sys_swapoff) 245 - #define __NR_sysinfo 116 246 - __SYSCALL(__NR_sysinfo, compat_sys_sysinfo) 247 - /* 117 was sys_ipc */ 248 - __SYSCALL(117, sys_ni_syscall) 249 - #define __NR_fsync 118 250 - __SYSCALL(__NR_fsync, sys_fsync) 251 - #define __NR_sigreturn 119 252 - __SYSCALL(__NR_sigreturn, compat_sys_sigreturn) 253 - #define __NR_clone 120 254 - __SYSCALL(__NR_clone, sys_clone) 255 - #define __NR_setdomainname 121 256 - __SYSCALL(__NR_setdomainname, sys_setdomainname) 257 - #define __NR_uname 122 258 - __SYSCALL(__NR_uname, sys_newuname) 259 - /* 123 was sys_modify_ldt */ 260 - __SYSCALL(123, sys_ni_syscall) 261 - #define __NR_adjtimex 124 262 - __SYSCALL(__NR_adjtimex, sys_adjtimex_time32) 263 - #define __NR_mprotect 125 264 - __SYSCALL(__NR_mprotect, sys_mprotect) 265 - #define __NR_sigprocmask 126 266 - __SYSCALL(__NR_sigprocmask, compat_sys_sigprocmask) 267 - /* 127 was sys_create_module */ 268 - __SYSCALL(127, sys_ni_syscall) 269 - #define __NR_init_module 128 270 - __SYSCALL(__NR_init_module, sys_init_module) 271 - #define __NR_delete_module 129 272 - __SYSCALL(__NR_delete_module, sys_delete_module) 273 - /* 130 was sys_get_kernel_syms */ 274 - __SYSCALL(130, sys_ni_syscall) 275 - #define __NR_quotactl 131 276 - __SYSCALL(__NR_quotactl, sys_quotactl) 277 - #define __NR_getpgid 132 278 - __SYSCALL(__NR_getpgid, sys_getpgid) 279 - #define __NR_fchdir 133 280 - __SYSCALL(__NR_fchdir, sys_fchdir) 281 - #define __NR_bdflush 134 282 - __SYSCALL(__NR_bdflush, sys_ni_syscall) 283 - #define __NR_sysfs 135 284 - __SYSCALL(__NR_sysfs, sys_sysfs) 285 - #define __NR_personality 136 286 - __SYSCALL(__NR_personality, sys_personality) 287 - /* 137 was sys_afs_syscall */ 288 - __SYSCALL(137, sys_ni_syscall) 289 - #define __NR_setfsuid 138 290 - __SYSCALL(__NR_setfsuid, sys_setfsuid16) 291 - #define __NR_setfsgid 139 292 - __SYSCALL(__NR_setfsgid, sys_setfsgid16) 293 - #define __NR__llseek 140 294 - __SYSCALL(__NR__llseek, sys_llseek) 295 - #define __NR_getdents 141 296 - __SYSCALL(__NR_getdents, compat_sys_getdents) 297 - #define __NR__newselect 142 298 - __SYSCALL(__NR__newselect, compat_sys_select) 299 - #define __NR_flock 143 300 - __SYSCALL(__NR_flock, sys_flock) 301 - #define __NR_msync 144 302 - __SYSCALL(__NR_msync, sys_msync) 303 - #define __NR_readv 145 304 - __SYSCALL(__NR_readv, sys_readv) 305 - #define __NR_writev 146 306 - __SYSCALL(__NR_writev, sys_writev) 307 - #define __NR_getsid 147 308 - __SYSCALL(__NR_getsid, sys_getsid) 309 - #define __NR_fdatasync 148 310 - __SYSCALL(__NR_fdatasync, sys_fdatasync) 311 - /* 149 was sys_sysctl */ 312 - __SYSCALL(149, sys_ni_syscall) 313 - #define __NR_mlock 150 314 - __SYSCALL(__NR_mlock, sys_mlock) 315 - #define __NR_munlock 151 316 - __SYSCALL(__NR_munlock, sys_munlock) 317 - #define __NR_mlockall 152 318 - __SYSCALL(__NR_mlockall, sys_mlockall) 319 - #define __NR_munlockall 153 320 - __SYSCALL(__NR_munlockall, sys_munlockall) 321 - #define __NR_sched_setparam 154 322 - __SYSCALL(__NR_sched_setparam, sys_sched_setparam) 323 - #define __NR_sched_getparam 155 324 - __SYSCALL(__NR_sched_getparam, sys_sched_getparam) 325 - #define __NR_sched_setscheduler 156 326 - __SYSCALL(__NR_sched_setscheduler, sys_sched_setscheduler) 327 - #define __NR_sched_getscheduler 157 328 - __SYSCALL(__NR_sched_getscheduler, sys_sched_getscheduler) 329 - #define __NR_sched_yield 158 330 - __SYSCALL(__NR_sched_yield, sys_sched_yield) 331 - #define __NR_sched_get_priority_max 159 332 - __SYSCALL(__NR_sched_get_priority_max, sys_sched_get_priority_max) 333 - #define __NR_sched_get_priority_min 160 334 - __SYSCALL(__NR_sched_get_priority_min, sys_sched_get_priority_min) 335 - #define __NR_sched_rr_get_interval 161 336 - __SYSCALL(__NR_sched_rr_get_interval, sys_sched_rr_get_interval_time32) 337 - #define __NR_nanosleep 162 338 - __SYSCALL(__NR_nanosleep, sys_nanosleep_time32) 339 - #define __NR_mremap 163 340 - __SYSCALL(__NR_mremap, sys_mremap) 341 - #define __NR_setresuid 164 342 - __SYSCALL(__NR_setresuid, sys_setresuid16) 343 - #define __NR_getresuid 165 344 - __SYSCALL(__NR_getresuid, sys_getresuid16) 345 - /* 166 was sys_vm86 */ 346 - __SYSCALL(166, sys_ni_syscall) 347 - /* 167 was sys_query_module */ 348 - __SYSCALL(167, sys_ni_syscall) 349 - #define __NR_poll 168 350 - __SYSCALL(__NR_poll, sys_poll) 351 - #define __NR_nfsservctl 169 352 - __SYSCALL(__NR_nfsservctl, sys_ni_syscall) 353 - #define __NR_setresgid 170 354 - __SYSCALL(__NR_setresgid, sys_setresgid16) 355 - #define __NR_getresgid 171 356 - __SYSCALL(__NR_getresgid, sys_getresgid16) 357 - #define __NR_prctl 172 358 - __SYSCALL(__NR_prctl, sys_prctl) 359 - #define __NR_rt_sigreturn 173 360 - __SYSCALL(__NR_rt_sigreturn, compat_sys_rt_sigreturn) 361 - #define __NR_rt_sigaction 174 362 - __SYSCALL(__NR_rt_sigaction, compat_sys_rt_sigaction) 363 - #define __NR_rt_sigprocmask 175 364 - __SYSCALL(__NR_rt_sigprocmask, compat_sys_rt_sigprocmask) 365 - #define __NR_rt_sigpending 176 366 - __SYSCALL(__NR_rt_sigpending, compat_sys_rt_sigpending) 367 - #define __NR_rt_sigtimedwait 177 368 - __SYSCALL(__NR_rt_sigtimedwait, compat_sys_rt_sigtimedwait_time32) 369 - #define __NR_rt_sigqueueinfo 178 370 - __SYSCALL(__NR_rt_sigqueueinfo, compat_sys_rt_sigqueueinfo) 371 - #define __NR_rt_sigsuspend 179 372 - __SYSCALL(__NR_rt_sigsuspend, compat_sys_rt_sigsuspend) 373 - #define __NR_pread64 180 374 - __SYSCALL(__NR_pread64, compat_sys_aarch32_pread64) 375 - #define __NR_pwrite64 181 376 - __SYSCALL(__NR_pwrite64, compat_sys_aarch32_pwrite64) 377 - #define __NR_chown 182 378 - __SYSCALL(__NR_chown, sys_chown16) 379 - #define __NR_getcwd 183 380 - __SYSCALL(__NR_getcwd, sys_getcwd) 381 - #define __NR_capget 184 382 - __SYSCALL(__NR_capget, sys_capget) 383 - #define __NR_capset 185 384 - __SYSCALL(__NR_capset, sys_capset) 385 - #define __NR_sigaltstack 186 386 - __SYSCALL(__NR_sigaltstack, compat_sys_sigaltstack) 387 - #define __NR_sendfile 187 388 - __SYSCALL(__NR_sendfile, compat_sys_sendfile) 389 - /* 188 reserved */ 390 - __SYSCALL(188, sys_ni_syscall) 391 - /* 189 reserved */ 392 - __SYSCALL(189, sys_ni_syscall) 393 - #define __NR_vfork 190 394 - __SYSCALL(__NR_vfork, sys_vfork) 395 - #define __NR_ugetrlimit 191 /* SuS compliant getrlimit */ 396 - __SYSCALL(__NR_ugetrlimit, compat_sys_getrlimit) /* SuS compliant getrlimit */ 397 - #define __NR_mmap2 192 398 - __SYSCALL(__NR_mmap2, compat_sys_aarch32_mmap2) 399 - #define __NR_truncate64 193 400 - __SYSCALL(__NR_truncate64, compat_sys_aarch32_truncate64) 401 - #define __NR_ftruncate64 194 402 - __SYSCALL(__NR_ftruncate64, compat_sys_aarch32_ftruncate64) 403 - #define __NR_stat64 195 404 - __SYSCALL(__NR_stat64, sys_stat64) 405 - #define __NR_lstat64 196 406 - __SYSCALL(__NR_lstat64, sys_lstat64) 407 - #define __NR_fstat64 197 408 - __SYSCALL(__NR_fstat64, sys_fstat64) 409 - #define __NR_lchown32 198 410 - __SYSCALL(__NR_lchown32, sys_lchown) 411 - #define __NR_getuid32 199 412 - __SYSCALL(__NR_getuid32, sys_getuid) 413 - #define __NR_getgid32 200 414 - __SYSCALL(__NR_getgid32, sys_getgid) 415 - #define __NR_geteuid32 201 416 - __SYSCALL(__NR_geteuid32, sys_geteuid) 417 - #define __NR_getegid32 202 418 - __SYSCALL(__NR_getegid32, sys_getegid) 419 - #define __NR_setreuid32 203 420 - __SYSCALL(__NR_setreuid32, sys_setreuid) 421 - #define __NR_setregid32 204 422 - __SYSCALL(__NR_setregid32, sys_setregid) 423 - #define __NR_getgroups32 205 424 - __SYSCALL(__NR_getgroups32, sys_getgroups) 425 - #define __NR_setgroups32 206 426 - __SYSCALL(__NR_setgroups32, sys_setgroups) 427 - #define __NR_fchown32 207 428 - __SYSCALL(__NR_fchown32, sys_fchown) 429 - #define __NR_setresuid32 208 430 - __SYSCALL(__NR_setresuid32, sys_setresuid) 431 - #define __NR_getresuid32 209 432 - __SYSCALL(__NR_getresuid32, sys_getresuid) 433 - #define __NR_setresgid32 210 434 - __SYSCALL(__NR_setresgid32, sys_setresgid) 435 - #define __NR_getresgid32 211 436 - __SYSCALL(__NR_getresgid32, sys_getresgid) 437 - #define __NR_chown32 212 438 - __SYSCALL(__NR_chown32, sys_chown) 439 - #define __NR_setuid32 213 440 - __SYSCALL(__NR_setuid32, sys_setuid) 441 - #define __NR_setgid32 214 442 - __SYSCALL(__NR_setgid32, sys_setgid) 443 - #define __NR_setfsuid32 215 444 - __SYSCALL(__NR_setfsuid32, sys_setfsuid) 445 - #define __NR_setfsgid32 216 446 - __SYSCALL(__NR_setfsgid32, sys_setfsgid) 447 - #define __NR_getdents64 217 448 - __SYSCALL(__NR_getdents64, sys_getdents64) 449 - #define __NR_pivot_root 218 450 - __SYSCALL(__NR_pivot_root, sys_pivot_root) 451 - #define __NR_mincore 219 452 - __SYSCALL(__NR_mincore, sys_mincore) 453 - #define __NR_madvise 220 454 - __SYSCALL(__NR_madvise, sys_madvise) 455 - #define __NR_fcntl64 221 456 - __SYSCALL(__NR_fcntl64, compat_sys_fcntl64) 457 - /* 222 for tux */ 458 - __SYSCALL(222, sys_ni_syscall) 459 - /* 223 is unused */ 460 - __SYSCALL(223, sys_ni_syscall) 461 - #define __NR_gettid 224 462 - __SYSCALL(__NR_gettid, sys_gettid) 463 - #define __NR_readahead 225 464 - __SYSCALL(__NR_readahead, compat_sys_aarch32_readahead) 465 - #define __NR_setxattr 226 466 - __SYSCALL(__NR_setxattr, sys_setxattr) 467 - #define __NR_lsetxattr 227 468 - __SYSCALL(__NR_lsetxattr, sys_lsetxattr) 469 - #define __NR_fsetxattr 228 470 - __SYSCALL(__NR_fsetxattr, sys_fsetxattr) 471 - #define __NR_getxattr 229 472 - __SYSCALL(__NR_getxattr, sys_getxattr) 473 - #define __NR_lgetxattr 230 474 - __SYSCALL(__NR_lgetxattr, sys_lgetxattr) 475 - #define __NR_fgetxattr 231 476 - __SYSCALL(__NR_fgetxattr, sys_fgetxattr) 477 - #define __NR_listxattr 232 478 - __SYSCALL(__NR_listxattr, sys_listxattr) 479 - #define __NR_llistxattr 233 480 - __SYSCALL(__NR_llistxattr, sys_llistxattr) 481 - #define __NR_flistxattr 234 482 - __SYSCALL(__NR_flistxattr, sys_flistxattr) 483 - #define __NR_removexattr 235 484 - __SYSCALL(__NR_removexattr, sys_removexattr) 485 - #define __NR_lremovexattr 236 486 - __SYSCALL(__NR_lremovexattr, sys_lremovexattr) 487 - #define __NR_fremovexattr 237 488 - __SYSCALL(__NR_fremovexattr, sys_fremovexattr) 489 - #define __NR_tkill 238 490 - __SYSCALL(__NR_tkill, sys_tkill) 491 - #define __NR_sendfile64 239 492 - __SYSCALL(__NR_sendfile64, sys_sendfile64) 493 - #define __NR_futex 240 494 - __SYSCALL(__NR_futex, sys_futex_time32) 495 - #define __NR_sched_setaffinity 241 496 - __SYSCALL(__NR_sched_setaffinity, compat_sys_sched_setaffinity) 497 - #define __NR_sched_getaffinity 242 498 - __SYSCALL(__NR_sched_getaffinity, compat_sys_sched_getaffinity) 499 - #define __NR_io_setup 243 500 - __SYSCALL(__NR_io_setup, compat_sys_io_setup) 501 - #define __NR_io_destroy 244 502 - __SYSCALL(__NR_io_destroy, sys_io_destroy) 503 - #define __NR_io_getevents 245 504 - __SYSCALL(__NR_io_getevents, sys_io_getevents_time32) 505 - #define __NR_io_submit 246 506 - __SYSCALL(__NR_io_submit, compat_sys_io_submit) 507 - #define __NR_io_cancel 247 508 - __SYSCALL(__NR_io_cancel, sys_io_cancel) 509 - #define __NR_exit_group 248 510 - __SYSCALL(__NR_exit_group, sys_exit_group) 511 - /* 249 was lookup_dcookie */ 512 - __SYSCALL(249, sys_ni_syscall) 513 - #define __NR_epoll_create 250 514 - __SYSCALL(__NR_epoll_create, sys_epoll_create) 515 - #define __NR_epoll_ctl 251 516 - __SYSCALL(__NR_epoll_ctl, sys_epoll_ctl) 517 - #define __NR_epoll_wait 252 518 - __SYSCALL(__NR_epoll_wait, sys_epoll_wait) 519 - #define __NR_remap_file_pages 253 520 - __SYSCALL(__NR_remap_file_pages, sys_remap_file_pages) 521 - /* 254 for set_thread_area */ 522 - __SYSCALL(254, sys_ni_syscall) 523 - /* 255 for get_thread_area */ 524 - __SYSCALL(255, sys_ni_syscall) 525 - #define __NR_set_tid_address 256 526 - __SYSCALL(__NR_set_tid_address, sys_set_tid_address) 527 - #define __NR_timer_create 257 528 - __SYSCALL(__NR_timer_create, compat_sys_timer_create) 529 - #define __NR_timer_settime 258 530 - __SYSCALL(__NR_timer_settime, sys_timer_settime32) 531 - #define __NR_timer_gettime 259 532 - __SYSCALL(__NR_timer_gettime, sys_timer_gettime32) 533 - #define __NR_timer_getoverrun 260 534 - __SYSCALL(__NR_timer_getoverrun, sys_timer_getoverrun) 535 - #define __NR_timer_delete 261 536 - __SYSCALL(__NR_timer_delete, sys_timer_delete) 537 - #define __NR_clock_settime 262 538 - __SYSCALL(__NR_clock_settime, sys_clock_settime32) 539 - #define __NR_clock_gettime 263 540 - __SYSCALL(__NR_clock_gettime, sys_clock_gettime32) 541 - #define __NR_clock_getres 264 542 - __SYSCALL(__NR_clock_getres, sys_clock_getres_time32) 543 - #define __NR_clock_nanosleep 265 544 - __SYSCALL(__NR_clock_nanosleep, sys_clock_nanosleep_time32) 545 - #define __NR_statfs64 266 546 - __SYSCALL(__NR_statfs64, compat_sys_aarch32_statfs64) 547 - #define __NR_fstatfs64 267 548 - __SYSCALL(__NR_fstatfs64, compat_sys_aarch32_fstatfs64) 549 - #define __NR_tgkill 268 550 - __SYSCALL(__NR_tgkill, sys_tgkill) 551 - #define __NR_utimes 269 552 - __SYSCALL(__NR_utimes, sys_utimes_time32) 553 - #define __NR_arm_fadvise64_64 270 554 - __SYSCALL(__NR_arm_fadvise64_64, compat_sys_aarch32_fadvise64_64) 555 - #define __NR_pciconfig_iobase 271 556 - __SYSCALL(__NR_pciconfig_iobase, sys_pciconfig_iobase) 557 - #define __NR_pciconfig_read 272 558 - __SYSCALL(__NR_pciconfig_read, sys_pciconfig_read) 559 - #define __NR_pciconfig_write 273 560 - __SYSCALL(__NR_pciconfig_write, sys_pciconfig_write) 561 - #define __NR_mq_open 274 562 - __SYSCALL(__NR_mq_open, compat_sys_mq_open) 563 - #define __NR_mq_unlink 275 564 - __SYSCALL(__NR_mq_unlink, sys_mq_unlink) 565 - #define __NR_mq_timedsend 276 566 - __SYSCALL(__NR_mq_timedsend, sys_mq_timedsend_time32) 567 - #define __NR_mq_timedreceive 277 568 - __SYSCALL(__NR_mq_timedreceive, sys_mq_timedreceive_time32) 569 - #define __NR_mq_notify 278 570 - __SYSCALL(__NR_mq_notify, compat_sys_mq_notify) 571 - #define __NR_mq_getsetattr 279 572 - __SYSCALL(__NR_mq_getsetattr, compat_sys_mq_getsetattr) 573 - #define __NR_waitid 280 574 - __SYSCALL(__NR_waitid, compat_sys_waitid) 575 - #define __NR_socket 281 576 - __SYSCALL(__NR_socket, sys_socket) 577 - #define __NR_bind 282 578 - __SYSCALL(__NR_bind, sys_bind) 579 - #define __NR_connect 283 580 - __SYSCALL(__NR_connect, sys_connect) 581 - #define __NR_listen 284 582 - __SYSCALL(__NR_listen, sys_listen) 583 - #define __NR_accept 285 584 - __SYSCALL(__NR_accept, sys_accept) 585 - #define __NR_getsockname 286 586 - __SYSCALL(__NR_getsockname, sys_getsockname) 587 - #define __NR_getpeername 287 588 - __SYSCALL(__NR_getpeername, sys_getpeername) 589 - #define __NR_socketpair 288 590 - __SYSCALL(__NR_socketpair, sys_socketpair) 591 - #define __NR_send 289 592 - __SYSCALL(__NR_send, sys_send) 593 - #define __NR_sendto 290 594 - __SYSCALL(__NR_sendto, sys_sendto) 595 - #define __NR_recv 291 596 - __SYSCALL(__NR_recv, compat_sys_recv) 597 - #define __NR_recvfrom 292 598 - __SYSCALL(__NR_recvfrom, compat_sys_recvfrom) 599 - #define __NR_shutdown 293 600 - __SYSCALL(__NR_shutdown, sys_shutdown) 601 - #define __NR_setsockopt 294 602 - __SYSCALL(__NR_setsockopt, sys_setsockopt) 603 - #define __NR_getsockopt 295 604 - __SYSCALL(__NR_getsockopt, sys_getsockopt) 605 - #define __NR_sendmsg 296 606 - __SYSCALL(__NR_sendmsg, compat_sys_sendmsg) 607 - #define __NR_recvmsg 297 608 - __SYSCALL(__NR_recvmsg, compat_sys_recvmsg) 609 - #define __NR_semop 298 610 - __SYSCALL(__NR_semop, sys_semop) 611 - #define __NR_semget 299 612 - __SYSCALL(__NR_semget, sys_semget) 613 - #define __NR_semctl 300 614 - __SYSCALL(__NR_semctl, compat_sys_old_semctl) 615 - #define __NR_msgsnd 301 616 - __SYSCALL(__NR_msgsnd, compat_sys_msgsnd) 617 - #define __NR_msgrcv 302 618 - __SYSCALL(__NR_msgrcv, compat_sys_msgrcv) 619 - #define __NR_msgget 303 620 - __SYSCALL(__NR_msgget, sys_msgget) 621 - #define __NR_msgctl 304 622 - __SYSCALL(__NR_msgctl, compat_sys_old_msgctl) 623 - #define __NR_shmat 305 624 - __SYSCALL(__NR_shmat, compat_sys_shmat) 625 - #define __NR_shmdt 306 626 - __SYSCALL(__NR_shmdt, sys_shmdt) 627 - #define __NR_shmget 307 628 - __SYSCALL(__NR_shmget, sys_shmget) 629 - #define __NR_shmctl 308 630 - __SYSCALL(__NR_shmctl, compat_sys_old_shmctl) 631 - #define __NR_add_key 309 632 - __SYSCALL(__NR_add_key, sys_add_key) 633 - #define __NR_request_key 310 634 - __SYSCALL(__NR_request_key, sys_request_key) 635 - #define __NR_keyctl 311 636 - __SYSCALL(__NR_keyctl, compat_sys_keyctl) 637 - #define __NR_semtimedop 312 638 - __SYSCALL(__NR_semtimedop, sys_semtimedop_time32) 639 - #define __NR_vserver 313 640 - __SYSCALL(__NR_vserver, sys_ni_syscall) 641 - #define __NR_ioprio_set 314 642 - __SYSCALL(__NR_ioprio_set, sys_ioprio_set) 643 - #define __NR_ioprio_get 315 644 - __SYSCALL(__NR_ioprio_get, sys_ioprio_get) 645 - #define __NR_inotify_init 316 646 - __SYSCALL(__NR_inotify_init, sys_inotify_init) 647 - #define __NR_inotify_add_watch 317 648 - __SYSCALL(__NR_inotify_add_watch, sys_inotify_add_watch) 649 - #define __NR_inotify_rm_watch 318 650 - __SYSCALL(__NR_inotify_rm_watch, sys_inotify_rm_watch) 651 - #define __NR_mbind 319 652 - __SYSCALL(__NR_mbind, sys_mbind) 653 - #define __NR_get_mempolicy 320 654 - __SYSCALL(__NR_get_mempolicy, sys_get_mempolicy) 655 - #define __NR_set_mempolicy 321 656 - __SYSCALL(__NR_set_mempolicy, sys_set_mempolicy) 657 - #define __NR_openat 322 658 - __SYSCALL(__NR_openat, compat_sys_openat) 659 - #define __NR_mkdirat 323 660 - __SYSCALL(__NR_mkdirat, sys_mkdirat) 661 - #define __NR_mknodat 324 662 - __SYSCALL(__NR_mknodat, sys_mknodat) 663 - #define __NR_fchownat 325 664 - __SYSCALL(__NR_fchownat, sys_fchownat) 665 - #define __NR_futimesat 326 666 - __SYSCALL(__NR_futimesat, sys_futimesat_time32) 667 - #define __NR_fstatat64 327 668 - __SYSCALL(__NR_fstatat64, sys_fstatat64) 669 - #define __NR_unlinkat 328 670 - __SYSCALL(__NR_unlinkat, sys_unlinkat) 671 - #define __NR_renameat 329 672 - __SYSCALL(__NR_renameat, sys_renameat) 673 - #define __NR_linkat 330 674 - __SYSCALL(__NR_linkat, sys_linkat) 675 - #define __NR_symlinkat 331 676 - __SYSCALL(__NR_symlinkat, sys_symlinkat) 677 - #define __NR_readlinkat 332 678 - __SYSCALL(__NR_readlinkat, sys_readlinkat) 679 - #define __NR_fchmodat 333 680 - __SYSCALL(__NR_fchmodat, sys_fchmodat) 681 - #define __NR_faccessat 334 682 - __SYSCALL(__NR_faccessat, sys_faccessat) 683 - #define __NR_pselect6 335 684 - __SYSCALL(__NR_pselect6, compat_sys_pselect6_time32) 685 - #define __NR_ppoll 336 686 - __SYSCALL(__NR_ppoll, compat_sys_ppoll_time32) 687 - #define __NR_unshare 337 688 - __SYSCALL(__NR_unshare, sys_unshare) 689 - #define __NR_set_robust_list 338 690 - __SYSCALL(__NR_set_robust_list, compat_sys_set_robust_list) 691 - #define __NR_get_robust_list 339 692 - __SYSCALL(__NR_get_robust_list, compat_sys_get_robust_list) 693 - #define __NR_splice 340 694 - __SYSCALL(__NR_splice, sys_splice) 695 - #define __NR_sync_file_range2 341 696 - __SYSCALL(__NR_sync_file_range2, compat_sys_aarch32_sync_file_range2) 697 - #define __NR_tee 342 698 - __SYSCALL(__NR_tee, sys_tee) 699 - #define __NR_vmsplice 343 700 - __SYSCALL(__NR_vmsplice, sys_vmsplice) 701 - #define __NR_move_pages 344 702 - __SYSCALL(__NR_move_pages, sys_move_pages) 703 - #define __NR_getcpu 345 704 - __SYSCALL(__NR_getcpu, sys_getcpu) 705 - #define __NR_epoll_pwait 346 706 - __SYSCALL(__NR_epoll_pwait, compat_sys_epoll_pwait) 707 - #define __NR_kexec_load 347 708 - __SYSCALL(__NR_kexec_load, compat_sys_kexec_load) 709 - #define __NR_utimensat 348 710 - __SYSCALL(__NR_utimensat, sys_utimensat_time32) 711 - #define __NR_signalfd 349 712 - __SYSCALL(__NR_signalfd, compat_sys_signalfd) 713 - #define __NR_timerfd_create 350 714 - __SYSCALL(__NR_timerfd_create, sys_timerfd_create) 715 - #define __NR_eventfd 351 716 - __SYSCALL(__NR_eventfd, sys_eventfd) 717 - #define __NR_fallocate 352 718 - __SYSCALL(__NR_fallocate, compat_sys_aarch32_fallocate) 719 - #define __NR_timerfd_settime 353 720 - __SYSCALL(__NR_timerfd_settime, sys_timerfd_settime32) 721 - #define __NR_timerfd_gettime 354 722 - __SYSCALL(__NR_timerfd_gettime, sys_timerfd_gettime32) 723 - #define __NR_signalfd4 355 724 - __SYSCALL(__NR_signalfd4, compat_sys_signalfd4) 725 - #define __NR_eventfd2 356 726 - __SYSCALL(__NR_eventfd2, sys_eventfd2) 727 - #define __NR_epoll_create1 357 728 - __SYSCALL(__NR_epoll_create1, sys_epoll_create1) 729 - #define __NR_dup3 358 730 - __SYSCALL(__NR_dup3, sys_dup3) 731 - #define __NR_pipe2 359 732 - __SYSCALL(__NR_pipe2, sys_pipe2) 733 - #define __NR_inotify_init1 360 734 - __SYSCALL(__NR_inotify_init1, sys_inotify_init1) 735 - #define __NR_preadv 361 736 - __SYSCALL(__NR_preadv, compat_sys_preadv) 737 - #define __NR_pwritev 362 738 - __SYSCALL(__NR_pwritev, compat_sys_pwritev) 739 - #define __NR_rt_tgsigqueueinfo 363 740 - __SYSCALL(__NR_rt_tgsigqueueinfo, compat_sys_rt_tgsigqueueinfo) 741 - #define __NR_perf_event_open 364 742 - __SYSCALL(__NR_perf_event_open, sys_perf_event_open) 743 - #define __NR_recvmmsg 365 744 - __SYSCALL(__NR_recvmmsg, compat_sys_recvmmsg_time32) 745 - #define __NR_accept4 366 746 - __SYSCALL(__NR_accept4, sys_accept4) 747 - #define __NR_fanotify_init 367 748 - __SYSCALL(__NR_fanotify_init, sys_fanotify_init) 749 - #define __NR_fanotify_mark 368 750 - __SYSCALL(__NR_fanotify_mark, compat_sys_fanotify_mark) 751 - #define __NR_prlimit64 369 752 - __SYSCALL(__NR_prlimit64, sys_prlimit64) 753 - #define __NR_name_to_handle_at 370 754 - __SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at) 755 - #define __NR_open_by_handle_at 371 756 - __SYSCALL(__NR_open_by_handle_at, compat_sys_open_by_handle_at) 757 - #define __NR_clock_adjtime 372 758 - __SYSCALL(__NR_clock_adjtime, sys_clock_adjtime32) 759 - #define __NR_syncfs 373 760 - __SYSCALL(__NR_syncfs, sys_syncfs) 761 - #define __NR_sendmmsg 374 762 - __SYSCALL(__NR_sendmmsg, compat_sys_sendmmsg) 763 - #define __NR_setns 375 764 - __SYSCALL(__NR_setns, sys_setns) 765 - #define __NR_process_vm_readv 376 766 - __SYSCALL(__NR_process_vm_readv, sys_process_vm_readv) 767 - #define __NR_process_vm_writev 377 768 - __SYSCALL(__NR_process_vm_writev, sys_process_vm_writev) 769 - #define __NR_kcmp 378 770 - __SYSCALL(__NR_kcmp, sys_kcmp) 771 - #define __NR_finit_module 379 772 - __SYSCALL(__NR_finit_module, sys_finit_module) 773 - #define __NR_sched_setattr 380 774 - __SYSCALL(__NR_sched_setattr, sys_sched_setattr) 775 - #define __NR_sched_getattr 381 776 - __SYSCALL(__NR_sched_getattr, sys_sched_getattr) 777 - #define __NR_renameat2 382 778 - __SYSCALL(__NR_renameat2, sys_renameat2) 779 - #define __NR_seccomp 383 780 - __SYSCALL(__NR_seccomp, sys_seccomp) 781 - #define __NR_getrandom 384 782 - __SYSCALL(__NR_getrandom, sys_getrandom) 783 - #define __NR_memfd_create 385 784 - __SYSCALL(__NR_memfd_create, sys_memfd_create) 785 - #define __NR_bpf 386 786 - __SYSCALL(__NR_bpf, sys_bpf) 787 - #define __NR_execveat 387 788 - __SYSCALL(__NR_execveat, compat_sys_execveat) 789 - #define __NR_userfaultfd 388 790 - __SYSCALL(__NR_userfaultfd, sys_userfaultfd) 791 - #define __NR_membarrier 389 792 - __SYSCALL(__NR_membarrier, sys_membarrier) 793 - #define __NR_mlock2 390 794 - __SYSCALL(__NR_mlock2, sys_mlock2) 795 - #define __NR_copy_file_range 391 796 - __SYSCALL(__NR_copy_file_range, sys_copy_file_range) 797 - #define __NR_preadv2 392 798 - __SYSCALL(__NR_preadv2, compat_sys_preadv2) 799 - #define __NR_pwritev2 393 800 - __SYSCALL(__NR_pwritev2, compat_sys_pwritev2) 801 - #define __NR_pkey_mprotect 394 802 - __SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect) 803 - #define __NR_pkey_alloc 395 804 - __SYSCALL(__NR_pkey_alloc, sys_pkey_alloc) 805 - #define __NR_pkey_free 396 806 - __SYSCALL(__NR_pkey_free, sys_pkey_free) 807 - #define __NR_statx 397 808 - __SYSCALL(__NR_statx, sys_statx) 809 - #define __NR_rseq 398 810 - __SYSCALL(__NR_rseq, sys_rseq) 811 - #define __NR_io_pgetevents 399 812 - __SYSCALL(__NR_io_pgetevents, compat_sys_io_pgetevents) 813 - #define __NR_migrate_pages 400 814 - __SYSCALL(__NR_migrate_pages, sys_migrate_pages) 815 - #define __NR_kexec_file_load 401 816 - __SYSCALL(__NR_kexec_file_load, sys_kexec_file_load) 817 - /* 402 is unused */ 818 - #define __NR_clock_gettime64 403 819 - __SYSCALL(__NR_clock_gettime64, sys_clock_gettime) 820 - #define __NR_clock_settime64 404 821 - __SYSCALL(__NR_clock_settime64, sys_clock_settime) 822 - #define __NR_clock_adjtime64 405 823 - __SYSCALL(__NR_clock_adjtime64, sys_clock_adjtime) 824 - #define __NR_clock_getres_time64 406 825 - __SYSCALL(__NR_clock_getres_time64, sys_clock_getres) 826 - #define __NR_clock_nanosleep_time64 407 827 - __SYSCALL(__NR_clock_nanosleep_time64, sys_clock_nanosleep) 828 - #define __NR_timer_gettime64 408 829 - __SYSCALL(__NR_timer_gettime64, sys_timer_gettime) 830 - #define __NR_timer_settime64 409 831 - __SYSCALL(__NR_timer_settime64, sys_timer_settime) 832 - #define __NR_timerfd_gettime64 410 833 - __SYSCALL(__NR_timerfd_gettime64, sys_timerfd_gettime) 834 - #define __NR_timerfd_settime64 411 835 - __SYSCALL(__NR_timerfd_settime64, sys_timerfd_settime) 836 - #define __NR_utimensat_time64 412 837 - __SYSCALL(__NR_utimensat_time64, sys_utimensat) 838 - #define __NR_pselect6_time64 413 839 - __SYSCALL(__NR_pselect6_time64, compat_sys_pselect6_time64) 840 - #define __NR_ppoll_time64 414 841 - __SYSCALL(__NR_ppoll_time64, compat_sys_ppoll_time64) 842 - #define __NR_io_pgetevents_time64 416 843 - __SYSCALL(__NR_io_pgetevents_time64, compat_sys_io_pgetevents_time64) 844 - #define __NR_recvmmsg_time64 417 845 - __SYSCALL(__NR_recvmmsg_time64, compat_sys_recvmmsg_time64) 846 - #define __NR_mq_timedsend_time64 418 847 - __SYSCALL(__NR_mq_timedsend_time64, sys_mq_timedsend) 848 - #define __NR_mq_timedreceive_time64 419 849 - __SYSCALL(__NR_mq_timedreceive_time64, sys_mq_timedreceive) 850 - #define __NR_semtimedop_time64 420 851 - __SYSCALL(__NR_semtimedop_time64, sys_semtimedop) 852 - #define __NR_rt_sigtimedwait_time64 421 853 - __SYSCALL(__NR_rt_sigtimedwait_time64, compat_sys_rt_sigtimedwait_time64) 854 - #define __NR_futex_time64 422 855 - __SYSCALL(__NR_futex_time64, sys_futex) 856 - #define __NR_sched_rr_get_interval_time64 423 857 - __SYSCALL(__NR_sched_rr_get_interval_time64, sys_sched_rr_get_interval) 858 - #define __NR_pidfd_send_signal 424 859 - __SYSCALL(__NR_pidfd_send_signal, sys_pidfd_send_signal) 860 - #define __NR_io_uring_setup 425 861 - __SYSCALL(__NR_io_uring_setup, sys_io_uring_setup) 862 - #define __NR_io_uring_enter 426 863 - __SYSCALL(__NR_io_uring_enter, sys_io_uring_enter) 864 - #define __NR_io_uring_register 427 865 - __SYSCALL(__NR_io_uring_register, sys_io_uring_register) 866 - #define __NR_open_tree 428 867 - __SYSCALL(__NR_open_tree, sys_open_tree) 868 - #define __NR_move_mount 429 869 - __SYSCALL(__NR_move_mount, sys_move_mount) 870 - #define __NR_fsopen 430 871 - __SYSCALL(__NR_fsopen, sys_fsopen) 872 - #define __NR_fsconfig 431 873 - __SYSCALL(__NR_fsconfig, sys_fsconfig) 874 - #define __NR_fsmount 432 875 - __SYSCALL(__NR_fsmount, sys_fsmount) 876 - #define __NR_fspick 433 877 - __SYSCALL(__NR_fspick, sys_fspick) 878 - #define __NR_pidfd_open 434 879 - __SYSCALL(__NR_pidfd_open, sys_pidfd_open) 880 - #define __NR_clone3 435 881 - __SYSCALL(__NR_clone3, sys_clone3) 882 - #define __NR_close_range 436 883 - __SYSCALL(__NR_close_range, sys_close_range) 884 - #define __NR_openat2 437 885 - __SYSCALL(__NR_openat2, sys_openat2) 886 - #define __NR_pidfd_getfd 438 887 - __SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd) 888 - #define __NR_faccessat2 439 889 - __SYSCALL(__NR_faccessat2, sys_faccessat2) 890 - #define __NR_process_madvise 440 891 - __SYSCALL(__NR_process_madvise, sys_process_madvise) 892 - #define __NR_epoll_pwait2 441 893 - __SYSCALL(__NR_epoll_pwait2, compat_sys_epoll_pwait2) 894 - #define __NR_mount_setattr 442 895 - __SYSCALL(__NR_mount_setattr, sys_mount_setattr) 896 - #define __NR_quotactl_fd 443 897 - __SYSCALL(__NR_quotactl_fd, sys_quotactl_fd) 898 - #define __NR_landlock_create_ruleset 444 899 - __SYSCALL(__NR_landlock_create_ruleset, sys_landlock_create_ruleset) 900 - #define __NR_landlock_add_rule 445 901 - __SYSCALL(__NR_landlock_add_rule, sys_landlock_add_rule) 902 - #define __NR_landlock_restrict_self 446 903 - __SYSCALL(__NR_landlock_restrict_self, sys_landlock_restrict_self) 904 - #define __NR_process_mrelease 448 905 - __SYSCALL(__NR_process_mrelease, sys_process_mrelease) 906 - #define __NR_futex_waitv 449 907 - __SYSCALL(__NR_futex_waitv, sys_futex_waitv) 908 - #define __NR_set_mempolicy_home_node 450 909 - __SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node) 910 - #define __NR_cachestat 451 911 - __SYSCALL(__NR_cachestat, sys_cachestat) 912 - #define __NR_fchmodat2 452 913 - __SYSCALL(__NR_fchmodat2, sys_fchmodat2) 914 - #define __NR_map_shadow_stack 453 915 - __SYSCALL(__NR_map_shadow_stack, sys_map_shadow_stack) 916 - #define __NR_futex_wake 454 917 - __SYSCALL(__NR_futex_wake, sys_futex_wake) 918 - #define __NR_futex_wait 455 919 - __SYSCALL(__NR_futex_wait, sys_futex_wait) 920 - #define __NR_futex_requeue 456 921 - __SYSCALL(__NR_futex_requeue, sys_futex_requeue) 922 - #define __NR_statmount 457 923 - __SYSCALL(__NR_statmount, sys_statmount) 924 - #define __NR_listmount 458 925 - __SYSCALL(__NR_listmount, sys_listmount) 926 - #define __NR_lsm_get_self_attr 459 927 - __SYSCALL(__NR_lsm_get_self_attr, sys_lsm_get_self_attr) 928 - #define __NR_lsm_set_self_attr 460 929 - __SYSCALL(__NR_lsm_set_self_attr, sys_lsm_set_self_attr) 930 - #define __NR_lsm_list_modules 461 931 - __SYSCALL(__NR_lsm_list_modules, sys_lsm_list_modules) 932 - #define __NR_mseal 462 933 - __SYSCALL(__NR_mseal, sys_mseal) 7 + #define __NR_sync_file_range2 __NR_arm_sync_file_range 934 8 935 - /* 936 - * Please add new compat syscalls above this comment and update 937 - * __NR_compat_syscalls in asm/unistd.h. 938 - */ 9 + #endif /* _UAPI__ASM_ARM_UNISTD_H */
+6 -6
arch/arm64/include/asm/vdso/compat_gettimeofday.h
··· 8 8 #ifndef __ASSEMBLY__ 9 9 10 10 #include <asm/barrier.h> 11 - #include <asm/unistd.h> 11 + #include <asm/unistd_compat_32.h> 12 12 #include <asm/errno.h> 13 13 14 14 #include <asm/vdso/compat_barrier.h> ··· 24 24 register struct timezone *tz asm("r1") = _tz; 25 25 register struct __kernel_old_timeval *tv asm("r0") = _tv; 26 26 register long ret asm ("r0"); 27 - register long nr asm("r7") = __NR_compat_gettimeofday; 27 + register long nr asm("r7") = __NR_compat32_gettimeofday; 28 28 29 29 asm volatile( 30 30 " swi #0\n" ··· 41 41 register struct __kernel_timespec *ts asm("r1") = _ts; 42 42 register clockid_t clkid asm("r0") = _clkid; 43 43 register long ret asm ("r0"); 44 - register long nr asm("r7") = __NR_compat_clock_gettime64; 44 + register long nr asm("r7") = __NR_compat32_clock_gettime64; 45 45 46 46 asm volatile( 47 47 " swi #0\n" ··· 58 58 register struct old_timespec32 *ts asm("r1") = _ts; 59 59 register clockid_t clkid asm("r0") = _clkid; 60 60 register long ret asm ("r0"); 61 - register long nr asm("r7") = __NR_compat_clock_gettime; 61 + register long nr asm("r7") = __NR_compat32_clock_gettime; 62 62 63 63 asm volatile( 64 64 " swi #0\n" ··· 75 75 register struct __kernel_timespec *ts asm("r1") = _ts; 76 76 register clockid_t clkid asm("r0") = _clkid; 77 77 register long ret asm ("r0"); 78 - register long nr asm("r7") = __NR_compat_clock_getres_time64; 78 + register long nr asm("r7") = __NR_compat32_clock_getres_time64; 79 79 80 80 asm volatile( 81 81 " swi #0\n" ··· 92 92 register struct old_timespec32 *ts asm("r1") = _ts; 93 93 register clockid_t clkid asm("r0") = _clkid; 94 94 register long ret asm ("r0"); 95 - register long nr asm("r7") = __NR_compat_clock_getres; 95 + register long nr asm("r7") = __NR_compat32_clock_getres; 96 96 97 97 asm volatile( 98 98 " swi #0\n"
+1
arch/arm64/include/uapi/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += unistd_64.h 2 3 3 4 generic-y += kvm_para.h
+1 -24
arch/arm64/include/uapi/asm/unistd.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 - /* 3 - * Copyright (C) 2012 ARM Ltd. 4 - * 5 - * This program is free software; you can redistribute it and/or modify 6 - * it under the terms of the GNU General Public License version 2 as 7 - * published by the Free Software Foundation. 8 - * 9 - * This program is distributed in the hope that it will be useful, 10 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - * GNU General Public License for more details. 13 - * 14 - * You should have received a copy of the GNU General Public License 15 - * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - 18 - #define __ARCH_WANT_RENAMEAT 19 - #define __ARCH_WANT_NEW_STAT 20 - #define __ARCH_WANT_SET_GET_RLIMIT 21 - #define __ARCH_WANT_TIME32_SYSCALLS 22 - #define __ARCH_WANT_SYS_CLONE3 23 - #define __ARCH_WANT_MEMFD_SECRET 24 - 25 - #include <asm-generic/unistd.h> 2 + #include <asm/unistd_64.h>
+6
arch/arm64/kernel/Makefile.syscalls
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 3 + syscall_abis_32 += 4 + syscall_abis_64 += renameat newstat rlimit memfd_secret 5 + 6 + syscalltbl = arch/arm64/tools/syscall_%.tbl
+2 -2
arch/arm64/kernel/signal32.c
··· 17 17 #include <asm/signal32.h> 18 18 #include <asm/traps.h> 19 19 #include <linux/uaccess.h> 20 - #include <asm/unistd.h> 20 + #include <asm/unistd_compat_32.h> 21 21 #include <asm/vdso.h> 22 22 23 23 struct compat_vfp_sigframe { ··· 451 451 452 452 void compat_setup_restart_syscall(struct pt_regs *regs) 453 453 { 454 - regs->regs[7] = __NR_compat_restart_syscall; 454 + regs->regs[7] = __NR_compat32_restart_syscall; 455 455 } 456 456 457 457 /*
+9 -9
arch/arm64/kernel/sigreturn32.S
··· 13 13 * need two 16-bit instructions. 14 14 */ 15 15 16 - #include <asm/unistd.h> 16 + #include <asm/unistd_compat_32.h> 17 17 18 18 .section .rodata 19 19 .globl __aarch32_sigret_code_start ··· 22 22 /* 23 23 * ARM Code 24 24 */ 25 - .byte __NR_compat_sigreturn, 0x70, 0xa0, 0xe3 // mov r7, #__NR_compat_sigreturn 26 - .byte __NR_compat_sigreturn, 0x00, 0x00, 0xef // svc #__NR_compat_sigreturn 25 + .byte __NR_compat32_sigreturn, 0x70, 0xa0, 0xe3 // mov r7, #__NR_compat32_sigreturn 26 + .byte __NR_compat32_sigreturn, 0x00, 0x00, 0xef // svc #__NR_compat32_sigreturn 27 27 28 28 /* 29 29 * Thumb code 30 30 */ 31 - .byte __NR_compat_sigreturn, 0x27 // svc #__NR_compat_sigreturn 32 - .byte __NR_compat_sigreturn, 0xdf // mov r7, #__NR_compat_sigreturn 31 + .byte __NR_compat32_sigreturn, 0x27 // svc #__NR_compat32_sigreturn 32 + .byte __NR_compat32_sigreturn, 0xdf // mov r7, #__NR_compat32_sigreturn 33 33 34 34 /* 35 35 * ARM code 36 36 */ 37 - .byte __NR_compat_rt_sigreturn, 0x70, 0xa0, 0xe3 // mov r7, #__NR_compat_rt_sigreturn 38 - .byte __NR_compat_rt_sigreturn, 0x00, 0x00, 0xef // svc #__NR_compat_rt_sigreturn 37 + .byte __NR_compat32_rt_sigreturn, 0x70, 0xa0, 0xe3 // mov r7, #__NR_compat32_rt_sigreturn 38 + .byte __NR_compat32_rt_sigreturn, 0x00, 0x00, 0xef // svc #__NR_compat32_rt_sigreturn 39 39 40 40 /* 41 41 * Thumb code 42 42 */ 43 - .byte __NR_compat_rt_sigreturn, 0x27 // svc #__NR_compat_rt_sigreturn 44 - .byte __NR_compat_rt_sigreturn, 0xdf // mov r7, #__NR_compat_rt_sigreturn 43 + .byte __NR_compat32_rt_sigreturn, 0x27 // svc #__NR_compat32_rt_sigreturn 44 + .byte __NR_compat32_rt_sigreturn, 0xdf // mov r7, #__NR_compat32_rt_sigreturn 45 45 46 46 .globl __aarch32_sigret_code_end 47 47 __aarch32_sigret_code_end:
+4 -2
arch/arm64/kernel/sys.c
··· 48 48 */ 49 49 #define __arm64_sys_personality __arm64_sys_arm64_personality 50 50 51 + #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 52 + 51 53 #undef __SYSCALL 52 54 #define __SYSCALL(nr, sym) asmlinkage long __arm64_##sym(const struct pt_regs *); 53 - #include <asm/unistd.h> 55 + #include <asm/syscall_table_64.h> 54 56 55 57 #undef __SYSCALL 56 58 #define __SYSCALL(nr, sym) [nr] = __arm64_##sym, 57 59 58 60 const syscall_fn_t sys_call_table[__NR_syscalls] = { 59 61 [0 ... __NR_syscalls - 1] = __arm64_sys_ni_syscall, 60 - #include <asm/unistd.h> 62 + #include <asm/syscall_table_64.h> 61 63 };
+7 -10
arch/arm64/kernel/sys32.c
··· 5 5 * Copyright (C) 2015 ARM Ltd. 6 6 */ 7 7 8 - /* 9 - * Needed to avoid conflicting __NR_* macros between uapi/asm/unistd.h and 10 - * asm/unistd32.h. 11 - */ 12 - #define __COMPAT_SYSCALL_NR 13 - 14 8 #include <linux/compat.h> 15 9 #include <linux/compiler.h> 16 10 #include <linux/syscalls.h> 17 11 18 12 #include <asm/syscall.h> 13 + #include <asm/unistd_compat_32.h> 19 14 20 15 asmlinkage long compat_sys_sigreturn(void); 21 16 asmlinkage long compat_sys_rt_sigreturn(void); ··· 117 122 return ksys_fallocate(fd, mode, arg_u64(offset), arg_u64(len)); 118 123 } 119 124 125 + #define __SYSCALL_WITH_COMPAT(nr, sym, compat) __SYSCALL(nr, compat) 126 + 120 127 #undef __SYSCALL 121 128 #define __SYSCALL(nr, sym) asmlinkage long __arm64_##sym(const struct pt_regs *); 122 - #include <asm/unistd32.h> 129 + #include <asm/syscall_table_32.h> 123 130 124 131 #undef __SYSCALL 125 132 #define __SYSCALL(nr, sym) [nr] = __arm64_##sym, 126 133 127 - const syscall_fn_t compat_sys_call_table[__NR_compat_syscalls] = { 128 - [0 ... __NR_compat_syscalls - 1] = __arm64_sys_ni_syscall, 129 - #include <asm/unistd32.h> 134 + const syscall_fn_t compat_sys_call_table[__NR_compat32_syscalls] = { 135 + [0 ... __NR_compat32_syscalls - 1] = __arm64_sys_ni_syscall, 136 + #include <asm/syscall_table_32.h> 130 137 };
+2 -1
arch/arm64/kernel/syscall.c
··· 14 14 #include <asm/syscall.h> 15 15 #include <asm/thread_info.h> 16 16 #include <asm/unistd.h> 17 + #include <asm/unistd_compat_32.h> 17 18 18 19 long compat_arm_syscall(struct pt_regs *regs, int scno); 19 20 long sys_ni_syscall(void); ··· 154 153 #ifdef CONFIG_COMPAT 155 154 void do_el0_svc_compat(struct pt_regs *regs) 156 155 { 157 - el0_svc_common(regs, regs->regs[7], __NR_compat_syscalls, 156 + el0_svc_common(regs, regs->regs[7], __NR_compat32_syscalls, 158 157 compat_sys_call_table); 159 158 } 160 159 #endif
+5 -1
arch/arm64/tools/Makefile
··· 3 3 gen := arch/$(ARCH)/include/generated 4 4 kapi := $(gen)/asm 5 5 6 - kapi-hdrs-y := $(kapi)/cpucap-defs.h $(kapi)/sysreg-defs.h 6 + kapisyshdr-y := cpucap-defs.h sysreg-defs.h 7 + 8 + kapi-hdrs-y := $(addprefix $(kapi)/, $(kapisyshdr-y)) 7 9 8 10 targets += $(addprefix ../../../, $(kapi-hdrs-y)) 9 11 10 12 PHONY += kapi 13 + 14 + all: $(syscall64) kapi 11 15 12 16 kapi: $(kapi-hdrs-y) 13 17
+476
arch/arm64/tools/syscall_32.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + # 3 + # AArch32 (compat) system call definitions. 4 + # 5 + # Copyright (C) 2001-2005 Russell King 6 + # Copyright (C) 2012 ARM Ltd. 7 + # 8 + # This file corresponds to arch/arm/tools/syscall.tbl 9 + # for the native EABI syscalls and should be kept in sync 10 + # Instead of the OABI syscalls, it contains pointers to 11 + # the compat entry points where they differ from the native 12 + # syscalls. 13 + # 14 + 0 common restart_syscall sys_restart_syscall 15 + 1 common exit sys_exit 16 + 2 common fork sys_fork 17 + 3 common read sys_read 18 + 4 common write sys_write 19 + 5 common open sys_open compat_sys_open 20 + 6 common close sys_close 21 + # 7 was sys_waitpid 22 + 8 common creat sys_creat 23 + 9 common link sys_link 24 + 10 common unlink sys_unlink 25 + 11 common execve sys_execve compat_sys_execve 26 + 12 common chdir sys_chdir 27 + # 13 was sys_time 28 + 14 common mknod sys_mknod 29 + 15 common chmod sys_chmod 30 + 16 common lchown sys_lchown16 31 + # 17 was sys_break 32 + # 18 was sys_stat 33 + 19 common lseek sys_lseek compat_sys_lseek 34 + 20 common getpid sys_getpid 35 + 21 common mount sys_mount 36 + # 22 was sys_umount 37 + 23 common setuid sys_setuid16 38 + 24 common getuid sys_getuid16 39 + # 25 was sys_stime 40 + 26 common ptrace sys_ptrace compat_sys_ptrace 41 + # 27 was sys_alarm 42 + # 28 was sys_fstat 43 + 29 common pause sys_pause 44 + # 30 was sys_utime 45 + # 31 was sys_stty 46 + # 32 was sys_gtty 47 + 33 common access sys_access 48 + 34 common nice sys_nice 49 + # 35 was sys_ftime 50 + 36 common sync sys_sync 51 + 37 common kill sys_kill 52 + 38 common rename sys_rename 53 + 39 common mkdir sys_mkdir 54 + 40 common rmdir sys_rmdir 55 + 41 common dup sys_dup 56 + 42 common pipe sys_pipe 57 + 43 common times sys_times compat_sys_times 58 + # 44 was sys_prof 59 + 45 common brk sys_brk 60 + 46 common setgid sys_setgid16 61 + 47 common getgid sys_getgid16 62 + # 48 was sys_signal 63 + 49 common geteuid sys_geteuid16 64 + 50 common getegid sys_getegid16 65 + 51 common acct sys_acct 66 + 52 common umount2 sys_umount 67 + # 53 was sys_lock 68 + 54 common ioctl sys_ioctl compat_sys_ioctl 69 + 55 common fcntl sys_fcntl compat_sys_fcntl 70 + # 56 was sys_mpx 71 + 57 common setpgid sys_setpgid 72 + # 58 was sys_ulimit 73 + # 59 was sys_olduname 74 + 60 common umask sys_umask 75 + 61 common chroot sys_chroot 76 + 62 common ustat sys_ustat compat_sys_ustat 77 + 63 common dup2 sys_dup2 78 + 64 common getppid sys_getppid 79 + 65 common getpgrp sys_getpgrp 80 + 66 common setsid sys_setsid 81 + 67 common sigaction sys_sigaction compat_sys_sigaction 82 + # 68 was sys_sgetmask 83 + # 69 was sys_ssetmask 84 + 70 common setreuid sys_setreuid16 85 + 71 common setregid sys_setregid16 86 + 72 common sigsuspend sys_sigsuspend 87 + 73 common sigpending sys_sigpending compat_sys_sigpending 88 + 74 common sethostname sys_sethostname 89 + 75 common setrlimit sys_setrlimit compat_sys_setrlimit 90 + # 76 was compat_sys_getrlimit 91 + 77 common getrusage sys_getrusage compat_sys_getrusage 92 + 78 common gettimeofday sys_gettimeofday compat_sys_gettimeofday 93 + 79 common settimeofday sys_settimeofday compat_sys_settimeofday 94 + 80 common getgroups sys_getgroups16 95 + 81 common setgroups sys_setgroups16 96 + # 82 was compat_sys_select 97 + 83 common symlink sys_symlink 98 + # 84 was sys_lstat 99 + 85 common readlink sys_readlink 100 + 86 common uselib sys_uselib 101 + 87 common swapon sys_swapon 102 + 88 common reboot sys_reboot 103 + # 89 was sys_readdir 104 + # 90 was sys_mmap 105 + 91 common munmap sys_munmap 106 + 92 common truncate sys_truncate compat_sys_truncate 107 + 93 common ftruncate sys_ftruncate compat_sys_ftruncate 108 + 94 common fchmod sys_fchmod 109 + 95 common fchown sys_fchown16 110 + 96 common getpriority sys_getpriority 111 + 97 common setpriority sys_setpriority 112 + # 98 was sys_profil 113 + 99 common statfs sys_statfs compat_sys_statfs 114 + 100 common fstatfs sys_fstatfs compat_sys_fstatfs 115 + # 101 was sys_ioperm 116 + # 102 was sys_socketcall 117 + 103 common syslog sys_syslog 118 + 104 common setitimer sys_setitimer compat_sys_setitimer 119 + 105 common getitimer sys_getitimer compat_sys_getitimer 120 + 106 common stat sys_newstat compat_sys_newstat 121 + 107 common lstat sys_newlstat compat_sys_newlstat 122 + 108 common fstat sys_newfstat compat_sys_newfstat 123 + # 109 was sys_uname 124 + # 110 was sys_iopl 125 + 111 common vhangup sys_vhangup 126 + # 112 was sys_idle 127 + # 113 was sys_syscall 128 + 114 common wait4 sys_wait4 compat_sys_wait4 129 + 115 common swapoff sys_swapoff 130 + 116 common sysinfo sys_sysinfo compat_sys_sysinfo 131 + # 117 was sys_ipc 132 + 118 common fsync sys_fsync 133 + 119 common sigreturn sys_sigreturn_wrapper compat_sys_sigreturn 134 + 120 common clone sys_clone 135 + 121 common setdomainname sys_setdomainname 136 + 122 common uname sys_newuname 137 + # 123 was sys_modify_ldt 138 + 124 common adjtimex sys_adjtimex_time32 139 + 125 common mprotect sys_mprotect 140 + 126 common sigprocmask sys_sigprocmask compat_sys_sigprocmask 141 + # 127 was sys_create_module 142 + 128 common init_module sys_init_module 143 + 129 common delete_module sys_delete_module 144 + # 130 was sys_get_kernel_syms 145 + 131 common quotactl sys_quotactl 146 + 132 common getpgid sys_getpgid 147 + 133 common fchdir sys_fchdir 148 + 134 common bdflush sys_ni_syscall 149 + 135 common sysfs sys_sysfs 150 + 136 common personality sys_personality 151 + # 137 was sys_afs_syscall 152 + 138 common setfsuid sys_setfsuid16 153 + 139 common setfsgid sys_setfsgid16 154 + 140 common _llseek sys_llseek 155 + 141 common getdents sys_getdents compat_sys_getdents 156 + 142 common _newselect sys_select compat_sys_select 157 + 143 common flock sys_flock 158 + 144 common msync sys_msync 159 + 145 common readv sys_readv 160 + 146 common writev sys_writev 161 + 147 common getsid sys_getsid 162 + 148 common fdatasync sys_fdatasync 163 + 149 common _sysctl sys_ni_syscall 164 + 150 common mlock sys_mlock 165 + 151 common munlock sys_munlock 166 + 152 common mlockall sys_mlockall 167 + 153 common munlockall sys_munlockall 168 + 154 common sched_setparam sys_sched_setparam 169 + 155 common sched_getparam sys_sched_getparam 170 + 156 common sched_setscheduler sys_sched_setscheduler 171 + 157 common sched_getscheduler sys_sched_getscheduler 172 + 158 common sched_yield sys_sched_yield 173 + 159 common sched_get_priority_max sys_sched_get_priority_max 174 + 160 common sched_get_priority_min sys_sched_get_priority_min 175 + 161 common sched_rr_get_interval sys_sched_rr_get_interval_time32 176 + 162 common nanosleep sys_nanosleep_time32 177 + 163 common mremap sys_mremap 178 + 164 common setresuid sys_setresuid16 179 + 165 common getresuid sys_getresuid16 180 + # 166 was sys_vm86 181 + # 167 was sys_query_module 182 + 168 common poll sys_poll 183 + 169 common nfsservctl sys_ni_syscall 184 + 170 common setresgid sys_setresgid16 185 + 171 common getresgid sys_getresgid16 186 + 172 common prctl sys_prctl 187 + 173 common rt_sigreturn sys_rt_sigreturn_wrapper compat_sys_rt_sigreturn 188 + 174 common rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction 189 + 175 common rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask 190 + 176 common rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending 191 + 177 common rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32 192 + 178 common rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo 193 + 179 common rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend 194 + 180 common pread64 sys_pread64 compat_sys_aarch32_pread64 195 + 181 common pwrite64 sys_pwrite64 compat_sys_aarch32_pwrite64 196 + 182 common chown sys_chown16 197 + 183 common getcwd sys_getcwd 198 + 184 common capget sys_capget 199 + 185 common capset sys_capset 200 + 186 common sigaltstack sys_sigaltstack compat_sys_sigaltstack 201 + 187 common sendfile sys_sendfile compat_sys_sendfile 202 + # 188 reserved 203 + # 189 reserved 204 + 190 common vfork sys_vfork 205 + # SuS compliant getrlimit 206 + 191 common ugetrlimit sys_getrlimit compat_sys_getrlimit 207 + 192 common mmap2 sys_mmap2 compat_sys_aarch32_mmap2 208 + 193 common truncate64 sys_truncate64 compat_sys_aarch32_truncate64 209 + 194 common ftruncate64 sys_ftruncate64 compat_sys_aarch32_ftruncate64 210 + 195 common stat64 sys_stat64 211 + 196 common lstat64 sys_lstat64 212 + 197 common fstat64 sys_fstat64 213 + 198 common lchown32 sys_lchown 214 + 199 common getuid32 sys_getuid 215 + 200 common getgid32 sys_getgid 216 + 201 common geteuid32 sys_geteuid 217 + 202 common getegid32 sys_getegid 218 + 203 common setreuid32 sys_setreuid 219 + 204 common setregid32 sys_setregid 220 + 205 common getgroups32 sys_getgroups 221 + 206 common setgroups32 sys_setgroups 222 + 207 common fchown32 sys_fchown 223 + 208 common setresuid32 sys_setresuid 224 + 209 common getresuid32 sys_getresuid 225 + 210 common setresgid32 sys_setresgid 226 + 211 common getresgid32 sys_getresgid 227 + 212 common chown32 sys_chown 228 + 213 common setuid32 sys_setuid 229 + 214 common setgid32 sys_setgid 230 + 215 common setfsuid32 sys_setfsuid 231 + 216 common setfsgid32 sys_setfsgid 232 + 217 common getdents64 sys_getdents64 233 + 218 common pivot_root sys_pivot_root 234 + 219 common mincore sys_mincore 235 + 220 common madvise sys_madvise 236 + 221 common fcntl64 sys_fcntl64 compat_sys_fcntl64 237 + # 222 for tux 238 + # 223 is unused 239 + 224 common gettid sys_gettid 240 + 225 common readahead sys_readahead compat_sys_aarch32_readahead 241 + 226 common setxattr sys_setxattr 242 + 227 common lsetxattr sys_lsetxattr 243 + 228 common fsetxattr sys_fsetxattr 244 + 229 common getxattr sys_getxattr 245 + 230 common lgetxattr sys_lgetxattr 246 + 231 common fgetxattr sys_fgetxattr 247 + 232 common listxattr sys_listxattr 248 + 233 common llistxattr sys_llistxattr 249 + 234 common flistxattr sys_flistxattr 250 + 235 common removexattr sys_removexattr 251 + 236 common lremovexattr sys_lremovexattr 252 + 237 common fremovexattr sys_fremovexattr 253 + 238 common tkill sys_tkill 254 + 239 common sendfile64 sys_sendfile64 255 + 240 common futex sys_futex_time32 256 + 241 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity 257 + 242 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity 258 + 243 common io_setup sys_io_setup compat_sys_io_setup 259 + 244 common io_destroy sys_io_destroy 260 + 245 common io_getevents sys_io_getevents_time32 261 + 246 common io_submit sys_io_submit compat_sys_io_submit 262 + 247 common io_cancel sys_io_cancel 263 + 248 common exit_group sys_exit_group 264 + 249 common lookup_dcookie sys_ni_syscall 265 + 250 common epoll_create sys_epoll_create 266 + 251 common epoll_ctl sys_epoll_ctl 267 + 252 common epoll_wait sys_epoll_wait 268 + 253 common remap_file_pages sys_remap_file_pages 269 + # 254 for set_thread_area 270 + # 255 for get_thread_area 271 + 256 common set_tid_address sys_set_tid_address 272 + 257 common timer_create sys_timer_create compat_sys_timer_create 273 + 258 common timer_settime sys_timer_settime32 274 + 259 common timer_gettime sys_timer_gettime32 275 + 260 common timer_getoverrun sys_timer_getoverrun 276 + 261 common timer_delete sys_timer_delete 277 + 262 common clock_settime sys_clock_settime32 278 + 263 common clock_gettime sys_clock_gettime32 279 + 264 common clock_getres sys_clock_getres_time32 280 + 265 common clock_nanosleep sys_clock_nanosleep_time32 281 + 266 common statfs64 sys_statfs64_wrapper compat_sys_aarch32_statfs64 282 + 267 common fstatfs64 sys_fstatfs64_wrapper compat_sys_aarch32_fstatfs64 283 + 268 common tgkill sys_tgkill 284 + 269 common utimes sys_utimes_time32 285 + 270 common arm_fadvise64_64 sys_arm_fadvise64_64 compat_sys_aarch32_fadvise64_64 286 + 271 common pciconfig_iobase sys_pciconfig_iobase 287 + 272 common pciconfig_read sys_pciconfig_read 288 + 273 common pciconfig_write sys_pciconfig_write 289 + 274 common mq_open sys_mq_open compat_sys_mq_open 290 + 275 common mq_unlink sys_mq_unlink 291 + 276 common mq_timedsend sys_mq_timedsend_time32 292 + 277 common mq_timedreceive sys_mq_timedreceive_time32 293 + 278 common mq_notify sys_mq_notify compat_sys_mq_notify 294 + 279 common mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr 295 + 280 common waitid sys_waitid compat_sys_waitid 296 + 281 common socket sys_socket 297 + 282 common bind sys_bind 298 + 283 common connect sys_connect 299 + 284 common listen sys_listen 300 + 285 common accept sys_accept 301 + 286 common getsockname sys_getsockname 302 + 287 common getpeername sys_getpeername 303 + 288 common socketpair sys_socketpair 304 + 289 common send sys_send 305 + 290 common sendto sys_sendto 306 + 291 common recv sys_recv compat_sys_recv 307 + 292 common recvfrom sys_recvfrom compat_sys_recvfrom 308 + 293 common shutdown sys_shutdown 309 + 294 common setsockopt sys_setsockopt 310 + 295 common getsockopt sys_getsockopt 311 + 296 common sendmsg sys_sendmsg compat_sys_sendmsg 312 + 297 common recvmsg sys_recvmsg compat_sys_recvmsg 313 + 298 common semop sys_semop 314 + 299 common semget sys_semget 315 + 300 common semctl sys_old_semctl compat_sys_old_semctl 316 + 301 common msgsnd sys_msgsnd compat_sys_msgsnd 317 + 302 common msgrcv sys_msgrcv compat_sys_msgrcv 318 + 303 common msgget sys_msgget 319 + 304 common msgctl sys_old_msgctl compat_sys_old_msgctl 320 + 305 common shmat sys_shmat compat_sys_shmat 321 + 306 common shmdt sys_shmdt 322 + 307 common shmget sys_shmget 323 + 308 common shmctl sys_old_shmctl compat_sys_old_shmctl 324 + 309 common add_key sys_add_key 325 + 310 common request_key sys_request_key 326 + 311 common keyctl sys_keyctl compat_sys_keyctl 327 + 312 common semtimedop sys_semtimedop_time32 328 + 313 common vserver sys_ni_syscall 329 + 314 common ioprio_set sys_ioprio_set 330 + 315 common ioprio_get sys_ioprio_get 331 + 316 common inotify_init sys_inotify_init 332 + 317 common inotify_add_watch sys_inotify_add_watch 333 + 318 common inotify_rm_watch sys_inotify_rm_watch 334 + 319 common mbind sys_mbind 335 + 320 common get_mempolicy sys_get_mempolicy 336 + 321 common set_mempolicy sys_set_mempolicy 337 + 322 common openat sys_openat compat_sys_openat 338 + 323 common mkdirat sys_mkdirat 339 + 324 common mknodat sys_mknodat 340 + 325 common fchownat sys_fchownat 341 + 326 common futimesat sys_futimesat_time32 342 + 327 common fstatat64 sys_fstatat64 343 + 328 common unlinkat sys_unlinkat 344 + 329 common renameat sys_renameat 345 + 330 common linkat sys_linkat 346 + 331 common symlinkat sys_symlinkat 347 + 332 common readlinkat sys_readlinkat 348 + 333 common fchmodat sys_fchmodat 349 + 334 common faccessat sys_faccessat 350 + 335 common pselect6 sys_pselect6_time32 compat_sys_pselect6_time32 351 + 336 common ppoll sys_ppoll_time32 compat_sys_ppoll_time32 352 + 337 common unshare sys_unshare 353 + 338 common set_robust_list sys_set_robust_list compat_sys_set_robust_list 354 + 339 common get_robust_list sys_get_robust_list compat_sys_get_robust_list 355 + 340 common splice sys_splice 356 + 341 common arm_sync_file_range sys_sync_file_range2 compat_sys_aarch32_sync_file_range2 357 + 342 common tee sys_tee 358 + 343 common vmsplice sys_vmsplice 359 + 344 common move_pages sys_move_pages 360 + 345 common getcpu sys_getcpu 361 + 346 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 362 + 347 common kexec_load sys_kexec_load compat_sys_kexec_load 363 + 348 common utimensat sys_utimensat_time32 364 + 349 common signalfd sys_signalfd compat_sys_signalfd 365 + 350 common timerfd_create sys_timerfd_create 366 + 351 common eventfd sys_eventfd 367 + 352 common fallocate sys_fallocate compat_sys_aarch32_fallocate 368 + 353 common timerfd_settime sys_timerfd_settime32 369 + 354 common timerfd_gettime sys_timerfd_gettime32 370 + 355 common signalfd4 sys_signalfd4 compat_sys_signalfd4 371 + 356 common eventfd2 sys_eventfd2 372 + 357 common epoll_create1 sys_epoll_create1 373 + 358 common dup3 sys_dup3 374 + 359 common pipe2 sys_pipe2 375 + 360 common inotify_init1 sys_inotify_init1 376 + 361 common preadv sys_preadv compat_sys_preadv 377 + 362 common pwritev sys_pwritev compat_sys_pwritev 378 + 363 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 379 + 364 common perf_event_open sys_perf_event_open 380 + 365 common recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32 381 + 366 common accept4 sys_accept4 382 + 367 common fanotify_init sys_fanotify_init 383 + 368 common fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark 384 + 369 common prlimit64 sys_prlimit64 385 + 370 common name_to_handle_at sys_name_to_handle_at 386 + 371 common open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at 387 + 372 common clock_adjtime sys_clock_adjtime32 388 + 373 common syncfs sys_syncfs 389 + 374 common sendmmsg sys_sendmmsg compat_sys_sendmmsg 390 + 375 common setns sys_setns 391 + 376 common process_vm_readv sys_process_vm_readv 392 + 377 common process_vm_writev sys_process_vm_writev 393 + 378 common kcmp sys_kcmp 394 + 379 common finit_module sys_finit_module 395 + 380 common sched_setattr sys_sched_setattr 396 + 381 common sched_getattr sys_sched_getattr 397 + 382 common renameat2 sys_renameat2 398 + 383 common seccomp sys_seccomp 399 + 384 common getrandom sys_getrandom 400 + 385 common memfd_create sys_memfd_create 401 + 386 common bpf sys_bpf 402 + 387 common execveat sys_execveat compat_sys_execveat 403 + 388 common userfaultfd sys_userfaultfd 404 + 389 common membarrier sys_membarrier 405 + 390 common mlock2 sys_mlock2 406 + 391 common copy_file_range sys_copy_file_range 407 + 392 common preadv2 sys_preadv2 compat_sys_preadv2 408 + 393 common pwritev2 sys_pwritev2 compat_sys_pwritev2 409 + 394 common pkey_mprotect sys_pkey_mprotect 410 + 395 common pkey_alloc sys_pkey_alloc 411 + 396 common pkey_free sys_pkey_free 412 + 397 common statx sys_statx 413 + 398 common rseq sys_rseq 414 + 399 common io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents 415 + 400 common migrate_pages sys_migrate_pages 416 + 401 common kexec_file_load sys_kexec_file_load 417 + # 402 is unused 418 + 403 common clock_gettime64 sys_clock_gettime 419 + 404 common clock_settime64 sys_clock_settime 420 + 405 common clock_adjtime64 sys_clock_adjtime 421 + 406 common clock_getres_time64 sys_clock_getres 422 + 407 common clock_nanosleep_time64 sys_clock_nanosleep 423 + 408 common timer_gettime64 sys_timer_gettime 424 + 409 common timer_settime64 sys_timer_settime 425 + 410 common timerfd_gettime64 sys_timerfd_gettime 426 + 411 common timerfd_settime64 sys_timerfd_settime 427 + 412 common utimensat_time64 sys_utimensat 428 + 413 common pselect6_time64 sys_pselect6 compat_sys_pselect6_time64 429 + 414 common ppoll_time64 sys_ppoll compat_sys_ppoll_time64 430 + 416 common io_pgetevents_time64 sys_io_pgetevents compat_sys_io_pgetevents_time64 431 + 417 common recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64 432 + 418 common mq_timedsend_time64 sys_mq_timedsend 433 + 419 common mq_timedreceive_time64 sys_mq_timedreceive 434 + 420 common semtimedop_time64 sys_semtimedop 435 + 421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64 436 + 422 common futex_time64 sys_futex 437 + 423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval 438 + 424 common pidfd_send_signal sys_pidfd_send_signal 439 + 425 common io_uring_setup sys_io_uring_setup 440 + 426 common io_uring_enter sys_io_uring_enter 441 + 427 common io_uring_register sys_io_uring_register 442 + 428 common open_tree sys_open_tree 443 + 429 common move_mount sys_move_mount 444 + 430 common fsopen sys_fsopen 445 + 431 common fsconfig sys_fsconfig 446 + 432 common fsmount sys_fsmount 447 + 433 common fspick sys_fspick 448 + 434 common pidfd_open sys_pidfd_open 449 + 435 common clone3 sys_clone3 450 + 436 common close_range sys_close_range 451 + 437 common openat2 sys_openat2 452 + 438 common pidfd_getfd sys_pidfd_getfd 453 + 439 common faccessat2 sys_faccessat2 454 + 440 common process_madvise sys_process_madvise 455 + 441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2 456 + 442 common mount_setattr sys_mount_setattr 457 + 443 common quotactl_fd sys_quotactl_fd 458 + 444 common landlock_create_ruleset sys_landlock_create_ruleset 459 + 445 common landlock_add_rule sys_landlock_add_rule 460 + 446 common landlock_restrict_self sys_landlock_restrict_self 461 + # 447 reserved for memfd_secret 462 + 448 common process_mrelease sys_process_mrelease 463 + 449 common futex_waitv sys_futex_waitv 464 + 450 common set_mempolicy_home_node sys_set_mempolicy_home_node 465 + 451 common cachestat sys_cachestat 466 + 452 common fchmodat2 sys_fchmodat2 467 + 453 common map_shadow_stack sys_map_shadow_stack 468 + 454 common futex_wake sys_futex_wake 469 + 455 common futex_wait sys_futex_wait 470 + 456 common futex_requeue sys_futex_requeue 471 + 457 common statmount sys_statmount 472 + 458 common listmount sys_listmount 473 + 459 common lsm_get_self_attr sys_lsm_get_self_attr 474 + 460 common lsm_set_self_attr sys_lsm_set_self_attr 475 + 461 common lsm_list_modules sys_lsm_list_modules 476 + 462 common mseal sys_mseal
+2 -1
arch/csky/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y := syscall_table_32.h 3 + 2 4 generic-y += asm-offsets.h 3 5 generic-y += extable.h 4 - generic-y += gpio.h 5 6 generic-y += kvm_para.h 6 7 generic-y += mcs_spinlock.h 7 8 generic-y += qrwlock.h
+3
arch/csky/include/asm/unistd.h
··· 2 2 3 3 #include <uapi/asm/unistd.h> 4 4 5 + #define __ARCH_WANT_STAT64 6 + #define __ARCH_WANT_SYS_CLONE 7 + 5 8 #define NR_syscalls (__NR_syscalls)
+2
arch/csky/include/uapi/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += unistd_32.h 3 + 2 4 generic-y += ucontext.h
+3 -12
arch/csky/include/uapi/asm/unistd.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 2 3 - #define __ARCH_WANT_STAT64 4 - #define __ARCH_WANT_NEW_STAT 5 - #define __ARCH_WANT_SYS_CLONE 6 - #define __ARCH_WANT_SYS_CLONE3 7 - #define __ARCH_WANT_SET_GET_RLIMIT 8 - #define __ARCH_WANT_TIME32_SYSCALLS 9 - #define __ARCH_WANT_SYNC_FILE_RANGE2 10 - #include <asm-generic/unistd.h> 3 + #include <asm/unistd_32.h> 11 4 12 - #define __NR_set_thread_area (__NR_arch_specific_syscall + 0) 13 - __SYSCALL(__NR_set_thread_area, sys_set_thread_area) 14 - #define __NR_cacheflush (__NR_arch_specific_syscall + 1) 15 - __SYSCALL(__NR_cacheflush, sys_cacheflush) 5 + #define __NR_sync_file_range2 84 6 + #undef __NR_sync_file_range
+4
arch/csky/kernel/Makefile.syscalls
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 3 + syscall_abis_32 += csky time32 stat64 rlimit 4 +
+3 -1
arch/csky/kernel/syscall_table.c
··· 6 6 7 7 #undef __SYSCALL 8 8 #define __SYSCALL(nr, call)[nr] = (call), 9 + #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 9 10 10 11 #define sys_fadvise64_64 sys_csky_fadvise64_64 12 + #define sys_sync_file_range sys_sync_file_range2 11 13 void * const sys_call_table[__NR_syscalls] __page_aligned_data = { 12 14 [0 ... __NR_syscalls - 1] = sys_ni_syscall, 13 - #include <asm/unistd.h> 15 + #include <asm/syscall_table_32.h> 14 16 };
+2
arch/hexagon/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += syscall_table_32.h 3 + 2 4 generic-y += extable.h 3 5 generic-y += iomap.h 4 6 generic-y += kvm_para.h
+10
arch/hexagon/include/asm/unistd.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 + 3 + #define __ARCH_WANT_STAT64 4 + #define __ARCH_WANT_SYS_CLONE 5 + #define __ARCH_WANT_SYS_VFORK 6 + #define __ARCH_WANT_SYS_FORK 7 + 8 + #define __ARCH_BROKEN_SYS_CLONE3 9 + 10 + #include <uapi/asm/unistd.h>
+2
arch/hexagon/include/uapi/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += unistd_32.h 3 + 2 4 generic-y += ucontext.h
+3 -11
arch/hexagon/include/uapi/asm/unistd.h
··· 27 27 * See also: syscalltab.c 28 28 */ 29 29 30 - #define sys_mmap2 sys_mmap_pgoff 31 - #define __ARCH_WANT_RENAMEAT 32 - #define __ARCH_WANT_STAT64 33 - #define __ARCH_WANT_SET_GET_RLIMIT 34 - #define __ARCH_WANT_SYS_EXECVE 35 - #define __ARCH_WANT_SYS_CLONE 36 - #define __ARCH_WANT_SYS_VFORK 37 - #define __ARCH_WANT_SYS_FORK 38 - #define __ARCH_WANT_TIME32_SYSCALLS 39 - #define __ARCH_WANT_SYNC_FILE_RANGE2 30 + #include <asm/unistd_32.h> 40 31 41 - #include <asm-generic/unistd.h> 32 + #define __NR_sync_file_range2 84 33 + #undef __NR_sync_file_range
+3
arch/hexagon/kernel/Makefile.syscalls
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 3 + syscall_abis_32 += hexagon time32 stat64 rlimit renameat
+6 -2
arch/hexagon/kernel/syscalltab.c
··· 11 11 12 12 #include <asm/syscall.h> 13 13 14 - #undef __SYSCALL 15 14 #define __SYSCALL(nr, call) [nr] = (call), 15 + #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 16 + 17 + #define sys_mmap2 sys_mmap_pgoff 16 18 17 19 SYSCALL_DEFINE6(hexagon_fadvise64_64, int, fd, int, advice, 18 20 SC_ARG64(offset), SC_ARG64(len)) ··· 23 21 } 24 22 #define sys_fadvise64_64 sys_hexagon_fadvise64_64 25 23 24 + #define sys_sync_file_range sys_sync_file_range2 25 + 26 26 void *sys_call_table[__NR_syscalls] = { 27 - #include <asm/unistd.h> 27 + #include <asm/syscall_table_32.h> 28 28 };
+1 -16
arch/loongarch/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += syscall_table_64.h 2 3 generated-y += orc_hash.h 3 4 4 - generic-y += dma-contiguous.h 5 5 generic-y += mcs_spinlock.h 6 6 generic-y += parport.h 7 7 generic-y += early_ioremap.h 8 8 generic-y += qrwlock.h 9 9 generic-y += qspinlock.h 10 - generic-y += rwsem.h 11 - generic-y += segment.h 12 10 generic-y += user.h 13 - generic-y += stat.h 14 - generic-y += fcntl.h 15 11 generic-y += ioctl.h 16 - generic-y += ioctls.h 17 - generic-y += mman.h 18 - generic-y += msgbuf.h 19 - generic-y += sembuf.h 20 - generic-y += shmbuf.h 21 12 generic-y += statfs.h 22 - generic-y += socket.h 23 - generic-y += sockios.h 24 - generic-y += termbits.h 25 - generic-y += poll.h 26 13 generic-y += param.h 27 - generic-y += posix_types.h 28 - generic-y += resource.h
+2
arch/loongarch/include/asm/unistd.h
··· 8 8 9 9 #include <uapi/asm/unistd.h> 10 10 11 + #define __ARCH_WANT_SYS_CLONE 12 + 11 13 #define NR_syscalls (__NR_syscalls)
+2
arch/loongarch/include/uapi/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += unistd_64.h 3 + 2 4 generic-y += kvm_para.h
+1 -3
arch/loongarch/include/uapi/asm/unistd.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 - #define __ARCH_WANT_SYS_CLONE 3 - #define __ARCH_WANT_SYS_CLONE3 4 2 5 - #include <asm-generic/unistd.h> 3 + #include <asm/unistd_64.h>
+4
arch/loongarch/kernel/Makefile.syscalls
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 3 + # No special ABIs on loongarch so far 4 + syscall_abis_64 +=
+2 -1
arch/loongarch/kernel/syscall.c
··· 20 20 21 21 #undef __SYSCALL 22 22 #define __SYSCALL(nr, call) [nr] = (call), 23 + #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 23 24 24 25 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, unsigned long, 25 26 prot, unsigned long, flags, unsigned long, fd, unsigned long, offset) ··· 33 32 34 33 void *sys_call_table[__NR_syscalls] = { 35 34 [0 ... __NR_syscalls - 1] = sys_ni_syscall, 36 - #include <asm/unistd.h> 35 + #include <asm/syscall_table_64.h> 37 36 }; 38 37 39 38 typedef long (*sys_call_fn)(unsigned long, unsigned long,
-1
arch/m68k/include/asm/unistd.h
··· 30 30 #define __ARCH_WANT_SYS_SIGPROCMASK 31 31 #define __ARCH_WANT_SYS_FORK 32 32 #define __ARCH_WANT_SYS_VFORK 33 - #define __ARCH_WANT_SYS_CLONE3 34 33 35 34 #endif /* _ASM_M68K_UNISTD_H_ */
-1
arch/mips/include/asm/unistd.h
··· 58 58 # endif 59 59 #define __ARCH_WANT_SYS_FORK 60 60 #define __ARCH_WANT_SYS_CLONE 61 - #define __ARCH_WANT_SYS_CLONE3 62 61 63 62 /* whitelists for checksyscalls */ 64 63 #define __IGNORE_fadvise64_64
+2
arch/nios2/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += syscall_table_32.h 3 + 2 4 generic-y += cmpxchg.h 3 5 generic-y += extable.h 4 6 generic-y += kvm_para.h
+12
arch/nios2/include/asm/unistd.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 + #ifndef __ASM_UNISTD_H 3 + #define __ASM_UNISTD_H 4 + 5 + #include <uapi/asm/unistd.h> 6 + 7 + #define __ARCH_WANT_STAT64 8 + #define __ARCH_WANT_SET_GET_RLIMIT 9 + 10 + #define __ARCH_BROKEN_SYS_CLONE3 11 + 12 + #endif
+2
arch/nios2/include/uapi/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += unistd_32.h 3 + 2 4 generic-y += ucontext.h
+1 -13
arch/nios2/include/uapi/asm/unistd.h
··· 16 16 * 17 17 */ 18 18 19 - #define sys_mmap2 sys_mmap_pgoff 20 - 21 - #define __ARCH_WANT_RENAMEAT 22 - #define __ARCH_WANT_STAT64 23 - #define __ARCH_WANT_SET_GET_RLIMIT 24 - #define __ARCH_WANT_TIME32_SYSCALLS 25 - 26 - /* Use the standard ABI for syscalls */ 27 - #include <asm-generic/unistd.h> 28 - 29 - /* Additional Nios II specific syscalls. */ 30 - #define __NR_cacheflush (__NR_arch_specific_syscall) 31 - __SYSCALL(__NR_cacheflush, sys_cacheflush) 19 + #include <asm/unistd_32.h>
+3
arch/nios2/kernel/Makefile.syscalls
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 3 + syscall_abis_32 += nios2 time32 stat64 renameat rlimit
+4 -2
arch/nios2/kernel/syscall_table.c
··· 9 9 10 10 #include <asm/syscalls.h> 11 11 12 - #undef __SYSCALL 13 12 #define __SYSCALL(nr, call) [nr] = (call), 13 + #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 14 + 15 + #define sys_mmap2 sys_mmap_pgoff 14 16 15 17 void *sys_call_table[__NR_syscalls] = { 16 18 [0 ... __NR_syscalls-1] = sys_ni_syscall, 17 - #include <asm/unistd.h> 19 + #include <asm/syscall_table_32.h> 18 20 };
+2
arch/openrisc/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += syscall_table_32.h 3 + 2 4 generic-y += extable.h 3 5 generic-y += kvm_para.h 4 6 generic-y += parport.h
-4
arch/openrisc/include/asm/syscalls.h
··· 25 25 asmlinkage long __sys_clone3(struct clone_args __user *uargs, size_t size); 26 26 asmlinkage long __sys_fork(void); 27 27 28 - #define sys_clone __sys_clone 29 - #define sys_clone3 __sys_clone3 30 - #define sys_fork __sys_fork 31 - 32 28 #endif /* __ASM_OPENRISC_SYSCALLS_H */
+8
arch/openrisc/include/asm/unistd.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 + 3 + #define __ARCH_WANT_STAT64 4 + #define __ARCH_WANT_SYS_FORK 5 + #define __ARCH_WANT_SYS_CLONE 6 + #define __ARCH_WANT_TIME32_SYSCALLS 7 + 8 + #include <uapi/asm/unistd.h>
+2
arch/openrisc/include/uapi/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += unistd_32.h 3 + 2 4 generic-y += ucontext.h
+1 -14
arch/openrisc/include/uapi/asm/unistd.h
··· 17 17 * (at your option) any later version. 18 18 */ 19 19 20 - #define sys_mmap2 sys_mmap_pgoff 21 - 22 - #define __ARCH_WANT_RENAMEAT 23 - #define __ARCH_WANT_STAT64 24 - #define __ARCH_WANT_SET_GET_RLIMIT 25 - #define __ARCH_WANT_SYS_FORK 26 - #define __ARCH_WANT_SYS_CLONE 27 - #define __ARCH_WANT_SYS_CLONE3 28 - #define __ARCH_WANT_TIME32_SYSCALLS 29 - 30 - #include <asm-generic/unistd.h> 31 - 32 - #define __NR_or1k_atomic __NR_arch_specific_syscall 33 - __SYSCALL(__NR_or1k_atomic, sys_or1k_atomic) 20 + #include <asm/unistd_32.h>
+3
arch/openrisc/kernel/Makefile.syscalls
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 3 + syscall_abis_32 += or1k time32 stat64 rlimit renameat
+7 -2
arch/openrisc/kernel/sys_call_table.c
··· 16 16 17 17 #include <asm/syscalls.h> 18 18 19 - #undef __SYSCALL 20 19 #define __SYSCALL(nr, call) [nr] = (call), 20 + #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 21 + 22 + #define sys_mmap2 sys_mmap_pgoff 23 + #define sys_clone __sys_clone 24 + #define sys_clone3 __sys_clone3 25 + #define sys_fork __sys_fork 21 26 22 27 void *sys_call_table[__NR_syscalls] = { 23 - #include <asm/unistd.h> 28 + #include <asm/syscall_table_32.h> 24 29 };
-1
arch/parisc/include/asm/unistd.h
··· 160 160 #define __ARCH_WANT_SYS_FORK 161 161 #define __ARCH_WANT_SYS_VFORK 162 162 #define __ARCH_WANT_SYS_CLONE 163 - #define __ARCH_WANT_SYS_CLONE3 164 163 #define __ARCH_WANT_COMPAT_SYS_SENDFILE 165 164 #define __ARCH_WANT_COMPAT_STAT 166 165
-1
arch/powerpc/include/asm/unistd.h
··· 51 51 #define __ARCH_WANT_SYS_FORK 52 52 #define __ARCH_WANT_SYS_VFORK 53 53 #define __ARCH_WANT_SYS_CLONE 54 - #define __ARCH_WANT_SYS_CLONE3 55 54 56 55 #endif /* __ASSEMBLY__ */ 57 56 #endif /* _ASM_POWERPC_UNISTD_H_ */
+3
arch/riscv/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += syscall_table_32.h 3 + syscall-y += syscall_table_64.h 4 + 2 5 generic-y += early_ioremap.h 3 6 generic-y += flat.h 4 7 generic-y += kvm_para.h
+7
arch/riscv/include/asm/syscall_table.h
··· 1 + #include <asm/bitsperlong.h> 2 + 3 + #if __BITS_PER_LONG == 64 4 + #include <asm/syscall_table_64.h> 5 + #else 6 + #include <asm/syscall_table_32.h> 7 + #endif
+8 -5
arch/riscv/include/asm/unistd.h
··· 3 3 * Copyright (C) 2012 Regents of the University of California 4 4 */ 5 5 6 - /* 7 - * There is explicitly no include guard here because this file is expected to 8 - * be included multiple times. 9 - */ 10 - 11 6 #define __ARCH_WANT_SYS_CLONE 12 7 13 8 #ifdef CONFIG_COMPAT ··· 15 20 #define __ARCH_WANT_COMPAT_READAHEAD 16 21 #define __ARCH_WANT_COMPAT_FADVISE64_64 17 22 #endif 23 + 24 + #if defined(__LP64__) && !defined(__SYSCALL_COMPAT) 25 + #define __ARCH_WANT_NEW_STAT 26 + #define __ARCH_WANT_SET_GET_RLIMIT 27 + #endif /* __LP64__ */ 28 + 29 + #define __ARCH_WANT_MEMFD_SECRET 30 + 18 31 19 32 #include <uapi/asm/unistd.h> 20 33
+2
arch/riscv/include/uapi/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += unistd_32.h 3 + syscall-y += unistd_64.h
+5 -36
arch/riscv/include/uapi/asm/unistd.h
··· 14 14 * You should have received a copy of the GNU General Public License 15 15 * along with this program. If not, see <https://www.gnu.org/licenses/>. 16 16 */ 17 + #include <asm/bitsperlong.h> 17 18 18 - #if defined(__LP64__) && !defined(__SYSCALL_COMPAT) 19 - #define __ARCH_WANT_NEW_STAT 20 - #define __ARCH_WANT_SET_GET_RLIMIT 21 - #endif /* __LP64__ */ 22 - 23 - #define __ARCH_WANT_SYS_CLONE3 24 - #define __ARCH_WANT_MEMFD_SECRET 25 - 26 - #include <asm-generic/unistd.h> 27 - 28 - /* 29 - * Allows the instruction cache to be flushed from userspace. Despite RISC-V 30 - * having a direct 'fence.i' instruction available to userspace (which we 31 - * can't trap!), that's not actually viable when running on Linux because the 32 - * kernel might schedule a process on another hart. There is no way for 33 - * userspace to handle this without invoking the kernel (as it doesn't know the 34 - * thread->hart mappings), so we've defined a RISC-V specific system call to 35 - * flush the instruction cache. 36 - * 37 - * __NR_riscv_flush_icache is defined to flush the instruction cache over an 38 - * address range, with the flush applying to either all threads or just the 39 - * caller. We don't currently do anything with the address range, that's just 40 - * in there for forwards compatibility. 41 - */ 42 - #ifndef __NR_riscv_flush_icache 43 - #define __NR_riscv_flush_icache (__NR_arch_specific_syscall + 15) 19 + #if __BITS_PER_LONG == 64 20 + #include <asm/unistd_64.h> 21 + #else 22 + #include <asm/unistd_32.h> 44 23 #endif 45 - __SYSCALL(__NR_riscv_flush_icache, sys_riscv_flush_icache) 46 - 47 - /* 48 - * Allows userspace to query the kernel for CPU architecture and 49 - * microarchitecture details across a given set of CPUs. 50 - */ 51 - #ifndef __NR_riscv_hwprobe 52 - #define __NR_riscv_hwprobe (__NR_arch_specific_syscall + 14) 53 - #endif 54 - __SYSCALL(__NR_riscv_hwprobe, sys_riscv_hwprobe)
+4
arch/riscv/kernel/Makefile.syscalls
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 3 + syscall_abis_32 += riscv memfd_secret 4 + syscall_abis_64 += riscv newstat rlimit memfd_secret
+4 -2
arch/riscv/kernel/compat_syscall_table.c
··· 8 8 #include <asm-generic/syscalls.h> 9 9 #include <asm/syscall.h> 10 10 11 + #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat) 12 + 11 13 #undef __SYSCALL 12 14 #define __SYSCALL(nr, call) asmlinkage long __riscv_##call(const struct pt_regs *); 13 - #include <asm/unistd.h> 15 + #include <asm/syscall_table_32.h> 14 16 15 17 #undef __SYSCALL 16 18 #define __SYSCALL(nr, call) [nr] = __riscv_##call, ··· 21 19 22 20 void * const compat_sys_call_table[__NR_syscalls] = { 23 21 [0 ... __NR_syscalls - 1] = __riscv_sys_ni_syscall, 24 - #include <asm/unistd.h> 22 + #include <asm/syscall_table_32.h> 25 23 };
+4 -2
arch/riscv/kernel/syscall_table.c
··· 9 9 #include <asm-generic/syscalls.h> 10 10 #include <asm/syscall.h> 11 11 12 + #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 13 + 12 14 #undef __SYSCALL 13 15 #define __SYSCALL(nr, call) asmlinkage long __riscv_##call(const struct pt_regs *); 14 - #include <asm/unistd.h> 16 + #include <asm/syscall_table.h> 15 17 16 18 #undef __SYSCALL 17 19 #define __SYSCALL(nr, call) [nr] = __riscv_##call, 18 20 19 21 void * const sys_call_table[__NR_syscalls] = { 20 22 [0 ... __NR_syscalls - 1] = __riscv_sys_ni_syscall, 21 - #include <asm/unistd.h> 23 + #include <asm/syscall_table.h> 22 24 };
-1
arch/s390/include/asm/unistd.h
··· 35 35 #define __ARCH_WANT_SYS_FORK 36 36 #define __ARCH_WANT_SYS_VFORK 37 37 #define __ARCH_WANT_SYS_CLONE 38 - #define __ARCH_WANT_SYS_CLONE3 39 38 40 39 #endif /* _ASM_S390_UNISTD_H_ */
+2
arch/sh/include/asm/unistd.h
··· 28 28 # define __ARCH_WANT_SYS_VFORK 29 29 # define __ARCH_WANT_SYS_CLONE 30 30 31 + #define __ARCH_BROKEN_SYS_CLONE3 32 + 31 33 #include <uapi/asm/unistd.h>
+2
arch/sparc/include/asm/unistd.h
··· 49 49 #define __ARCH_WANT_COMPAT_STAT 50 50 #endif 51 51 52 + #define __ARCH_BROKEN_SYS_CLONE3 53 + 52 54 #ifdef __32bit_syscall_numbers__ 53 55 /* Sparc 32-bit only has the "setresuid32", "getresuid32" variants, 54 56 * it never had the plain ones and there is no value to adding those
-1
arch/um/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - generic-y += bpf_perf_event.h 3 2 generic-y += bug.h 4 3 generic-y += compat.h 5 4 generic-y += current.h
+9
arch/um/include/asm/bpf_perf_event.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + 3 + /* 4 + * asm-generic/bpf_perf_event.h is part of the uapi headers, but since 5 + * arch/um has no uapi of its on, we can't use the "generic-y" 6 + * Kbuild rule to generate the wrapper 7 + */ 8 + 9 + #include <asm-generic/bpf_perf_event.h>
-1
arch/x86/include/asm/unistd.h
··· 56 56 # define __ARCH_WANT_SYS_FORK 57 57 # define __ARCH_WANT_SYS_VFORK 58 58 # define __ARCH_WANT_SYS_CLONE 59 - # define __ARCH_WANT_SYS_CLONE3 60 59 61 60 #endif /* _ASM_X86_UNISTD_H */
-1
arch/xtensa/include/asm/unistd.h
··· 3 3 #define _XTENSA_UNISTD_H 4 4 5 5 #define __ARCH_WANT_SYS_CLONE 6 - #define __ARCH_WANT_SYS_CLONE3 7 6 #include <uapi/asm/unistd.h> 8 7 9 8 #define __ARCH_WANT_NEW_STAT
-1
include/asm-generic/Kbuild
··· 9 9 mandatory-y += barrier.h 10 10 mandatory-y += bitops.h 11 11 mandatory-y += bug.h 12 - mandatory-y += bugs.h 13 12 mandatory-y += cacheflush.h 14 13 mandatory-y += cfi.h 15 14 mandatory-y += checksum.h
-3
include/asm-generic/fixmap.h
··· 97 97 #define set_fixmap_io(idx, phys) \ 98 98 __set_fixmap(idx, phys, FIXMAP_PAGE_IO) 99 99 100 - #define set_fixmap_offset_io(idx, phys) \ 101 - __set_fixmap_offset(idx, phys, FIXMAP_PAGE_IO) 102 - 103 100 #endif /* __ASSEMBLY__ */ 104 101 #endif /* __ASM_GENERIC_FIXMAP_H */
+1 -1
include/asm-generic/vmlinux.lds.h
··· 103 103 #define DATA_MAIN .data .data.[0-9a-zA-Z_]* .data..L* .data..compoundliteral* .data.$__unnamed_* .data.$L* 104 104 #define SDATA_MAIN .sdata .sdata.[0-9a-zA-Z_]* 105 105 #define RODATA_MAIN .rodata .rodata.[0-9a-zA-Z_]* .rodata..L* 106 - #define BSS_MAIN .bss .bss.[0-9a-zA-Z_]* .bss..compoundliteral* 106 + #define BSS_MAIN .bss .bss.[0-9a-zA-Z_]* .bss..L* .bss..compoundliteral* 107 107 #define SBSS_MAIN .sbss .sbss.[0-9a-zA-Z_]* 108 108 #else 109 109 #define TEXT_MAIN .text
-4
include/uapi/asm-generic/unistd.h
··· 776 776 __SYSCALL(__NR_fspick, sys_fspick) 777 777 #define __NR_pidfd_open 434 778 778 __SYSCALL(__NR_pidfd_open, sys_pidfd_open) 779 - 780 - #ifdef __ARCH_WANT_SYS_CLONE3 781 779 #define __NR_clone3 435 782 780 __SYSCALL(__NR_clone3, sys_clone3) 783 - #endif 784 - 785 781 #define __NR_close_range 436 786 782 __SYSCALL(__NR_close_range, sys_close_range) 787 783 #define __NR_openat2 437
+5 -3
kernel/fork.c
··· 2941 2941 } 2942 2942 #endif 2943 2943 2944 - #ifdef __ARCH_WANT_SYS_CLONE3 2945 - 2946 2944 noinline static int copy_clone_args_from_user(struct kernel_clone_args *kargs, 2947 2945 struct clone_args __user *uargs, 2948 2946 size_t usize) ··· 3084 3086 struct kernel_clone_args kargs; 3085 3087 pid_t set_tid[MAX_PID_NS_LEVEL]; 3086 3088 3089 + #ifdef __ARCH_BROKEN_SYS_CLONE3 3090 + #warning clone3() entry point is missing, please fix 3091 + return -ENOSYS; 3092 + #endif 3093 + 3087 3094 kargs.set_tid = set_tid; 3088 3095 3089 3096 err = copy_clone_args_from_user(&kargs, uargs, size); ··· 3100 3097 3101 3098 return kernel_clone(&kargs); 3102 3099 } 3103 - #endif 3104 3100 3105 3101 void walk_process_tree(struct task_struct *top, proc_visitor visitor, void *data) 3106 3102 {
-2
kernel/sys_ni.c
··· 76 76 COND_SYSCALL(acct); 77 77 COND_SYSCALL(capget); 78 78 COND_SYSCALL(capset); 79 - /* __ARCH_WANT_SYS_CLONE3 */ 80 - COND_SYSCALL(clone3); 81 79 COND_SYSCALL(futex); 82 80 COND_SYSCALL(futex_time32); 83 81 COND_SYSCALL(set_robust_list);
-58
scripts/Makefile.asm-generic
··· 1 - # SPDX-License-Identifier: GPL-2.0 2 - # include/asm-generic contains a lot of files that are used 3 - # verbatim by several architectures. 4 - # 5 - # This Makefile reads the file arch/$(SRCARCH)/include/(uapi/)/asm/Kbuild 6 - # and for each file listed in this file with generic-y creates 7 - # a small wrapper file in arch/$(SRCARCH)/include/generated/(uapi/)/asm. 8 - 9 - PHONY := all 10 - all: 11 - 12 - src := $(srctree)/$(subst /generated,,$(obj)) 13 - 14 - include $(srctree)/scripts/Kbuild.include 15 - -include $(kbuild-file) 16 - 17 - # $(generic)/Kbuild lists mandatory-y. Exclude um since it is a special case. 18 - ifneq ($(SRCARCH),um) 19 - include $(srctree)/$(generic)/Kbuild 20 - endif 21 - 22 - redundant := $(filter $(mandatory-y) $(generated-y), $(generic-y)) 23 - redundant += $(foreach f, $(generic-y), $(if $(wildcard $(src)/$(f)),$(f))) 24 - redundant := $(sort $(redundant)) 25 - $(if $(redundant),\ 26 - $(warning redundant generic-y found in $(src)/Kbuild: $(redundant))) 27 - 28 - # If arch does not implement mandatory headers, fallback to asm-generic ones. 29 - mandatory-y := $(filter-out $(generated-y), $(mandatory-y)) 30 - generic-y += $(foreach f, $(mandatory-y), $(if $(wildcard $(src)/$(f)),,$(f))) 31 - 32 - generic-y := $(addprefix $(obj)/, $(generic-y)) 33 - generated-y := $(addprefix $(obj)/, $(generated-y)) 34 - 35 - # Remove stale wrappers when the corresponding files are removed from generic-y 36 - old-headers := $(wildcard $(obj)/*.h) 37 - unwanted := $(filter-out $(generic-y) $(generated-y),$(old-headers)) 38 - 39 - quiet_cmd_wrap = WRAP $@ 40 - cmd_wrap = echo "\#include <asm-generic/$*.h>" > $@ 41 - 42 - quiet_cmd_remove = REMOVE $(unwanted) 43 - cmd_remove = rm -f $(unwanted) 44 - 45 - all: $(generic-y) 46 - $(if $(unwanted),$(call cmd,remove)) 47 - @: 48 - 49 - $(obj)/%.h: 50 - $(call cmd,wrap) 51 - 52 - # Create output directory. Skip it if at least one old header exists 53 - # since we know the output directory already exists. 54 - ifeq ($(old-headers),) 55 - $(shell mkdir -p $(obj)) 56 - endif 57 - 58 - .PHONY: $(PHONY)
+98
scripts/Makefile.asm-headers
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + # include/asm-generic contains a lot of files that are used 3 + # verbatim by several architectures. 4 + # 5 + # This Makefile generates arch/$(SRCARCH)/include/generated/(uapi/)/asm 6 + # headers from multiple sources: 7 + # - a small wrapper to include the corresponding asm-generic/*.h 8 + # is generated for each file listed as generic-y 9 + # - uapi/asm/unistd_*.h files listed as syscalls-y are generated from 10 + # syscall.tbl with the __NR_* macros 11 + # - Corresponding asm/syscall_table_*.h are generated from the same input 12 + 13 + PHONY := all 14 + all: 15 + 16 + src := $(srctree)/$(subst /generated,,$(obj)) 17 + 18 + syscall_abis_32 += common,32 19 + syscall_abis_64 += common,64 20 + syscalltbl := $(srctree)/scripts/syscall.tbl 21 + syshdr-args := --emit-nr 22 + 23 + # let architectures override $(syscall_abis_%) and $(syscalltbl) 24 + -include $(srctree)/arch/$(SRCARCH)/kernel/Makefile.syscalls 25 + include $(srctree)/scripts/Kbuild.include 26 + -include $(kbuild-file) 27 + 28 + syshdr := $(srctree)/scripts/syscallhdr.sh 29 + systbl := $(srctree)/scripts/syscalltbl.sh 30 + 31 + # $(generic)/Kbuild lists mandatory-y. Exclude um since it is a special case. 32 + ifneq ($(SRCARCH),um) 33 + include $(srctree)/$(generic)/Kbuild 34 + endif 35 + 36 + redundant := $(filter $(mandatory-y) $(generated-y), $(generic-y)) 37 + redundant += $(foreach f, $(generic-y), $(if $(wildcard $(src)/$(f)),$(f))) 38 + redundant := $(sort $(redundant)) 39 + $(if $(redundant),\ 40 + $(warning redundant generic-y found in $(src)/Kbuild: $(redundant))) 41 + 42 + # If arch does not implement mandatory headers, fallback to asm-generic ones. 43 + mandatory-y := $(filter-out $(generated-y), $(mandatory-y)) 44 + generic-y += $(foreach f, $(mandatory-y), $(if $(wildcard $(src)/$(f)),,$(f))) 45 + 46 + generic-y := $(addprefix $(obj)/, $(generic-y)) 47 + syscall-y := $(addprefix $(obj)/, $(syscall-y)) 48 + generated-y := $(addprefix $(obj)/, $(generated-y)) 49 + 50 + # Remove stale wrappers when the corresponding files are removed from generic-y 51 + old-headers := $(wildcard $(obj)/*.h) 52 + unwanted := $(filter-out $(generic-y) $(generated-y) $(syscall-y),$(old-headers)) 53 + 54 + quiet_cmd_wrap = WRAP $@ 55 + cmd_wrap = echo "\#include <asm-generic/$*.h>" > $@ 56 + 57 + quiet_cmd_remove = REMOVE $(unwanted) 58 + cmd_remove = rm -f $(unwanted) 59 + 60 + quiet_cmd_syshdr = SYSHDR $@ 61 + cmd_syshdr = $(CONFIG_SHELL) $(syshdr) \ 62 + $(if $(syshdr-args-$*),$(syshdr-args-$*),$(syshdr-args)) \ 63 + $(if $(syscall_compat),--prefix "compat$*_") \ 64 + --abis $(subst $(space),$(comma),$(strip $(syscall_abis_$*))) \ 65 + $< $@ 66 + 67 + quiet_cmd_systbl = SYSTBL $@ 68 + cmd_systbl = $(CONFIG_SHELL) $(systbl) \ 69 + $(if $(systbl-args-$*),$(systbl-args-$*),$(systbl-args)) \ 70 + --abis $(subst $(space),$(comma),$(strip $(syscall_abis_$*))) \ 71 + $< $@ 72 + 73 + all: $(generic-y) $(syscall-y) 74 + $(if $(unwanted),$(call cmd,remove)) 75 + @: 76 + 77 + $(obj)/%.h: $(srctree)/$(generic)/%.h 78 + $(call cmd,wrap) 79 + 80 + $(obj)/unistd_%.h: $(syscalltbl) $(syshdr) FORCE 81 + $(call if_changed,syshdr) 82 + 83 + $(obj)/unistd_compat_%.h: syscall_compat:=1 84 + $(obj)/unistd_compat_%.h: $(syscalltbl) $(syshdr) FORCE 85 + $(call if_changed,syshdr) 86 + 87 + $(obj)/syscall_table_%.h: $(syscalltbl) $(systbl) FORCE 88 + $(call if_changed,systbl) 89 + 90 + # Create output directory. Skip it if at least one old header exists 91 + # since we know the output directory already exists. 92 + ifeq ($(old-headers),) 93 + $(shell mkdir -p $(obj)) 94 + endif 95 + 96 + FORCE: 97 + 98 + .PHONY: $(PHONY)
+404
scripts/syscall.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # This file contains the system call numbers for all of the 4 + # more recently added architectures. 5 + # 6 + # As a basic principle, no duplication of functionality 7 + # should be added, e.g. we don't use lseek when llseek 8 + # is present. New architectures should use this file 9 + # and implement the less feature-full calls in user space. 10 + # 11 + 0 common io_setup sys_io_setup compat_sys_io_setup 12 + 1 common io_destroy sys_io_destroy 13 + 2 common io_submit sys_io_submit compat_sys_io_submit 14 + 3 common io_cancel sys_io_cancel 15 + 4 time32 io_getevents sys_io_getevents_time32 16 + 4 64 io_getevents sys_io_getevents 17 + 5 common setxattr sys_setxattr 18 + 6 common lsetxattr sys_lsetxattr 19 + 7 common fsetxattr sys_fsetxattr 20 + 8 common getxattr sys_getxattr 21 + 9 common lgetxattr sys_lgetxattr 22 + 10 common fgetxattr sys_fgetxattr 23 + 11 common listxattr sys_listxattr 24 + 12 common llistxattr sys_llistxattr 25 + 13 common flistxattr sys_flistxattr 26 + 14 common removexattr sys_removexattr 27 + 15 common lremovexattr sys_lremovexattr 28 + 16 common fremovexattr sys_fremovexattr 29 + 17 common getcwd sys_getcwd 30 + 18 common lookup_dcookie sys_ni_syscall 31 + 19 common eventfd2 sys_eventfd2 32 + 20 common epoll_create1 sys_epoll_create1 33 + 21 common epoll_ctl sys_epoll_ctl 34 + 22 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 35 + 23 common dup sys_dup 36 + 24 common dup3 sys_dup3 37 + 25 32 fcntl64 sys_fcntl64 compat_sys_fcntl64 38 + 25 64 fcntl sys_fcntl 39 + 26 common inotify_init1 sys_inotify_init1 40 + 27 common inotify_add_watch sys_inotify_add_watch 41 + 28 common inotify_rm_watch sys_inotify_rm_watch 42 + 29 common ioctl sys_ioctl compat_sys_ioctl 43 + 30 common ioprio_set sys_ioprio_set 44 + 31 common ioprio_get sys_ioprio_get 45 + 32 common flock sys_flock 46 + 33 common mknodat sys_mknodat 47 + 34 common mkdirat sys_mkdirat 48 + 35 common unlinkat sys_unlinkat 49 + 36 common symlinkat sys_symlinkat 50 + 37 common linkat sys_linkat 51 + # renameat is superseded with flags by renameat2 52 + 38 renameat renameat sys_renameat 53 + 39 common umount2 sys_umount 54 + 40 common mount sys_mount 55 + 41 common pivot_root sys_pivot_root 56 + 43 32 statfs64 sys_statfs64 compat_sys_statfs64 57 + 43 64 statfs sys_statfs 58 + 44 32 fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 59 + 44 64 fstatfs sys_fstatfs 60 + 45 32 truncate64 sys_truncate64 compat_sys_truncate64 61 + 45 64 truncate sys_truncate 62 + 46 32 ftruncate64 sys_ftruncate64 compat_sys_ftruncate64 63 + 46 64 ftruncate sys_ftruncate 64 + 47 common fallocate sys_fallocate compat_sys_fallocate 65 + 48 common faccessat sys_faccessat 66 + 49 common chdir sys_chdir 67 + 50 common fchdir sys_fchdir 68 + 51 common chroot sys_chroot 69 + 52 common fchmod sys_fchmod 70 + 53 common fchmodat sys_fchmodat 71 + 54 common fchownat sys_fchownat 72 + 55 common fchown sys_fchown 73 + 56 common openat sys_openat 74 + 57 common close sys_close 75 + 58 common vhangup sys_vhangup 76 + 59 common pipe2 sys_pipe2 77 + 60 common quotactl sys_quotactl 78 + 61 common getdents64 sys_getdents64 79 + 62 32 llseek sys_llseek 80 + 62 64 lseek sys_lseek 81 + 63 common read sys_read 82 + 64 common write sys_write 83 + 65 common readv sys_readv sys_readv 84 + 66 common writev sys_writev sys_writev 85 + 67 common pread64 sys_pread64 compat_sys_pread64 86 + 68 common pwrite64 sys_pwrite64 compat_sys_pwrite64 87 + 69 common preadv sys_preadv compat_sys_preadv 88 + 70 common pwritev sys_pwritev compat_sys_pwritev 89 + 71 32 sendfile64 sys_sendfile64 90 + 71 64 sendfile sys_sendfile64 91 + 72 time32 pselect6 sys_pselect6_time32 compat_sys_pselect6_time32 92 + 72 64 pselect6 sys_pselect6 93 + 73 time32 ppoll sys_ppoll_time32 compat_sys_ppoll_time32 94 + 73 64 ppoll sys_ppoll 95 + 74 common signalfd4 sys_signalfd4 compat_sys_signalfd4 96 + 75 common vmsplice sys_vmsplice 97 + 76 common splice sys_splice 98 + 77 common tee sys_tee 99 + 78 common readlinkat sys_readlinkat 100 + 79 stat64 fstatat64 sys_fstatat64 101 + 79 newstat fstatat sys_newfstatat 102 + 80 stat64 fstat64 sys_fstat64 103 + 80 newstat fstat sys_newfstat 104 + 81 common sync sys_sync 105 + 82 common fsync sys_fsync 106 + 83 common fdatasync sys_fdatasync 107 + 84 common sync_file_range sys_sync_file_range compat_sys_sync_file_range 108 + 85 common timerfd_create sys_timerfd_create 109 + 86 time32 timerfd_settime sys_timerfd_settime32 110 + 86 64 timerfd_settime sys_timerfd_settime 111 + 87 time32 timerfd_gettime sys_timerfd_gettime32 112 + 87 64 timerfd_gettime sys_timerfd_gettime 113 + 88 time32 utimensat sys_utimensat_time32 114 + 88 64 utimensat sys_utimensat 115 + 89 common acct sys_acct 116 + 90 common capget sys_capget 117 + 91 common capset sys_capset 118 + 92 common personality sys_personality 119 + 93 common exit sys_exit 120 + 94 common exit_group sys_exit_group 121 + 95 common waitid sys_waitid compat_sys_waitid 122 + 96 common set_tid_address sys_set_tid_address 123 + 97 common unshare sys_unshare 124 + 98 time32 futex sys_futex_time32 125 + 98 64 futex sys_futex 126 + 99 common set_robust_list sys_set_robust_list compat_sys_set_robust_list 127 + 100 common get_robust_list sys_get_robust_list compat_sys_get_robust_list 128 + 101 time32 nanosleep sys_nanosleep_time32 129 + 101 64 nanosleep sys_nanosleep 130 + 102 common getitimer sys_getitimer compat_sys_getitimer 131 + 103 common setitimer sys_setitimer compat_sys_setitimer 132 + 104 common kexec_load sys_kexec_load compat_sys_kexec_load 133 + 105 common init_module sys_init_module 134 + 106 common delete_module sys_delete_module 135 + 107 common timer_create sys_timer_create compat_sys_timer_create 136 + 108 time32 timer_gettime sys_timer_gettime32 137 + 108 64 timer_gettime sys_timer_gettime 138 + 109 common timer_getoverrun sys_timer_getoverrun 139 + 110 time32 timer_settime sys_timer_settime32 140 + 110 64 timer_settime sys_timer_settime 141 + 111 common timer_delete sys_timer_delete 142 + 112 time32 clock_settime sys_clock_settime32 143 + 112 64 clock_settime sys_clock_settime 144 + 113 time32 clock_gettime sys_clock_gettime32 145 + 113 64 clock_gettime sys_clock_gettime 146 + 114 time32 clock_getres sys_clock_getres_time32 147 + 114 64 clock_getres sys_clock_getres 148 + 115 time32 clock_nanosleep sys_clock_nanosleep_time32 149 + 115 64 clock_nanosleep sys_clock_nanosleep 150 + 116 common syslog sys_syslog 151 + 117 common ptrace sys_ptrace compat_sys_ptrace 152 + 118 common sched_setparam sys_sched_setparam 153 + 119 common sched_setscheduler sys_sched_setscheduler 154 + 120 common sched_getscheduler sys_sched_getscheduler 155 + 121 common sched_getparam sys_sched_getparam 156 + 122 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity 157 + 123 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity 158 + 124 common sched_yield sys_sched_yield 159 + 125 common sched_get_priority_max sys_sched_get_priority_max 160 + 126 common sched_get_priority_min sys_sched_get_priority_min 161 + 127 time32 sched_rr_get_interval sys_sched_rr_get_interval_time32 162 + 127 64 sched_rr_get_interval sys_sched_rr_get_interval 163 + 128 common restart_syscall sys_restart_syscall 164 + 129 common kill sys_kill 165 + 130 common tkill sys_tkill 166 + 131 common tgkill sys_tgkill 167 + 132 common sigaltstack sys_sigaltstack compat_sys_sigaltstack 168 + 133 common rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend 169 + 134 common rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction 170 + 135 common rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask 171 + 136 common rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending 172 + 137 time32 rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32 173 + 137 64 rt_sigtimedwait sys_rt_sigtimedwait 174 + 138 common rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo 175 + 139 common rt_sigreturn sys_rt_sigreturn compat_sys_rt_sigreturn 176 + 140 common setpriority sys_setpriority 177 + 141 common getpriority sys_getpriority 178 + 142 common reboot sys_reboot 179 + 143 common setregid sys_setregid 180 + 144 common setgid sys_setgid 181 + 145 common setreuid sys_setreuid 182 + 146 common setuid sys_setuid 183 + 147 common setresuid sys_setresuid 184 + 148 common getresuid sys_getresuid 185 + 149 common setresgid sys_setresgid 186 + 150 common getresgid sys_getresgid 187 + 151 common setfsuid sys_setfsuid 188 + 152 common setfsgid sys_setfsgid 189 + 153 common times sys_times compat_sys_times 190 + 154 common setpgid sys_setpgid 191 + 155 common getpgid sys_getpgid 192 + 156 common getsid sys_getsid 193 + 157 common setsid sys_setsid 194 + 158 common getgroups sys_getgroups 195 + 159 common setgroups sys_setgroups 196 + 160 common uname sys_newuname 197 + 161 common sethostname sys_sethostname 198 + 162 common setdomainname sys_setdomainname 199 + # getrlimit and setrlimit are superseded with prlimit64 200 + 163 rlimit getrlimit sys_getrlimit compat_sys_getrlimit 201 + 164 rlimit setrlimit sys_setrlimit compat_sys_setrlimit 202 + 165 common getrusage sys_getrusage compat_sys_getrusage 203 + 166 common umask sys_umask 204 + 167 common prctl sys_prctl 205 + 168 common getcpu sys_getcpu 206 + 169 time32 gettimeofday sys_gettimeofday compat_sys_gettimeofday 207 + 169 64 gettimeofday sys_gettimeofday 208 + 170 time32 settimeofday sys_settimeofday compat_sys_settimeofday 209 + 170 64 settimeofday sys_settimeofday 210 + 171 time32 adjtimex sys_adjtimex_time32 211 + 171 64 adjtimex sys_adjtimex 212 + 172 common getpid sys_getpid 213 + 173 common getppid sys_getppid 214 + 174 common getuid sys_getuid 215 + 175 common geteuid sys_geteuid 216 + 176 common getgid sys_getgid 217 + 177 common getegid sys_getegid 218 + 178 common gettid sys_gettid 219 + 179 common sysinfo sys_sysinfo compat_sys_sysinfo 220 + 180 common mq_open sys_mq_open compat_sys_mq_open 221 + 181 common mq_unlink sys_mq_unlink 222 + 182 time32 mq_timedsend sys_mq_timedsend_time32 223 + 182 64 mq_timedsend sys_mq_timedsend 224 + 183 time32 mq_timedreceive sys_mq_timedreceive_time32 225 + 183 64 mq_timedreceive sys_mq_timedreceive 226 + 184 common mq_notify sys_mq_notify compat_sys_mq_notify 227 + 185 common mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr 228 + 186 common msgget sys_msgget 229 + 187 common msgctl sys_msgctl compat_sys_msgctl 230 + 188 common msgrcv sys_msgrcv compat_sys_msgrcv 231 + 189 common msgsnd sys_msgsnd compat_sys_msgsnd 232 + 190 common semget sys_semget 233 + 191 common semctl sys_semctl compat_sys_semctl 234 + 192 time32 semtimedop sys_semtimedop_time32 235 + 192 64 semtimedop sys_semtimedop 236 + 193 common semop sys_semop 237 + 194 common shmget sys_shmget 238 + 195 common shmctl sys_shmctl compat_sys_shmctl 239 + 196 common shmat sys_shmat compat_sys_shmat 240 + 197 common shmdt sys_shmdt 241 + 198 common socket sys_socket 242 + 199 common socketpair sys_socketpair 243 + 200 common bind sys_bind 244 + 201 common listen sys_listen 245 + 202 common accept sys_accept 246 + 203 common connect sys_connect 247 + 204 common getsockname sys_getsockname 248 + 205 common getpeername sys_getpeername 249 + 206 common sendto sys_sendto 250 + 207 common recvfrom sys_recvfrom compat_sys_recvfrom 251 + 208 common setsockopt sys_setsockopt sys_setsockopt 252 + 209 common getsockopt sys_getsockopt sys_getsockopt 253 + 210 common shutdown sys_shutdown 254 + 211 common sendmsg sys_sendmsg compat_sys_sendmsg 255 + 212 common recvmsg sys_recvmsg compat_sys_recvmsg 256 + 213 common readahead sys_readahead compat_sys_readahead 257 + 214 common brk sys_brk 258 + 215 common munmap sys_munmap 259 + 216 common mremap sys_mremap 260 + 217 common add_key sys_add_key 261 + 218 common request_key sys_request_key 262 + 219 common keyctl sys_keyctl compat_sys_keyctl 263 + 220 common clone sys_clone 264 + 221 common execve sys_execve compat_sys_execve 265 + 222 32 mmap2 sys_mmap2 266 + 222 64 mmap sys_mmap 267 + 223 32 fadvise64_64 sys_fadvise64_64 compat_sys_fadvise64_64 268 + 223 64 fadvise64 sys_fadvise64_64 269 + 224 common swapon sys_swapon 270 + 225 common swapoff sys_swapoff 271 + 226 common mprotect sys_mprotect 272 + 227 common msync sys_msync 273 + 228 common mlock sys_mlock 274 + 229 common munlock sys_munlock 275 + 230 common mlockall sys_mlockall 276 + 231 common munlockall sys_munlockall 277 + 232 common mincore sys_mincore 278 + 233 common madvise sys_madvise 279 + 234 common remap_file_pages sys_remap_file_pages 280 + 235 common mbind sys_mbind 281 + 236 common get_mempolicy sys_get_mempolicy 282 + 237 common set_mempolicy sys_set_mempolicy 283 + 238 common migrate_pages sys_migrate_pages 284 + 239 common move_pages sys_move_pages 285 + 240 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 286 + 241 common perf_event_open sys_perf_event_open 287 + 242 common accept4 sys_accept4 288 + 243 time32 recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32 289 + 243 64 recvmmsg sys_recvmmsg 290 + # Architectures may provide up to 16 syscalls of their own between 244 and 259 291 + 244 arc cacheflush sys_cacheflush 292 + 245 arc arc_settls sys_arc_settls 293 + 246 arc arc_gettls sys_arc_gettls 294 + 247 arc sysfs sys_sysfs 295 + 248 arc arc_usr_cmpxchg sys_arc_usr_cmpxchg 296 + 297 + 244 csky set_thread_area sys_set_thread_area 298 + 245 csky cacheflush sys_cacheflush 299 + 300 + 244 nios2 cacheflush sys_cacheflush 301 + 302 + 244 or1k or1k_atomic sys_or1k_atomic 303 + 304 + 258 riscv riscv_hwprobe sys_riscv_hwprobe 305 + 259 riscv riscv_flush_icache sys_riscv_flush_icache 306 + 307 + 260 time32 wait4 sys_wait4 compat_sys_wait4 308 + 260 64 wait4 sys_wait4 309 + 261 common prlimit64 sys_prlimit64 310 + 262 common fanotify_init sys_fanotify_init 311 + 263 common fanotify_mark sys_fanotify_mark 312 + 264 common name_to_handle_at sys_name_to_handle_at 313 + 265 common open_by_handle_at sys_open_by_handle_at 314 + 266 time32 clock_adjtime sys_clock_adjtime32 315 + 266 64 clock_adjtime sys_clock_adjtime 316 + 267 common syncfs sys_syncfs 317 + 268 common setns sys_setns 318 + 269 common sendmmsg sys_sendmmsg compat_sys_sendmmsg 319 + 270 common process_vm_readv sys_process_vm_readv 320 + 271 common process_vm_writev sys_process_vm_writev 321 + 272 common kcmp sys_kcmp 322 + 273 common finit_module sys_finit_module 323 + 274 common sched_setattr sys_sched_setattr 324 + 275 common sched_getattr sys_sched_getattr 325 + 276 common renameat2 sys_renameat2 326 + 277 common seccomp sys_seccomp 327 + 278 common getrandom sys_getrandom 328 + 279 common memfd_create sys_memfd_create 329 + 280 common bpf sys_bpf 330 + 281 common execveat sys_execveat compat_sys_execveat 331 + 282 common userfaultfd sys_userfaultfd 332 + 283 common membarrier sys_membarrier 333 + 284 common mlock2 sys_mlock2 334 + 285 common copy_file_range sys_copy_file_range 335 + 286 common preadv2 sys_preadv2 compat_sys_preadv2 336 + 287 common pwritev2 sys_pwritev2 compat_sys_pwritev2 337 + 288 common pkey_mprotect sys_pkey_mprotect 338 + 289 common pkey_alloc sys_pkey_alloc 339 + 290 common pkey_free sys_pkey_free 340 + 291 common statx sys_statx 341 + 292 time32 io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents 342 + 292 64 io_pgetevents sys_io_pgetevents 343 + 293 common rseq sys_rseq 344 + 294 common kexec_file_load sys_kexec_file_load 345 + # 295 through 402 are unassigned to sync up with generic numbers don't use 346 + 403 32 clock_gettime64 sys_clock_gettime 347 + 404 32 clock_settime64 sys_clock_settime 348 + 405 32 clock_adjtime64 sys_clock_adjtime 349 + 406 32 clock_getres_time64 sys_clock_getres 350 + 407 32 clock_nanosleep_time64 sys_clock_nanosleep 351 + 408 32 timer_gettime64 sys_timer_gettime 352 + 409 32 timer_settime64 sys_timer_settime 353 + 410 32 timerfd_gettime64 sys_timerfd_gettime 354 + 411 32 timerfd_settime64 sys_timerfd_settime 355 + 412 32 utimensat_time64 sys_utimensat 356 + 413 32 pselect6_time64 sys_pselect6 compat_sys_pselect6_time64 357 + 414 32 ppoll_time64 sys_ppoll compat_sys_ppoll_time64 358 + 416 32 io_pgetevents_time64 sys_io_pgetevents compat_sys_io_pgetevents_time64 359 + 417 32 recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64 360 + 418 32 mq_timedsend_time64 sys_mq_timedsend 361 + 419 32 mq_timedreceive_time64 sys_mq_timedreceive 362 + 420 32 semtimedop_time64 sys_semtimedop 363 + 421 32 rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64 364 + 422 32 futex_time64 sys_futex 365 + 423 32 sched_rr_get_interval_time64 sys_sched_rr_get_interval 366 + 424 common pidfd_send_signal sys_pidfd_send_signal 367 + 425 common io_uring_setup sys_io_uring_setup 368 + 426 common io_uring_enter sys_io_uring_enter 369 + 427 common io_uring_register sys_io_uring_register 370 + 428 common open_tree sys_open_tree 371 + 429 common move_mount sys_move_mount 372 + 430 common fsopen sys_fsopen 373 + 431 common fsconfig sys_fsconfig 374 + 432 common fsmount sys_fsmount 375 + 433 common fspick sys_fspick 376 + 434 common pidfd_open sys_pidfd_open 377 + 435 common clone3 sys_clone3 378 + 436 common close_range sys_close_range 379 + 437 common openat2 sys_openat2 380 + 438 common pidfd_getfd sys_pidfd_getfd 381 + 439 common faccessat2 sys_faccessat2 382 + 440 common process_madvise sys_process_madvise 383 + 441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2 384 + 442 common mount_setattr sys_mount_setattr 385 + 443 common quotactl_fd sys_quotactl_fd 386 + 444 common landlock_create_ruleset sys_landlock_create_ruleset 387 + 445 common landlock_add_rule sys_landlock_add_rule 388 + 446 common landlock_restrict_self sys_landlock_restrict_self 389 + 447 memfd_secret memfd_secret sys_memfd_secret 390 + 448 common process_mrelease sys_process_mrelease 391 + 449 common futex_waitv sys_futex_waitv 392 + 450 common set_mempolicy_home_node sys_set_mempolicy_home_node 393 + 451 common cachestat sys_cachestat 394 + 452 common fchmodat2 sys_fchmodat2 395 + 453 common map_shadow_stack sys_map_shadow_stack 396 + 454 common futex_wake sys_futex_wake 397 + 455 common futex_wait sys_futex_wait 398 + 456 common futex_requeue sys_futex_requeue 399 + 457 common statmount sys_statmount 400 + 458 common listmount sys_listmount 401 + 459 common lsm_get_self_attr sys_lsm_get_self_attr 402 + 460 common lsm_set_self_attr sys_lsm_set_self_attr 403 + 461 common lsm_list_modules sys_lsm_list_modules 404 + 462 common mseal sys_mseal
-1
tools/arch/arm64/include/uapi/asm/unistd.h
··· 19 19 #define __ARCH_WANT_NEW_STAT 20 20 #define __ARCH_WANT_SET_GET_RLIMIT 21 21 #define __ARCH_WANT_TIME32_SYSCALLS 22 - #define __ARCH_WANT_SYS_CLONE3 23 22 #define __ARCH_WANT_MEMFD_SECRET 24 23 25 24 #include <asm-generic/unistd.h>
-1
tools/arch/loongarch/include/uapi/asm/unistd.h
··· 4 4 */ 5 5 6 6 #define __ARCH_WANT_SYS_CLONE 7 - #define __ARCH_WANT_SYS_CLONE3 8 7 9 8 #include <asm-generic/unistd.h>
-4
tools/include/uapi/asm-generic/unistd.h
··· 776 776 __SYSCALL(__NR_fspick, sys_fspick) 777 777 #define __NR_pidfd_open 434 778 778 __SYSCALL(__NR_pidfd_open, sys_pidfd_open) 779 - 780 - #ifdef __ARCH_WANT_SYS_CLONE3 781 779 #define __NR_clone3 435 782 780 __SYSCALL(__NR_clone3, sys_clone3) 783 - #endif 784 - 785 781 #define __NR_close_range 436 786 782 __SYSCALL(__NR_close_range, sys_close_range) 787 783 #define __NR_openat2 437