diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2018-03-04 13:06:35 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2018-04-02 14:16:20 -0400 |
commit | 67a7acd3773a94df2e671601a288685485463cf9 (patch) | |
tree | 15d6157fedd6c804f42daa4337b7d1d67e4f8e2a | |
parent | 70dd4b3160798b647b7f30baf9fb6e8a5933d4e2 (diff) |
kernel/sys_ni: remove {sys_,sys_compat} from cond_syscall definitions
This keeps it in line with the SYSCALL_DEFINEx() / COMPAT_SYSCALL_DEFINEx()
calling convention.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | Documentation/process/adding-syscalls.rst | 2 | ||||
-rw-r--r-- | kernel/sys_ni.c | 433 |
2 files changed, 219 insertions, 216 deletions
diff --git a/Documentation/process/adding-syscalls.rst b/Documentation/process/adding-syscalls.rst index 556613744556..314c8bf6f2a2 100644 --- a/Documentation/process/adding-syscalls.rst +++ b/Documentation/process/adding-syscalls.rst | |||
@@ -222,7 +222,7 @@ your new syscall number may get adjusted to resolve conflicts. | |||
222 | The file ``kernel/sys_ni.c`` provides a fallback stub implementation of each | 222 | The file ``kernel/sys_ni.c`` provides a fallback stub implementation of each |
223 | system call, returning ``-ENOSYS``. Add your new system call here too:: | 223 | system call, returning ``-ENOSYS``. Add your new system call here too:: |
224 | 224 | ||
225 | cond_syscall(sys_xyzzy); | 225 | COND_SYSCALL(xyzzy); |
226 | 226 | ||
227 | Your new kernel functionality, and the system call that controls it, should | 227 | Your new kernel functionality, and the system call that controls it, should |
228 | normally be optional, so add a ``CONFIG`` option (typically to | 228 | normally be optional, so add a ``CONFIG`` option (typically to |
diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c index 0c1538f5a559..6cafc008f6db 100644 --- a/kernel/sys_ni.c +++ b/kernel/sys_ni.c | |||
@@ -17,53 +17,56 @@ asmlinkage long sys_ni_syscall(void) | |||
17 | return -ENOSYS; | 17 | return -ENOSYS; |
18 | } | 18 | } |
19 | 19 | ||
20 | #define COND_SYSCALL(name) cond_syscall(sys_##name) | ||
21 | #define COND_SYSCALL_COMPAT(name) cond_syscall(compat_sys_##name) | ||
22 | |||
20 | /* | 23 | /* |
21 | * This list is kept in the same order as include/uapi/asm-generic/unistd.h. | 24 | * This list is kept in the same order as include/uapi/asm-generic/unistd.h. |
22 | * Architecture specific entries go below, followed by deprecated or obsolete | 25 | * Architecture specific entries go below, followed by deprecated or obsolete |
23 | * system calls. | 26 | * system calls. |
24 | */ | 27 | */ |
25 | 28 | ||
26 | cond_syscall(sys_io_setup); | 29 | COND_SYSCALL(io_setup); |
27 | cond_syscall(compat_sys_io_setup); | 30 | COND_SYSCALL_COMPAT(io_setup); |
28 | cond_syscall(sys_io_destroy); | 31 | COND_SYSCALL(io_destroy); |
29 | cond_syscall(sys_io_submit); | 32 | COND_SYSCALL(io_submit); |
30 | cond_syscall(compat_sys_io_submit); | 33 | COND_SYSCALL_COMPAT(io_submit); |
31 | cond_syscall(sys_io_cancel); | 34 | COND_SYSCALL(io_cancel); |
32 | cond_syscall(sys_io_getevents); | 35 | COND_SYSCALL(io_getevents); |
33 | cond_syscall(compat_sys_io_getevents); | 36 | COND_SYSCALL_COMPAT(io_getevents); |
34 | 37 | ||
35 | /* fs/xattr.c */ | 38 | /* fs/xattr.c */ |
36 | 39 | ||
37 | /* fs/dcache.c */ | 40 | /* fs/dcache.c */ |
38 | 41 | ||
39 | /* fs/cookies.c */ | 42 | /* fs/cookies.c */ |
40 | cond_syscall(sys_lookup_dcookie); | 43 | COND_SYSCALL(lookup_dcookie); |
41 | cond_syscall(compat_sys_lookup_dcookie); | 44 | COND_SYSCALL_COMPAT(lookup_dcookie); |
42 | 45 | ||
43 | /* fs/eventfd.c */ | 46 | /* fs/eventfd.c */ |
44 | cond_syscall(sys_eventfd2); | 47 | COND_SYSCALL(eventfd2); |
45 | 48 | ||
46 | /* fs/eventfd.c */ | 49 | /* fs/eventfd.c */ |
47 | cond_syscall(sys_epoll_create1); | 50 | COND_SYSCALL(epoll_create1); |
48 | cond_syscall(sys_epoll_ctl); | 51 | COND_SYSCALL(epoll_ctl); |
49 | cond_syscall(sys_epoll_pwait); | 52 | COND_SYSCALL(epoll_pwait); |
50 | cond_syscall(compat_sys_epoll_pwait); | 53 | COND_SYSCALL_COMPAT(epoll_pwait); |
51 | 54 | ||
52 | /* fs/fcntl.c */ | 55 | /* fs/fcntl.c */ |
53 | 56 | ||
54 | /* fs/inotify_user.c */ | 57 | /* fs/inotify_user.c */ |
55 | cond_syscall(sys_inotify_init1); | 58 | COND_SYSCALL(inotify_init1); |
56 | cond_syscall(sys_inotify_add_watch); | 59 | COND_SYSCALL(inotify_add_watch); |
57 | cond_syscall(sys_inotify_rm_watch); | 60 | COND_SYSCALL(inotify_rm_watch); |
58 | 61 | ||
59 | /* fs/ioctl.c */ | 62 | /* fs/ioctl.c */ |
60 | 63 | ||
61 | /* fs/ioprio.c */ | 64 | /* fs/ioprio.c */ |
62 | cond_syscall(sys_ioprio_set); | 65 | COND_SYSCALL(ioprio_set); |
63 | cond_syscall(sys_ioprio_get); | 66 | COND_SYSCALL(ioprio_get); |
64 | 67 | ||
65 | /* fs/locks.c */ | 68 | /* fs/locks.c */ |
66 | cond_syscall(sys_flock); | 69 | COND_SYSCALL(flock); |
67 | 70 | ||
68 | /* fs/namei.c */ | 71 | /* fs/namei.c */ |
69 | 72 | ||
@@ -76,7 +79,7 @@ cond_syscall(sys_flock); | |||
76 | /* fs/pipe.c */ | 79 | /* fs/pipe.c */ |
77 | 80 | ||
78 | /* fs/quota.c */ | 81 | /* fs/quota.c */ |
79 | cond_syscall(sys_quotactl); | 82 | COND_SYSCALL(quotactl); |
80 | 83 | ||
81 | /* fs/readdir.c */ | 84 | /* fs/readdir.c */ |
82 | 85 | ||
@@ -87,8 +90,8 @@ cond_syscall(sys_quotactl); | |||
87 | /* fs/select.c */ | 90 | /* fs/select.c */ |
88 | 91 | ||
89 | /* fs/signalfd.c */ | 92 | /* fs/signalfd.c */ |
90 | cond_syscall(sys_signalfd4); | 93 | COND_SYSCALL(signalfd4); |
91 | cond_syscall(compat_sys_signalfd4); | 94 | COND_SYSCALL_COMPAT(signalfd4); |
92 | 95 | ||
93 | /* fs/splice.c */ | 96 | /* fs/splice.c */ |
94 | 97 | ||
@@ -97,20 +100,20 @@ cond_syscall(compat_sys_signalfd4); | |||
97 | /* fs/sync.c */ | 100 | /* fs/sync.c */ |
98 | 101 | ||
99 | /* fs/timerfd.c */ | 102 | /* fs/timerfd.c */ |
100 | cond_syscall(sys_timerfd_create); | 103 | COND_SYSCALL(timerfd_create); |
101 | cond_syscall(sys_timerfd_settime); | 104 | COND_SYSCALL(timerfd_settime); |
102 | cond_syscall(compat_sys_timerfd_settime); | 105 | COND_SYSCALL_COMPAT(timerfd_settime); |
103 | cond_syscall(sys_timerfd_gettime); | 106 | COND_SYSCALL(timerfd_gettime); |
104 | cond_syscall(compat_sys_timerfd_gettime); | 107 | COND_SYSCALL_COMPAT(timerfd_gettime); |
105 | 108 | ||
106 | /* fs/utimes.c */ | 109 | /* fs/utimes.c */ |
107 | 110 | ||
108 | /* kernel/acct.c */ | 111 | /* kernel/acct.c */ |
109 | cond_syscall(sys_acct); | 112 | COND_SYSCALL(acct); |
110 | 113 | ||
111 | /* kernel/capability.c */ | 114 | /* kernel/capability.c */ |
112 | cond_syscall(sys_capget); | 115 | COND_SYSCALL(capget); |
113 | cond_syscall(sys_capset); | 116 | COND_SYSCALL(capset); |
114 | 117 | ||
115 | /* kernel/exec_domain.c */ | 118 | /* kernel/exec_domain.c */ |
116 | 119 | ||
@@ -119,29 +122,29 @@ cond_syscall(sys_capset); | |||
119 | /* kernel/fork.c */ | 122 | /* kernel/fork.c */ |
120 | 123 | ||
121 | /* kernel/futex.c */ | 124 | /* kernel/futex.c */ |
122 | cond_syscall(sys_futex); | 125 | COND_SYSCALL(futex); |
123 | cond_syscall(compat_sys_futex); | 126 | COND_SYSCALL_COMPAT(futex); |
124 | cond_syscall(sys_set_robust_list); | 127 | COND_SYSCALL(set_robust_list); |
125 | cond_syscall(compat_sys_set_robust_list); | 128 | COND_SYSCALL_COMPAT(set_robust_list); |
126 | cond_syscall(sys_get_robust_list); | 129 | COND_SYSCALL(get_robust_list); |
127 | cond_syscall(compat_sys_get_robust_list); | 130 | COND_SYSCALL_COMPAT(get_robust_list); |
128 | 131 | ||
129 | /* kernel/hrtimer.c */ | 132 | /* kernel/hrtimer.c */ |
130 | 133 | ||
131 | /* kernel/itimer.c */ | 134 | /* kernel/itimer.c */ |
132 | 135 | ||
133 | /* kernel/kexec.c */ | 136 | /* kernel/kexec.c */ |
134 | cond_syscall(sys_kexec_load); | 137 | COND_SYSCALL(kexec_load); |
135 | cond_syscall(compat_sys_kexec_load); | 138 | COND_SYSCALL_COMPAT(kexec_load); |
136 | 139 | ||
137 | /* kernel/module.c */ | 140 | /* kernel/module.c */ |
138 | cond_syscall(sys_init_module); | 141 | COND_SYSCALL(init_module); |
139 | cond_syscall(sys_delete_module); | 142 | COND_SYSCALL(delete_module); |
140 | 143 | ||
141 | /* kernel/posix-timers.c */ | 144 | /* kernel/posix-timers.c */ |
142 | 145 | ||
143 | /* kernel/printk.c */ | 146 | /* kernel/printk.c */ |
144 | cond_syscall(sys_syslog); | 147 | COND_SYSCALL(syslog); |
145 | 148 | ||
146 | /* kernel/ptrace.c */ | 149 | /* kernel/ptrace.c */ |
147 | 150 | ||
@@ -150,176 +153,176 @@ cond_syscall(sys_syslog); | |||
150 | /* kernel/signal.c */ | 153 | /* kernel/signal.c */ |
151 | 154 | ||
152 | /* kernel/sys.c */ | 155 | /* kernel/sys.c */ |
153 | cond_syscall(sys_setregid); | 156 | COND_SYSCALL(setregid); |
154 | cond_syscall(sys_setgid); | 157 | COND_SYSCALL(setgid); |
155 | cond_syscall(sys_setreuid); | 158 | COND_SYSCALL(setreuid); |
156 | cond_syscall(sys_setuid); | 159 | COND_SYSCALL(setuid); |
157 | cond_syscall(sys_setresuid); | 160 | COND_SYSCALL(setresuid); |
158 | cond_syscall(sys_getresuid); | 161 | COND_SYSCALL(getresuid); |
159 | cond_syscall(sys_setresgid); | 162 | COND_SYSCALL(setresgid); |
160 | cond_syscall(sys_getresgid); | 163 | COND_SYSCALL(getresgid); |
161 | cond_syscall(sys_setfsuid); | 164 | COND_SYSCALL(setfsuid); |
162 | cond_syscall(sys_setfsgid); | 165 | COND_SYSCALL(setfsgid); |
163 | cond_syscall(sys_setgroups); | 166 | COND_SYSCALL(setgroups); |
164 | cond_syscall(sys_getgroups); | 167 | COND_SYSCALL(getgroups); |
165 | 168 | ||
166 | /* kernel/time.c */ | 169 | /* kernel/time.c */ |
167 | 170 | ||
168 | /* kernel/timer.c */ | 171 | /* kernel/timer.c */ |
169 | 172 | ||
170 | /* ipc/mqueue.c */ | 173 | /* ipc/mqueue.c */ |
171 | cond_syscall(sys_mq_open); | 174 | COND_SYSCALL(mq_open); |
172 | cond_syscall(compat_sys_mq_open); | 175 | COND_SYSCALL_COMPAT(mq_open); |
173 | cond_syscall(sys_mq_unlink); | 176 | COND_SYSCALL(mq_unlink); |
174 | cond_syscall(sys_mq_timedsend); | 177 | COND_SYSCALL(mq_timedsend); |
175 | cond_syscall(compat_sys_mq_timedsend); | 178 | COND_SYSCALL_COMPAT(mq_timedsend); |
176 | cond_syscall(sys_mq_timedreceive); | 179 | COND_SYSCALL(mq_timedreceive); |
177 | cond_syscall(compat_sys_mq_timedreceive); | 180 | COND_SYSCALL_COMPAT(mq_timedreceive); |
178 | cond_syscall(sys_mq_notify); | 181 | COND_SYSCALL(mq_notify); |
179 | cond_syscall(compat_sys_mq_notify); | 182 | COND_SYSCALL_COMPAT(mq_notify); |
180 | cond_syscall(sys_mq_getsetattr); | 183 | COND_SYSCALL(mq_getsetattr); |
181 | cond_syscall(compat_sys_mq_getsetattr); | 184 | COND_SYSCALL_COMPAT(mq_getsetattr); |
182 | 185 | ||
183 | /* ipc/msg.c */ | 186 | /* ipc/msg.c */ |
184 | cond_syscall(sys_msgget); | 187 | COND_SYSCALL(msgget); |
185 | cond_syscall(sys_msgctl); | 188 | COND_SYSCALL(msgctl); |
186 | cond_syscall(compat_sys_msgctl); | 189 | COND_SYSCALL_COMPAT(msgctl); |
187 | cond_syscall(sys_msgrcv); | 190 | COND_SYSCALL(msgrcv); |
188 | cond_syscall(compat_sys_msgrcv); | 191 | COND_SYSCALL_COMPAT(msgrcv); |
189 | cond_syscall(sys_msgsnd); | 192 | COND_SYSCALL(msgsnd); |
190 | cond_syscall(compat_sys_msgsnd); | 193 | COND_SYSCALL_COMPAT(msgsnd); |
191 | 194 | ||
192 | /* ipc/sem.c */ | 195 | /* ipc/sem.c */ |
193 | cond_syscall(sys_semget); | 196 | COND_SYSCALL(semget); |
194 | cond_syscall(sys_semctl); | 197 | COND_SYSCALL(semctl); |
195 | cond_syscall(compat_sys_semctl); | 198 | COND_SYSCALL_COMPAT(semctl); |
196 | cond_syscall(sys_semtimedop); | 199 | COND_SYSCALL(semtimedop); |
197 | cond_syscall(compat_sys_semtimedop); | 200 | COND_SYSCALL_COMPAT(semtimedop); |
198 | cond_syscall(sys_semop); | 201 | COND_SYSCALL(semop); |
199 | 202 | ||
200 | /* ipc/shm.c */ | 203 | /* ipc/shm.c */ |
201 | cond_syscall(sys_shmget); | 204 | COND_SYSCALL(shmget); |
202 | cond_syscall(sys_shmctl); | 205 | COND_SYSCALL(shmctl); |
203 | cond_syscall(compat_sys_shmctl); | 206 | COND_SYSCALL_COMPAT(shmctl); |
204 | cond_syscall(sys_shmat); | 207 | COND_SYSCALL(shmat); |
205 | cond_syscall(compat_sys_shmat); | 208 | COND_SYSCALL_COMPAT(shmat); |
206 | cond_syscall(sys_shmdt); | 209 | COND_SYSCALL(shmdt); |
207 | 210 | ||
208 | /* net/socket.c */ | 211 | /* net/socket.c */ |
209 | cond_syscall(sys_socket); | 212 | COND_SYSCALL(socket); |
210 | cond_syscall(sys_socketpair); | 213 | COND_SYSCALL(socketpair); |
211 | cond_syscall(sys_bind); | 214 | COND_SYSCALL(bind); |
212 | cond_syscall(sys_listen); | 215 | COND_SYSCALL(listen); |
213 | cond_syscall(sys_accept); | 216 | COND_SYSCALL(accept); |
214 | cond_syscall(sys_connect); | 217 | COND_SYSCALL(connect); |
215 | cond_syscall(sys_getsockname); | 218 | COND_SYSCALL(getsockname); |
216 | cond_syscall(sys_getpeername); | 219 | COND_SYSCALL(getpeername); |
217 | cond_syscall(sys_setsockopt); | 220 | COND_SYSCALL(setsockopt); |
218 | cond_syscall(compat_sys_setsockopt); | 221 | COND_SYSCALL_COMPAT(setsockopt); |
219 | cond_syscall(sys_getsockopt); | 222 | COND_SYSCALL(getsockopt); |
220 | cond_syscall(compat_sys_getsockopt); | 223 | COND_SYSCALL_COMPAT(getsockopt); |
221 | cond_syscall(sys_sendto); | 224 | COND_SYSCALL(sendto); |
222 | cond_syscall(sys_shutdown); | 225 | COND_SYSCALL(shutdown); |
223 | cond_syscall(sys_recvfrom); | 226 | COND_SYSCALL(recvfrom); |
224 | cond_syscall(compat_sys_recvfrom); | 227 | COND_SYSCALL_COMPAT(recvfrom); |
225 | cond_syscall(sys_sendmsg); | 228 | COND_SYSCALL(sendmsg); |
226 | cond_syscall(compat_sys_sendmsg); | 229 | COND_SYSCALL_COMPAT(sendmsg); |
227 | cond_syscall(sys_recvmsg); | 230 | COND_SYSCALL(recvmsg); |
228 | cond_syscall(compat_sys_recvmsg); | 231 | COND_SYSCALL_COMPAT(recvmsg); |
229 | 232 | ||
230 | /* mm/filemap.c */ | 233 | /* mm/filemap.c */ |
231 | 234 | ||
232 | /* mm/nommu.c, also with MMU */ | 235 | /* mm/nommu.c, also with MMU */ |
233 | cond_syscall(sys_mremap); | 236 | COND_SYSCALL(mremap); |
234 | 237 | ||
235 | /* security/keys/keyctl.c */ | 238 | /* security/keys/keyctl.c */ |
236 | cond_syscall(sys_add_key); | 239 | COND_SYSCALL(add_key); |
237 | cond_syscall(sys_request_key); | 240 | COND_SYSCALL(request_key); |
238 | cond_syscall(sys_keyctl); | 241 | COND_SYSCALL(keyctl); |
239 | cond_syscall(compat_sys_keyctl); | 242 | COND_SYSCALL_COMPAT(keyctl); |
240 | 243 | ||
241 | /* arch/example/kernel/sys_example.c */ | 244 | /* arch/example/kernel/sys_example.c */ |
242 | 245 | ||
243 | /* mm/fadvise.c */ | 246 | /* mm/fadvise.c */ |
244 | cond_syscall(sys_fadvise64_64); | 247 | COND_SYSCALL(fadvise64_64); |
245 | 248 | ||
246 | /* mm/, CONFIG_MMU only */ | 249 | /* mm/, CONFIG_MMU only */ |
247 | cond_syscall(sys_swapon); | 250 | COND_SYSCALL(swapon); |
248 | cond_syscall(sys_swapoff); | 251 | COND_SYSCALL(swapoff); |
249 | cond_syscall(sys_mprotect); | 252 | COND_SYSCALL(mprotect); |
250 | cond_syscall(sys_msync); | 253 | COND_SYSCALL(msync); |
251 | cond_syscall(sys_mlock); | 254 | COND_SYSCALL(mlock); |
252 | cond_syscall(sys_munlock); | 255 | COND_SYSCALL(munlock); |
253 | cond_syscall(sys_mlockall); | 256 | COND_SYSCALL(mlockall); |
254 | cond_syscall(sys_munlockall); | 257 | COND_SYSCALL(munlockall); |
255 | cond_syscall(sys_mincore); | 258 | COND_SYSCALL(mincore); |
256 | cond_syscall(sys_madvise); | 259 | COND_SYSCALL(madvise); |
257 | cond_syscall(sys_remap_file_pages); | 260 | COND_SYSCALL(remap_file_pages); |
258 | cond_syscall(sys_mbind); | 261 | COND_SYSCALL(mbind); |
259 | cond_syscall(compat_sys_mbind); | 262 | COND_SYSCALL_COMPAT(mbind); |
260 | cond_syscall(sys_get_mempolicy); | 263 | COND_SYSCALL(get_mempolicy); |
261 | cond_syscall(compat_sys_get_mempolicy); | 264 | COND_SYSCALL_COMPAT(get_mempolicy); |
262 | cond_syscall(sys_set_mempolicy); | 265 | COND_SYSCALL(set_mempolicy); |
263 | cond_syscall(compat_sys_set_mempolicy); | 266 | COND_SYSCALL_COMPAT(set_mempolicy); |
264 | cond_syscall(sys_migrate_pages); | 267 | COND_SYSCALL(migrate_pages); |
265 | cond_syscall(compat_sys_migrate_pages); | 268 | COND_SYSCALL_COMPAT(migrate_pages); |
266 | cond_syscall(sys_move_pages); | 269 | COND_SYSCALL(move_pages); |
267 | cond_syscall(compat_sys_move_pages); | 270 | COND_SYSCALL_COMPAT(move_pages); |
268 | 271 | ||
269 | cond_syscall(sys_perf_event_open); | 272 | COND_SYSCALL(perf_event_open); |
270 | cond_syscall(sys_accept4); | 273 | COND_SYSCALL(accept4); |
271 | cond_syscall(sys_recvmmsg); | 274 | COND_SYSCALL(recvmmsg); |
272 | cond_syscall(compat_sys_recvmmsg); | 275 | COND_SYSCALL_COMPAT(recvmmsg); |
273 | 276 | ||
274 | /* | 277 | /* |
275 | * Architecture specific syscalls: see further below | 278 | * Architecture specific syscalls: see further below |
276 | */ | 279 | */ |
277 | 280 | ||
278 | /* fanotify */ | 281 | /* fanotify */ |
279 | cond_syscall(sys_fanotify_init); | 282 | COND_SYSCALL(fanotify_init); |
280 | cond_syscall(sys_fanotify_mark); | 283 | COND_SYSCALL(fanotify_mark); |
281 | 284 | ||
282 | /* open by handle */ | 285 | /* open by handle */ |
283 | cond_syscall(sys_name_to_handle_at); | 286 | COND_SYSCALL(name_to_handle_at); |
284 | cond_syscall(sys_open_by_handle_at); | 287 | COND_SYSCALL(open_by_handle_at); |
285 | cond_syscall(compat_sys_open_by_handle_at); | 288 | COND_SYSCALL_COMPAT(open_by_handle_at); |
286 | 289 | ||
287 | cond_syscall(sys_sendmmsg); | 290 | COND_SYSCALL(sendmmsg); |
288 | cond_syscall(compat_sys_sendmmsg); | 291 | COND_SYSCALL_COMPAT(sendmmsg); |
289 | cond_syscall(sys_process_vm_readv); | 292 | COND_SYSCALL(process_vm_readv); |
290 | cond_syscall(compat_sys_process_vm_readv); | 293 | COND_SYSCALL_COMPAT(process_vm_readv); |
291 | cond_syscall(sys_process_vm_writev); | 294 | COND_SYSCALL(process_vm_writev); |
292 | cond_syscall(compat_sys_process_vm_writev); | 295 | COND_SYSCALL_COMPAT(process_vm_writev); |
293 | 296 | ||
294 | /* compare kernel pointers */ | 297 | /* compare kernel pointers */ |
295 | cond_syscall(sys_kcmp); | 298 | COND_SYSCALL(kcmp); |
296 | 299 | ||
297 | cond_syscall(sys_finit_module); | 300 | COND_SYSCALL(finit_module); |
298 | 301 | ||
299 | /* operate on Secure Computing state */ | 302 | /* operate on Secure Computing state */ |
300 | cond_syscall(sys_seccomp); | 303 | COND_SYSCALL(seccomp); |
301 | 304 | ||
302 | cond_syscall(sys_memfd_create); | 305 | COND_SYSCALL(memfd_create); |
303 | 306 | ||
304 | /* access BPF programs and maps */ | 307 | /* access BPF programs and maps */ |
305 | cond_syscall(sys_bpf); | 308 | COND_SYSCALL(bpf); |
306 | 309 | ||
307 | /* execveat */ | 310 | /* execveat */ |
308 | cond_syscall(sys_execveat); | 311 | COND_SYSCALL(execveat); |
309 | 312 | ||
310 | cond_syscall(sys_userfaultfd); | 313 | COND_SYSCALL(userfaultfd); |
311 | 314 | ||
312 | /* membarrier */ | 315 | /* membarrier */ |
313 | cond_syscall(sys_membarrier); | 316 | COND_SYSCALL(membarrier); |
314 | 317 | ||
315 | cond_syscall(sys_mlock2); | 318 | COND_SYSCALL(mlock2); |
316 | 319 | ||
317 | cond_syscall(sys_copy_file_range); | 320 | COND_SYSCALL(copy_file_range); |
318 | 321 | ||
319 | /* memory protection keys */ | 322 | /* memory protection keys */ |
320 | cond_syscall(sys_pkey_mprotect); | 323 | COND_SYSCALL(pkey_mprotect); |
321 | cond_syscall(sys_pkey_alloc); | 324 | COND_SYSCALL(pkey_alloc); |
322 | cond_syscall(sys_pkey_free); | 325 | COND_SYSCALL(pkey_free); |
323 | 326 | ||
324 | 327 | ||
325 | /* | 328 | /* |
@@ -327,35 +330,35 @@ cond_syscall(sys_pkey_free); | |||
327 | */ | 330 | */ |
328 | 331 | ||
329 | /* pciconfig: alpha, arm, arm64, ia64, sparc */ | 332 | /* pciconfig: alpha, arm, arm64, ia64, sparc */ |
330 | cond_syscall(sys_pciconfig_read); | 333 | COND_SYSCALL(pciconfig_read); |
331 | cond_syscall(sys_pciconfig_write); | 334 | COND_SYSCALL(pciconfig_write); |
332 | cond_syscall(sys_pciconfig_iobase); | 335 | COND_SYSCALL(pciconfig_iobase); |
333 | 336 | ||
334 | /* sys_socketcall: arm, mips, x86, ... */ | 337 | /* sys_socketcall: arm, mips, x86, ... */ |
335 | cond_syscall(sys_socketcall); | 338 | COND_SYSCALL(socketcall); |
336 | cond_syscall(compat_sys_socketcall); | 339 | COND_SYSCALL_COMPAT(socketcall); |
337 | 340 | ||
338 | /* compat syscalls for arm64, x86, ... */ | 341 | /* compat syscalls for arm64, x86, ... */ |
339 | cond_syscall(compat_sys_sysctl); | 342 | COND_SYSCALL_COMPAT(sysctl); |
340 | cond_syscall(compat_sys_fanotify_mark); | 343 | COND_SYSCALL_COMPAT(fanotify_mark); |
341 | 344 | ||
342 | /* x86 */ | 345 | /* x86 */ |
343 | cond_syscall(sys_vm86old); | 346 | COND_SYSCALL(vm86old); |
344 | cond_syscall(sys_modify_ldt); | 347 | COND_SYSCALL(modify_ldt); |
345 | cond_syscall(compat_sys_quotactl32); | 348 | COND_SYSCALL_COMPAT(quotactl32); |
346 | cond_syscall(sys_vm86); | 349 | COND_SYSCALL(vm86); |
347 | cond_syscall(sys_kexec_file_load); | 350 | COND_SYSCALL(kexec_file_load); |
348 | 351 | ||
349 | /* s390 */ | 352 | /* s390 */ |
350 | cond_syscall(sys_s390_pci_mmio_read); | 353 | COND_SYSCALL(s390_pci_mmio_read); |
351 | cond_syscall(sys_s390_pci_mmio_write); | 354 | COND_SYSCALL(s390_pci_mmio_write); |
352 | cond_syscall(compat_sys_s390_ipc); | 355 | COND_SYSCALL_COMPAT(s390_ipc); |
353 | 356 | ||
354 | /* powerpc */ | 357 | /* powerpc */ |
355 | cond_syscall(ppc_rtas); | 358 | cond_syscall(ppc_rtas); |
356 | cond_syscall(sys_spu_run); | 359 | COND_SYSCALL(spu_run); |
357 | cond_syscall(sys_spu_create); | 360 | COND_SYSCALL(spu_create); |
358 | cond_syscall(sys_subpage_prot); | 361 | COND_SYSCALL(subpage_prot); |
359 | 362 | ||
360 | 363 | ||
361 | /* | 364 | /* |
@@ -364,22 +367,22 @@ cond_syscall(sys_subpage_prot); | |||
364 | */ | 367 | */ |
365 | 368 | ||
366 | /* __ARCH_WANT_SYSCALL_NO_FLAGS */ | 369 | /* __ARCH_WANT_SYSCALL_NO_FLAGS */ |
367 | cond_syscall(sys_epoll_create); | 370 | COND_SYSCALL(epoll_create); |
368 | cond_syscall(sys_inotify_init); | 371 | COND_SYSCALL(inotify_init); |
369 | cond_syscall(sys_eventfd); | 372 | COND_SYSCALL(eventfd); |
370 | cond_syscall(sys_signalfd); | 373 | COND_SYSCALL(signalfd); |
371 | cond_syscall(compat_sys_signalfd); | 374 | COND_SYSCALL_COMPAT(signalfd); |
372 | 375 | ||
373 | /* __ARCH_WANT_SYSCALL_OFF_T */ | 376 | /* __ARCH_WANT_SYSCALL_OFF_T */ |
374 | cond_syscall(sys_fadvise64); | 377 | COND_SYSCALL(fadvise64); |
375 | 378 | ||
376 | /* __ARCH_WANT_SYSCALL_DEPRECATED */ | 379 | /* __ARCH_WANT_SYSCALL_DEPRECATED */ |
377 | cond_syscall(sys_epoll_wait); | 380 | COND_SYSCALL(epoll_wait); |
378 | cond_syscall(sys_recv); | 381 | COND_SYSCALL(recv); |
379 | cond_syscall(compat_sys_recv); | 382 | COND_SYSCALL_COMPAT(recv); |
380 | cond_syscall(sys_send); | 383 | COND_SYSCALL(send); |
381 | cond_syscall(sys_bdflush); | 384 | COND_SYSCALL(bdflush); |
382 | cond_syscall(sys_uselib); | 385 | COND_SYSCALL(uselib); |
383 | 386 | ||
384 | 387 | ||
385 | /* | 388 | /* |
@@ -387,33 +390,33 @@ cond_syscall(sys_uselib); | |||
387 | */ | 390 | */ |
388 | 391 | ||
389 | /* obsolete: SGETMASK_SYSCALL */ | 392 | /* obsolete: SGETMASK_SYSCALL */ |
390 | cond_syscall(sys_sgetmask); | 393 | COND_SYSCALL(sgetmask); |
391 | cond_syscall(sys_ssetmask); | 394 | COND_SYSCALL(ssetmask); |
392 | 395 | ||
393 | /* obsolete: SYSFS_SYSCALL */ | 396 | /* obsolete: SYSFS_SYSCALL */ |
394 | cond_syscall(sys_sysfs); | 397 | COND_SYSCALL(sysfs); |
395 | 398 | ||
396 | /* obsolete: __ARCH_WANT_SYS_IPC */ | 399 | /* obsolete: __ARCH_WANT_SYS_IPC */ |
397 | cond_syscall(sys_ipc); | 400 | COND_SYSCALL(ipc); |
398 | cond_syscall(compat_sys_ipc); | 401 | COND_SYSCALL_COMPAT(ipc); |
399 | 402 | ||
400 | /* obsolete: UID16 */ | 403 | /* obsolete: UID16 */ |
401 | cond_syscall(sys_chown16); | 404 | COND_SYSCALL(chown16); |
402 | cond_syscall(sys_fchown16); | 405 | COND_SYSCALL(fchown16); |
403 | cond_syscall(sys_getegid16); | 406 | COND_SYSCALL(getegid16); |
404 | cond_syscall(sys_geteuid16); | 407 | COND_SYSCALL(geteuid16); |
405 | cond_syscall(sys_getgid16); | 408 | COND_SYSCALL(getgid16); |
406 | cond_syscall(sys_getgroups16); | 409 | COND_SYSCALL(getgroups16); |
407 | cond_syscall(sys_getresgid16); | 410 | COND_SYSCALL(getresgid16); |
408 | cond_syscall(sys_getresuid16); | 411 | COND_SYSCALL(getresuid16); |
409 | cond_syscall(sys_getuid16); | 412 | COND_SYSCALL(getuid16); |
410 | cond_syscall(sys_lchown16); | 413 | COND_SYSCALL(lchown16); |
411 | cond_syscall(sys_setfsgid16); | 414 | COND_SYSCALL(setfsgid16); |
412 | cond_syscall(sys_setfsuid16); | 415 | COND_SYSCALL(setfsuid16); |
413 | cond_syscall(sys_setgid16); | 416 | COND_SYSCALL(setgid16); |
414 | cond_syscall(sys_setgroups16); | 417 | COND_SYSCALL(setgroups16); |
415 | cond_syscall(sys_setregid16); | 418 | COND_SYSCALL(setregid16); |
416 | cond_syscall(sys_setresgid16); | 419 | COND_SYSCALL(setresgid16); |
417 | cond_syscall(sys_setresuid16); | 420 | COND_SYSCALL(setresuid16); |
418 | cond_syscall(sys_setreuid16); | 421 | COND_SYSCALL(setreuid16); |
419 | cond_syscall(sys_setuid16); | 422 | COND_SYSCALL(setuid16); |