Print this page
7029 want per-process exploit mitigation features (secflags)
7030 want basic address space layout randomization (aslr)
7031 noexec_user_stack should be a secflag
7032 want a means to forbid mappings around NULL.
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sparc/ml/modstubs.s
+++ new/usr/src/uts/sparc/ml/modstubs.s
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 * Copyright (c) 2015, Joyent, Inc. All rights reserved.
24 24 */
25 25
26 26 #if !defined(lint)
27 27 #include "assym.h"
28 28 #endif /* !lint */
29 29
30 30 #include <sys/asm_linkage.h>
31 31
32 32 #if defined(lint)
33 33
34 34 char stubs_base[1], stubs_end[1];
35 35
36 36 #else /* lint */
37 37
38 38 /*
39 39 * WARNING: there is no check for forgetting to write END_MODULE,
40 40 * and if you do, the kernel will most likely crash. Be careful
41 41 *
42 42 * This file assumes that all of the contributions to the data segment
43 43 * will be contiguous in the output file, even though they are separated
44 44 * by pieces of text. This is safe for all assemblers I know of now...
45 45 */
46 46
47 47 /*
48 48 * This file uses ansi preprocessor features:
49 49 *
50 50 * 1. #define mac(a) extra_ ## a --> mac(x) expands to extra_a
51 51 * The old version of this is
52 52 * #define mac(a) extra_/.*.*./a
53 53 * but this fails if the argument has spaces "mac ( x )"
54 54 * (Ignore the dots above, I had to put them in to keep this a comment.)
55 55 *
56 56 * 2. #define mac(a) #a --> mac(x) expands to "x"
57 57 * The old version is
58 58 * #define mac(a) "a"
59 59 *
60 60 * For some reason, the 5.0 preprocessor isn't happy with the above usage.
61 61 * For now, we're not using these ansi features.
62 62 *
63 63 * The reason is that "the 5.0 ANSI preprocessor" is built into the compiler
64 64 * and is a tokenizing preprocessor. This means, when confronted by something
65 65 * other than C token generation rules, strange things occur. In this case,
66 66 * when confronted by an assembly file, it would turn the token ".globl" into
67 67 * two tokens "." and "globl". For this reason, the traditional, non-ANSI
68 68 * preprocessor is used on assembly files.
69 69 *
70 70 * It would be desirable to have a non-tokenizing cpp (accp?) to use for this.
71 71 */
72 72
73 73 /*
74 74 * This file contains the stubs routines for modules which can be autoloaded.
75 75 */
76 76
77 77
78 78 /*
79 79 * See the 'struct mod_modinfo' definition to see what this structure
80 80 * is trying to achieve here.
81 81 */
82 82 /*
83 83 * XX64 - This still needs some repair.
84 84 * (a) define 'pointer alignment' and use it
85 85 * (b) define '.pword' or equivalent, and use it (to mean .word or .xword).
86 86 */
87 87 #define MODULE(module,namespace) \
88 88 .seg ".data"; \
89 89 module/**/_modname: \
90 90 .ascii "namespace/module"; \
91 91 .byte 0; \
92 92 .align CPTRSIZE; \
93 93 .global module/**/_modinfo; \
94 94 .type module/**/_modinfo, #object; \
95 95 .size module/**/_modinfo, 16; \
96 96 module/**/_modinfo: \
97 97 .word 0; \
98 98 .word module/**/_modname; \
99 99 .word 0; \
100 100 .word 0;
101 101
102 102 #define END_MODULE(module) \
103 103 .align 8; .word 0; .word 0 /* FIXME: .xword 0 */
104 104
105 105
106 106 #define STUB(module, fcnname, retfcn) \
107 107 STUB_COMMON(module, fcnname, mod_hold_stub, retfcn, 0)
108 108
109 109 /*
110 110 * "weak stub", don't load on account of this call
111 111 */
112 112 #define WSTUB(module, fcnname, retfcn) \
113 113 STUB_COMMON(module, fcnname, retfcn, retfcn, MODS_WEAK)
114 114
115 115 /*
116 116 * "non-unloadable stub", don't bother 'holding' module if it's already loaded
117 117 * since the module cannot be unloaded.
118 118 *
119 119 * User *MUST* guarantee the module is not unloadable (no _fini routine).
120 120 */
121 121 #define NO_UNLOAD_STUB(module, fcnname, retfcn) \
122 122 STUB_UNLOADABLE(module, fcnname, retfcn, retfcn, MODS_NOUNLOAD)
123 123
124 124 /*
125 125 * Macro for modstubbed system calls whose modules are not unloadable.
126 126 *
127 127 * System call modstubs needs special handling for the case where
128 128 * the modstub is a system call, because %fp comes from user frame.
129 129 */
130 130 #define SCALL_NU_STUB(module, fcnname, retfcn) \
131 131 SCALL_UNLOADABLE(module, fcnname, retfcn, retfcn, MODS_NOUNLOAD)
132 132 /* "weak stub" for non-unloadable module, don't load on account of this call */
133 133 #define NO_UNLOAD_WSTUB(module, fcnname, retfcn) \
134 134 STUB_UNLOADABLE(module, fcnname, retfcn, retfcn, MODS_NOUNLOAD|MODS_WEAK)
135 135
136 136 #define STUB_DATA(module, fcnname, install_fcn, retfcn, weak) \
137 137 .seg ".data"; \
138 138 .align 8; \
139 139 fcnname/**/_info: \
140 140 .word 0; /* 0 */ \
141 141 .word install_fcn; /* 4 */ \
142 142 .word 0; /* 8 */ \
143 143 .word module/**/_modinfo; /* c */ \
144 144 .word 0; /* 10 */ \
145 145 .word fcnname; /* 14 */ \
146 146 .word 0; /* 18 */ \
147 147 .word retfcn; /* 1c */ \
148 148 .word weak /* 20 */
149 149
150 150 /*
151 151 * The flag MODS_INSTALLED is stored in the stub data and is used to
152 152 * indicate if a module is installed and initialized. This flag is used
153 153 * instead of the mod_stub_info->mods_modinfo->mod_installed flag
154 154 * to minimize the number of pointer de-references for each function
155 155 * call (and also to avoid possible TLB misses which could be induced
156 156 * by dereferencing these pointers.)
157 157 */
158 158
159 159 #define STUB_COMMON(module, fcnname, install_fcn, retfcn, weak) \
160 160 ENTRY_NP(fcnname); \
161 161 save %sp, -SA(MINFRAME), %sp;/* new window */ \
162 162 set fcnname/**/_info, %l5; \
163 163 ld [%l5 + MODS_FLAG], %l1; /* weak?? */ \
164 164 cmp %l1, 0; \
165 165 be,a 1f; /* not weak */ \
166 166 restore; \
167 167 btst MODS_INSTALLED, %l1; /* installed?? */ \
168 168 bne,a,pt %xcc, 1f; /* yes, do mod_hold thing */ \
169 169 restore; \
170 170 ldn [%l5 + MODS_RETFCN], %g1; \
171 171 jmp %g1; /* no, just jump to retfcn */ \
172 172 restore; \
173 173 1: sub %sp, %fp, %g1; /* get (-)size of callers stack */ \
174 174 save %sp, %g1, %sp; /* create new frame same size */ \
175 175 sub %g0, %g1, %l4; /* size of stack frame */ \
176 176 sethi %hi(fcnname/**/_info), %l5; \
177 177 b stubs_common_code; \
178 178 or %l5, %lo(fcnname/**/_info), %l5; \
179 179 SET_SIZE(fcnname); \
180 180 STUB_DATA(module, fcnname, install_fcn, retfcn, weak)
181 181
182 182 #define STUB_UNLOADABLE(module, fcnname, install_fcn, retfcn, weak) \
183 183 ENTRY_NP(fcnname); \
184 184 save %sp, -SA(MINFRAME), %sp; /* new window */ \
185 185 set fcnname/**/_info, %l5; \
186 186 ld [%l5 + MODS_FLAG], %l1; \
187 187 btst MODS_INSTALLED, %l1; /* installed?? */ \
188 188 bne,a %xcc, 1f; /* yes */ \
189 189 ldn [%l5], %g1; \
190 190 btst MODS_WEAK, %l1; /* weak?? */ \
191 191 be,a 2f; /* no, load module */ \
192 192 restore; \
193 193 ldn [%l5 + MODS_RETFCN], %g1; \
194 194 1: jmp %g1; /* off we go */ \
195 195 restore; \
196 196 2: sub %sp, %fp, %g1; /* get (-)size of callers frame */ \
197 197 save %sp, %g1, %sp; /* create new frame same size */ \
198 198 sub %g0, %g1, %l4; /* size of stack frame */ \
199 199 sethi %hi(fcnname/**/_info), %l5; \
200 200 b stubs_common_code; \
201 201 or %l5, %lo(fcnname/**/_info), %l5; \
202 202 SET_SIZE(fcnname); \
203 203 STUB_DATA(module, fcnname, install_fcn, retfcn, weak)
204 204
205 205 #define SCALL_UNLOADABLE(module, fcnname, install_fcn, retfcn, weak) \
206 206 ENTRY_NP(fcnname); \
207 207 save %sp, -SA(MINFRAME), %sp; /* new window */ \
208 208 set fcnname/**/_info, %l5; \
209 209 ld [%l5 + MODS_FLAG], %l1; /* installed?? */ \
210 210 btst MODS_INSTALLED, %l1; \
211 211 be,a %xcc, 1f; /* no, load module */ \
212 212 restore; \
213 213 ldn [%l5], %g1; \
214 214 jmp %g1; /* yes, off we go */ \
215 215 restore; \
216 216 1: save %sp, -SA(MINFRAME), %sp;/* new frame */ \
217 217 sub %g0, -SA(MINFRAME), %l4;/* size of stack frame */ \
218 218 sethi %hi(fcnname/**/_info), %l5; \
219 219 b stubs_common_code; \
220 220 or %l5, %lo(fcnname/**/_info), %l5; \
221 221 SET_SIZE(fcnname); \
222 222 STUB_DATA(module, fcnname, install_fcn, retfcn, weak)
223 223
224 224 .section ".text"
225 225
226 226 /*
227 227 * We branch here with the fcnname_info pointer in l5
228 228 * and the frame size in %l4.
229 229 */
230 230 ENTRY_NP(stubs_common_code)
231 231 cmp %l4, SA(MINFRAME)
232 232 ble,a,pn %xcc, 2f
233 233 nop
234 234
235 235 sub %l4, 0x80, %l4 /* skip locals and outs */
236 236 add %sp, 0x80, %l0
237 237 add %fp, 0x80, %l1 /* get original sp before save */
238 238 1:
239 239 /* Copy stack frame */
240 240 ldn [%l1 + STACK_BIAS], %l2
241 241 inc 8, %l1
242 242 stn %l2, [%l0 + STACK_BIAS]
243 243 deccc 8, %l4
244 244 bg,a 1b
245 245 inc 8, %l0
246 246 2:
247 247 call mod_hold_stub /* Hold the module */
248 248 mov %l5, %o0
249 249 cmp %o0, -1 /* if error then return error */
250 250 bne,a 1f
251 251 nop
252 252 ldn [%l5 + MODS_RETFCN], %i0
253 253 call %i0
254 254 nop
255 255 ret
256 256 restore %o0, 0, %o0
257 257 1:
258 258 ldn [%l5], %g1
259 259 mov %i0, %o0 /* copy over incoming args, if number of */
260 260 mov %i1, %o1 /* args is > 6 then we copied them above */
261 261 mov %i2, %o2
262 262 mov %i3, %o3
263 263 mov %i4, %o4
264 264 call %g1 /* jump to the stub function */
265 265 mov %i5, %o5
266 266 mov %o0, %i0 /* copy any return values */
267 267 mov %o1, %i1
268 268 call mod_release_stub /* release hold on module */
269 269 mov %l5, %o0
270 270 ret /* return to caller */
271 271 restore
272 272 SET_SIZE(stubs_common_code)
273 273
274 274 ! this is just a marker for the area of text that contains stubs
275 275 .seg ".text"
276 276 .global stubs_base
277 277 stubs_base:
278 278 nop
279 279
280 280 /*
281 281 * WARNING WARNING WARNING!!!!!!
282 282 *
283 283 * On the MODULE macro you MUST NOT use any spaces!!! They are
284 284 * significant to the preprocessor. With ansi c there is a way around this
285 285 * but for some reason (yet to be investigated) ansi didn't work for other
286 286 * reasons!
287 287 *
288 288 * When zero is used as the return function, the system will call
289 289 * panic if the stub can't be resolved.
290 290 */
291 291
292 292 /*
293 293 * Stubs for devfs. A non-unloadable module.
294 294 */
295 295 #ifndef DEVFS_MODULE
296 296 MODULE(devfs,fs);
297 297 NO_UNLOAD_STUB(devfs, devfs_clean, nomod_minus_one);
298 298 NO_UNLOAD_STUB(devfs, devfs_lookupname, nomod_minus_one);
299 299 NO_UNLOAD_STUB(devfs, devfs_walk, nomod_minus_one);
300 300 NO_UNLOAD_STUB(devfs, devfs_devpolicy, nomod_minus_one);
301 301 NO_UNLOAD_STUB(devfs, devfs_reset_perm, nomod_minus_one);
302 302 NO_UNLOAD_STUB(devfs, devfs_remdrv_cleanup, nomod_minus_one);
303 303 END_MODULE(devfs);
304 304 #endif
305 305
306 306 /*
307 307 * Stubs for /dev fs.
308 308 */
309 309 #ifndef DEV_MODULE
310 310 MODULE(dev, fs);
311 311 NO_UNLOAD_STUB(dev, sdev_modctl_readdir, nomod_minus_one);
312 312 NO_UNLOAD_STUB(dev, sdev_modctl_readdir_free, nomod_minus_one);
313 313 NO_UNLOAD_STUB(dev, devname_filename_register, nomod_minus_one);
314 314 NO_UNLOAD_STUB(dev, sdev_modctl_devexists, nomod_minus_one);
315 315 NO_UNLOAD_STUB(dev, devname_profile_update, nomod_minus_one);
316 316 NO_UNLOAD_STUB(dev, sdev_devstate_change, nomod_minus_one);
317 317 NO_UNLOAD_STUB(dev, devvt_getvnodeops, nomod_minus_one);
318 318 NO_UNLOAD_STUB(dev, devpts_getvnodeops, nomod_zero);
319 319 END_MODULE(dev);
320 320 #endif
321 321
322 322 /*
323 323 * Stubs for specfs. A non-unloadable module.
324 324 */
325 325
326 326 #ifndef SPEC_MODULE
327 327 MODULE(specfs,fs);
328 328 NO_UNLOAD_STUB(specfs, common_specvp, nomod_zero);
329 329 NO_UNLOAD_STUB(specfs, makectty, nomod_zero);
330 330 NO_UNLOAD_STUB(specfs, makespecvp, nomod_zero);
331 331 NO_UNLOAD_STUB(specfs, smark, nomod_zero);
332 332 NO_UNLOAD_STUB(specfs, spec_segmap, nomod_einval);
333 333 NO_UNLOAD_STUB(specfs, specfind, nomod_zero);
334 334 NO_UNLOAD_STUB(specfs, specvp, nomod_zero);
335 335 NO_UNLOAD_STUB(specfs, devi_stillreferenced, nomod_zero);
336 336 NO_UNLOAD_STUB(specfs, spec_getvnodeops, nomod_zero);
337 337 NO_UNLOAD_STUB(specfs, spec_char_map, nomod_zero);
338 338 NO_UNLOAD_STUB(specfs, specvp_devfs, nomod_zero);
339 339 NO_UNLOAD_STUB(specfs, spec_assoc_vp_with_devi, nomod_void);
340 340 NO_UNLOAD_STUB(specfs, spec_hold_devi_by_vp, nomod_zero);
341 341 NO_UNLOAD_STUB(specfs, spec_snode_walk, nomod_void);
342 342 NO_UNLOAD_STUB(specfs, spec_devi_open_count, nomod_minus_one);
343 343 NO_UNLOAD_STUB(specfs, spec_is_clone, nomod_zero);
344 344 NO_UNLOAD_STUB(specfs, spec_is_selfclone, nomod_zero);
345 345 NO_UNLOAD_STUB(specfs, spec_fence_snode, nomod_minus_one);
346 346 NO_UNLOAD_STUB(specfs, spec_unfence_snode, nomod_minus_one);
347 347 END_MODULE(specfs);
348 348 #endif
349 349
350 350
351 351 /*
352 352 * Stubs for sockfs. A non-unloadable module.
353 353 */
354 354 #ifndef SOCK_MODULE
355 355 MODULE(sockfs, fs);
356 356 SCALL_NU_STUB(sockfs, so_socket, nomod_zero);
357 357 SCALL_NU_STUB(sockfs, so_socketpair, nomod_zero);
358 358 SCALL_NU_STUB(sockfs, bind, nomod_zero);
359 359 SCALL_NU_STUB(sockfs, listen, nomod_zero);
360 360 SCALL_NU_STUB(sockfs, accept, nomod_zero);
361 361 SCALL_NU_STUB(sockfs, connect, nomod_zero);
362 362 SCALL_NU_STUB(sockfs, shutdown, nomod_zero);
363 363 SCALL_NU_STUB(sockfs, recv, nomod_zero);
364 364 SCALL_NU_STUB(sockfs, recvfrom, nomod_zero);
365 365 SCALL_NU_STUB(sockfs, recvmsg, nomod_zero);
366 366 SCALL_NU_STUB(sockfs, send, nomod_zero);
367 367 SCALL_NU_STUB(sockfs, sendmsg, nomod_zero);
368 368 SCALL_NU_STUB(sockfs, sendto, nomod_zero);
369 369 #ifdef _SYSCALL32_IMPL
370 370 SCALL_NU_STUB(sockfs, recv32, nomod_zero);
371 371 SCALL_NU_STUB(sockfs, recvfrom32, nomod_zero);
372 372 SCALL_NU_STUB(sockfs, send32, nomod_zero);
373 373 SCALL_NU_STUB(sockfs, sendto32, nomod_zero);
374 374 #endif /* _SYSCALL32_IMPL */
375 375 SCALL_NU_STUB(sockfs, getpeername, nomod_zero);
376 376 SCALL_NU_STUB(sockfs, getsockname, nomod_zero);
377 377 SCALL_NU_STUB(sockfs, getsockopt, nomod_zero);
378 378 SCALL_NU_STUB(sockfs, setsockopt, nomod_zero);
379 379 SCALL_NU_STUB(sockfs, sockconfig, nomod_zero);
380 380 NO_UNLOAD_STUB(sockfs, sock_getmsg, nomod_zero);
381 381 NO_UNLOAD_STUB(sockfs, sock_putmsg, nomod_zero);
382 382 NO_UNLOAD_STUB(sockfs, sosendfile64, nomod_zero);
383 383 NO_UNLOAD_STUB(sockfs, snf_segmap, nomod_einval);
384 384 NO_UNLOAD_STUB(sockfs, sock_getfasync, nomod_zero);
385 385 NO_UNLOAD_STUB(sockfs, nl7c_sendfilev, nomod_zero);
386 386 NO_UNLOAD_STUB(sockfs, sotpi_sototpi, nomod_zero);
387 387 NO_UNLOAD_STUB(sockfs, socket_sendmblk, nomod_zero);
388 388 NO_UNLOAD_STUB(sockfs, socket_setsockopt, nomod_zero);
389 389 END_MODULE(sockfs);
390 390 #endif
391 391
392 392 /*
393 393 * IPsec stubs.
394 394 */
395 395
396 396 #ifndef IPSECAH_MODULE
397 397 MODULE(ipsecah,drv);
398 398 WSTUB(ipsecah, ipsec_construct_inverse_acquire, nomod_zero);
399 399 WSTUB(ipsecah, sadb_acquire, nomod_zero);
400 400 WSTUB(ipsecah, ipsecah_algs_changed, nomod_zero);
401 401 WSTUB(ipsecah, sadb_alg_update, nomod_zero);
402 402 WSTUB(ipsecah, sadb_unlinkassoc, nomod_zero);
403 403 WSTUB(ipsecah, sadb_insertassoc, nomod_zero);
404 404 WSTUB(ipsecah, ipsecah_in_assocfailure, nomod_zero);
405 405 WSTUB(ipsecah, sadb_set_lpkt, nomod_zero);
406 406 WSTUB(ipsecah, ipsecah_icmp_error, nomod_zero);
407 407 END_MODULE(ipsecah);
408 408 #endif
409 409
410 410 #ifndef IPSECESP_MODULE
411 411 MODULE(ipsecesp,drv);
412 412 WSTUB(ipsecesp, ipsecesp_fill_defs, nomod_zero);
413 413 WSTUB(ipsecesp, ipsecesp_algs_changed, nomod_zero);
414 414 WSTUB(ipsecesp, ipsecesp_in_assocfailure, nomod_zero);
415 415 WSTUB(ipsecesp, ipsecesp_init_funcs, nomod_zero);
416 416 WSTUB(ipsecesp, ipsecesp_icmp_error, nomod_zero);
417 417 WSTUB(ipsecesp, ipsecesp_send_keepalive, nomod_zero);
418 418 END_MODULE(ipsecesp);
419 419 #endif
420 420
421 421 #ifndef KEYSOCK_MODULE
422 422 MODULE(keysock,drv);
423 423 WSTUB(keysock, keysock_plumb_ipsec, nomod_zero);
424 424 WSTUB(keysock, keysock_extended_reg, nomod_zero);
425 425 WSTUB(keysock, keysock_next_seq, nomod_zero);
426 426 END_MODULE(keysock);
427 427 #endif
428 428
429 429 #ifndef SPDSOCK_MODULE
430 430 MODULE(spdsock,drv);
431 431 WSTUB(spdsock, spdsock_update_pending_algs, nomod_zero);
432 432 END_MODULE(spdsock);
433 433 #endif
434 434
435 435 /*
436 436 * Stubs for nfs common code.
437 437 * XXX nfs_getvnodeops should go away with removal of kludge in vnode.c
438 438 */
439 439 #ifndef NFS_MODULE
440 440 MODULE(nfs,fs);
441 441 WSTUB(nfs, nfs_getvnodeops, nomod_zero);
442 442 WSTUB(nfs, nfs_perror, nomod_zero);
443 443 WSTUB(nfs, nfs_cmn_err, nomod_zero);
444 444 WSTUB(nfs, clcleanup_zone, nomod_zero);
445 445 WSTUB(nfs, clcleanup4_zone, nomod_zero);
446 446 END_MODULE(nfs);
447 447 #endif
448 448
449 449 /*
450 450 * Stubs for nfs_dlboot (diskless booting).
451 451 */
452 452 #ifndef NFS_DLBOOT_MODULE
453 453 MODULE(nfs_dlboot,misc);
454 454 STUB(nfs_dlboot, mount_root, nomod_minus_one);
455 455 STUB(nfs_dlboot, dhcpinit, nomod_minus_one);
456 456 END_MODULE(nfs_dlboot);
457 457 #endif
458 458
459 459 /*
460 460 * Stubs for nfs server-only code.
461 461 */
462 462 #ifndef NFSSRV_MODULE
463 463 MODULE(nfssrv,misc);
464 464 STUB(nfssrv, exportfs, nomod_minus_one);
465 465 STUB(nfssrv, nfs_getfh, nomod_minus_one);
466 466 STUB(nfssrv, nfsl_flush, nomod_minus_one);
467 467 STUB(nfssrv, rfs4_check_delegated, nomod_zero);
468 468 STUB(nfssrv, mountd_args, nomod_minus_one);
469 469 NO_UNLOAD_STUB(nfssrv, rdma_start, nomod_zero);
470 470 NO_UNLOAD_STUB(nfssrv, nfs_svc, nomod_zero);
471 471 END_MODULE(nfssrv);
472 472 #endif
473 473
474 474 /*
475 475 * Stubs for kernel lock manager.
476 476 */
477 477 #ifndef KLM_MODULE
478 478 MODULE(klmmod,misc);
479 479 NO_UNLOAD_STUB(klmmod, lm_svc, nomod_zero);
480 480 NO_UNLOAD_STUB(klmmod, lm_shutdown, nomod_zero);
481 481 NO_UNLOAD_STUB(klmmod, lm_unexport, nomod_zero);
482 482 NO_UNLOAD_STUB(klmmod, lm_cprresume, nomod_zero);
483 483 NO_UNLOAD_STUB(klmmod, lm_cprsuspend, nomod_zero);
484 484 NO_UNLOAD_STUB(klmmod, lm_safelock, nomod_zero);
485 485 NO_UNLOAD_STUB(klmmod, lm_safemap, nomod_zero);
486 486 NO_UNLOAD_STUB(klmmod, lm_has_sleep, nomod_zero);
487 487 NO_UNLOAD_STUB(klmmod, lm_free_config, nomod_zero);
488 488 NO_UNLOAD_STUB(klmmod, lm_vp_active, nomod_zero);
489 489 NO_UNLOAD_STUB(klmmod, lm_get_sysid, nomod_zero);
490 490 NO_UNLOAD_STUB(klmmod, lm_rel_sysid, nomod_zero);
491 491 NO_UNLOAD_STUB(klmmod, lm_alloc_sysidt, nomod_minus_one);
492 492 NO_UNLOAD_STUB(klmmod, lm_free_sysidt, nomod_zero);
493 493 NO_UNLOAD_STUB(klmmod, lm_sysidt, nomod_minus_one);
494 494 END_MODULE(klmmod);
495 495 #endif
496 496
497 497 #ifndef KLMOPS_MODULE
498 498 MODULE(klmops,misc);
499 499 NO_UNLOAD_STUB(klmops, lm_frlock, nomod_zero);
500 500 NO_UNLOAD_STUB(klmops, lm4_frlock, nomod_zero);
501 501 NO_UNLOAD_STUB(klmops, lm_shrlock, nomod_zero);
502 502 NO_UNLOAD_STUB(klmops, lm4_shrlock, nomod_zero);
503 503 NO_UNLOAD_STUB(klmops, lm_nlm_dispatch, nomod_zero);
504 504 NO_UNLOAD_STUB(klmops, lm_nlm4_dispatch, nomod_zero);
505 505 NO_UNLOAD_STUB(klmops, lm_nlm_reclaim, nomod_zero);
506 506 NO_UNLOAD_STUB(klmops, lm_nlm4_reclaim, nomod_zero);
507 507 NO_UNLOAD_STUB(klmops, lm_register_lock_locally, nomod_zero);
508 508 END_MODULE(klmops);
509 509 #endif
510 510
511 511 /*
512 512 * Stubs for kernel TLI module
513 513 * XXX currently we never allow this to unload
514 514 */
515 515 #ifndef TLI_MODULE
516 516 MODULE(tlimod,misc);
517 517 NO_UNLOAD_STUB(tlimod, t_kopen, nomod_minus_one);
518 518 NO_UNLOAD_STUB(tlimod, t_kunbind, nomod_zero);
519 519 NO_UNLOAD_STUB(tlimod, t_kadvise, nomod_zero);
520 520 NO_UNLOAD_STUB(tlimod, t_krcvudata, nomod_zero);
521 521 NO_UNLOAD_STUB(tlimod, t_ksndudata, nomod_zero);
522 522 NO_UNLOAD_STUB(tlimod, t_kalloc, nomod_zero);
523 523 NO_UNLOAD_STUB(tlimod, t_kbind, nomod_zero);
524 524 NO_UNLOAD_STUB(tlimod, t_kclose, nomod_zero);
525 525 NO_UNLOAD_STUB(tlimod, t_kspoll, nomod_zero);
526 526 NO_UNLOAD_STUB(tlimod, t_kfree, nomod_zero);
527 527 END_MODULE(tlimod);
528 528 #endif
529 529
530 530 /*
531 531 * Stubs for kernel RPC module
532 532 * XXX currently we never allow this to unload
533 533 */
534 534 #ifndef RPC_MODULE
535 535 MODULE(rpcmod,strmod);
536 536 NO_UNLOAD_STUB(rpcmod, clnt_tli_kcreate, nomod_minus_one);
537 537 NO_UNLOAD_STUB(rpcmod, svc_tli_kcreate, nomod_minus_one);
538 538 NO_UNLOAD_STUB(rpcmod, bindresvport, nomod_minus_one);
539 539 NO_UNLOAD_STUB(rpcmod, rdma_register_mod, nomod_minus_one);
540 540 NO_UNLOAD_STUB(rpcmod, rdma_unregister_mod, nomod_minus_one);
541 541 NO_UNLOAD_STUB(rpcmod, svc_queuereq, nomod_minus_one);
542 542 NO_UNLOAD_STUB(rpcmod, clist_add, nomod_minus_one);
543 543 END_MODULE(rpcmod);
544 544 #endif
545 545
546 546 /*
547 547 * Stubs for des
548 548 */
549 549 #ifndef DES_MODULE
550 550 MODULE(des,misc);
551 551 STUB(des, cbc_crypt, nomod_zero);
552 552 STUB(des, ecb_crypt, nomod_zero);
553 553 STUB(des, _des_crypt, nomod_zero);
554 554 END_MODULE(des);
555 555 #endif
556 556
557 557 /*
558 558 * Stubs for procfs. A non-unloadable module.
559 559 */
560 560 #ifndef PROC_MODULE
↓ open down ↓ |
560 lines elided |
↑ open up ↑ |
561 561 MODULE(procfs,fs);
562 562 NO_UNLOAD_STUB(procfs, prfree, nomod_zero);
563 563 NO_UNLOAD_STUB(procfs, prexit, nomod_zero);
564 564 NO_UNLOAD_STUB(procfs, prlwpfree, nomod_zero);
565 565 NO_UNLOAD_STUB(procfs, prlwpexit, nomod_zero);
566 566 NO_UNLOAD_STUB(procfs, prinvalidate, nomod_zero);
567 567 NO_UNLOAD_STUB(procfs, prnsegs, nomod_zero);
568 568 NO_UNLOAD_STUB(procfs, prgetcred, nomod_zero);
569 569 NO_UNLOAD_STUB(procfs, prgetpriv, nomod_zero);
570 570 NO_UNLOAD_STUB(procfs, prgetprivsize, nomod_zero);
571 + NO_UNLOAD_STUB(procfs, prgetsecflags, nomod_zero);
571 572 NO_UNLOAD_STUB(procfs, prgetstatus, nomod_zero);
572 573 NO_UNLOAD_STUB(procfs, prgetlwpstatus, nomod_zero);
573 574 NO_UNLOAD_STUB(procfs, prgetpsinfo, nomod_zero);
574 575 NO_UNLOAD_STUB(procfs, prgetlwpsinfo, nomod_zero);
575 576 NO_UNLOAD_STUB(procfs, oprgetstatus, nomod_zero);
576 577 NO_UNLOAD_STUB(procfs, oprgetpsinfo, nomod_zero);
577 578 #ifdef _SYSCALL32_IMPL
578 579 NO_UNLOAD_STUB(procfs, prgetstatus32, nomod_zero);
579 580 NO_UNLOAD_STUB(procfs, prgetlwpstatus32, nomod_zero);
580 581 NO_UNLOAD_STUB(procfs, prgetpsinfo32, nomod_zero);
581 582 NO_UNLOAD_STUB(procfs, prgetlwpsinfo32, nomod_zero);
582 583 NO_UNLOAD_STUB(procfs, oprgetstatus32, nomod_zero);
583 584 NO_UNLOAD_STUB(procfs, oprgetpsinfo32, nomod_zero);
584 585 NO_UNLOAD_STUB(procfs, psinfo_kto32, nomod_zero);
585 586 NO_UNLOAD_STUB(procfs, lwpsinfo_kto32, nomod_zero);
586 587 #endif /* _SYSCALL32_IMPL */
587 588 NO_UNLOAD_STUB(procfs, prnotify, nomod_zero);
588 589 NO_UNLOAD_STUB(procfs, prexecstart, nomod_zero);
589 590 NO_UNLOAD_STUB(procfs, prexecend, nomod_zero);
590 591 NO_UNLOAD_STUB(procfs, prrelvm, nomod_zero);
591 592 NO_UNLOAD_STUB(procfs, prbarrier, nomod_zero);
592 593 NO_UNLOAD_STUB(procfs, estimate_msacct, nomod_zero);
593 594 NO_UNLOAD_STUB(procfs, pr_getprot, nomod_zero);
594 595 NO_UNLOAD_STUB(procfs, pr_getprot_done, nomod_zero);
595 596 NO_UNLOAD_STUB(procfs, pr_getsegsize, nomod_zero);
596 597 NO_UNLOAD_STUB(procfs, pr_isobject, nomod_zero);
597 598 NO_UNLOAD_STUB(procfs, pr_isself, nomod_zero);
598 599 NO_UNLOAD_STUB(procfs, pr_allstopped, nomod_zero);
599 600 NO_UNLOAD_STUB(procfs, pr_free_watched_pages, nomod_zero);
600 601 END_MODULE(procfs);
601 602 #endif
602 603
603 604 /*
604 605 * Stubs for fifofs
605 606 */
606 607 #ifndef FIFO_MODULE
607 608 MODULE(fifofs,fs);
608 609 STUB(fifofs, fifovp, 0);
609 610 STUB(fifofs, fifo_getinfo, 0);
610 611 STUB(fifofs, fifo_vfastoff, 0);
611 612 END_MODULE(fifofs);
612 613 #endif
613 614
614 615 /*
615 616 * Stubs for ufs
616 617 *
617 618 * This is needed to support the old quotactl system call.
618 619 * When the old sysent stuff goes away, this will need to be revisited.
619 620 */
620 621 #ifndef UFS_MODULE
621 622 MODULE(ufs,fs);
622 623 STUB(ufs, quotactl, nomod_minus_one);
623 624 STUB(ufs, ufs_remountroot, 0);
624 625 END_MODULE(ufs);
625 626 #endif
626 627
627 628 /*
628 629 * Stubs for zfs
629 630 */
630 631 #ifndef ZFS_MODULE
631 632 MODULE(zfs,fs);
632 633 STUB(zfs, dsl_prop_get, nomod_minus_one);
633 634 STUB(zfs, spa_boot_init, nomod_minus_one);
634 635 STUB(zfs, zfs_prop_to_name, nomod_zero);
635 636 END_MODULE(zfs);
636 637 #endif
637 638
638 639 /*
639 640 * Stubs for dcfs
640 641 */
641 642 #ifndef DCFS_MODULE
642 643 MODULE(dcfs,fs);
643 644 STUB(dcfs, decompvp, 0);
644 645 END_MODULE(dcfs);
645 646 #endif
646 647
647 648 /*
648 649 * Stubs for namefs
649 650 */
650 651 #ifndef NAMEFS_MODULE
651 652 MODULE(namefs,fs);
652 653 STUB(namefs, nm_unmountall, 0);
653 654 END_MODULE(namefs);
654 655 #endif
655 656
656 657 /*
657 658 * Stubs for sysdc
658 659 */
659 660 #ifndef SDC_MODULE
660 661 MODULE(SDC,sched);
661 662 NO_UNLOAD_STUB(SDC, sysdc_thread_enter, nomod_zero);
662 663 END_MODULE(SDC);
663 664 #endif
664 665
665 666 /*
666 667 * Stubs for ts_dptbl
667 668 */
668 669 #ifndef TS_DPTBL_MODULE
669 670 MODULE(TS_DPTBL,sched);
670 671 STUB(TS_DPTBL, ts_getdptbl, 0);
671 672 STUB(TS_DPTBL, ts_getkmdpris, 0);
672 673 STUB(TS_DPTBL, ts_getmaxumdpri, 0);
673 674 END_MODULE(TS_DPTBL);
674 675 #endif
675 676
676 677 /*
677 678 * Stubs for rt_dptbl
678 679 */
679 680 #ifndef RT_DPTBL_MODULE
680 681 MODULE(RT_DPTBL,sched);
681 682 STUB(RT_DPTBL, rt_getdptbl, 0);
682 683 END_MODULE(RT_DPTBL);
683 684 #endif
684 685
685 686 /*
686 687 * Stubs for ia_dptbl
687 688 */
688 689 #ifndef IA_DPTBL_MODULE
689 690 MODULE(IA_DPTBL,sched);
690 691 STUB(IA_DPTBL, ia_getdptbl, 0);
691 692 STUB(IA_DPTBL, ia_getkmdpris, 0);
692 693 STUB(IA_DPTBL, ia_getmaxumdpri, 0);
693 694 END_MODULE(IA_DPTBL);
694 695 #endif
695 696
696 697 /*
697 698 * Stubs for FSS scheduler
698 699 */
699 700 #ifndef FSS_MODULE
700 701 MODULE(FSS,sched);
701 702 WSTUB(FSS, fss_allocbuf, nomod_zero);
702 703 WSTUB(FSS, fss_freebuf, nomod_zero);
703 704 WSTUB(FSS, fss_changeproj, nomod_zero);
704 705 WSTUB(FSS, fss_changepset, nomod_zero);
705 706 END_MODULE(FSS);
706 707 #endif
707 708
708 709 /*
709 710 * Stubs for fx_dptbl
710 711 */
711 712 #ifndef FX_DPTBL_MODULE
712 713 MODULE(FX_DPTBL,sched);
713 714 STUB(FX_DPTBL, fx_getdptbl, 0);
714 715 STUB(FX_DPTBL, fx_getmaxumdpri, 0);
715 716 END_MODULE(FX_DPTBL);
716 717 #endif
717 718
718 719 /*
719 720 * Stubs for kb (only needed for 'win')
720 721 */
721 722 #ifndef KB_MODULE
722 723 MODULE(kb,strmod);
723 724 STUB(kb, strsetwithdecimal, 0);
724 725 END_MODULE(kb);
725 726 #endif
726 727
727 728 /*
728 729 * Stubs for swapgeneric
729 730 */
730 731 #ifndef SWAPGENERIC_MODULE
731 732 MODULE(swapgeneric,misc);
732 733 STUB(swapgeneric, rootconf, 0);
733 734 STUB(swapgeneric, svm_rootconf, 0);
734 735 STUB(swapgeneric, getrootdev, 0);
735 736 STUB(swapgeneric, getfsname, 0);
736 737 STUB(swapgeneric, loadrootmodules, 0);
737 738 END_MODULE(swapgeneric);
738 739 #endif
739 740
740 741 /*
741 742 * Stubs for bootdev
742 743 */
743 744 #ifndef BOOTDEV_MODULE
744 745 MODULE(bootdev,misc);
745 746 STUB(bootdev, i_devname_to_promname, 0);
746 747 STUB(bootdev, i_promname_to_devname, 0);
747 748 STUB(bootdev, i_convert_boot_device_name, 0);
748 749 END_MODULE(bootdev);
749 750 #endif
750 751
751 752 /*
752 753 * stubs for strplumb...
753 754 */
754 755 #ifndef STRPLUMB_MODULE
755 756 MODULE(strplumb,misc);
756 757 STUB(strplumb, strplumb, 0);
757 758 STUB(strplumb, strplumb_load, 0);
758 759 STUB(strplumb, strplumb_get_netdev_path, 0)
759 760 END_MODULE(strplumb);
760 761 #endif
761 762
762 763 /*
763 764 * Stubs for console configuration module
764 765 */
765 766 #ifndef CONSCONFIG_MODULE
766 767 MODULE(consconfig,misc);
767 768 STUB(consconfig, consconfig, 0);
768 769 STUB(consconfig, consconfig_get_usb_kb_path, 0);
769 770 STUB(consconfig, consconfig_get_usb_ms_path, 0);
770 771 STUB(consconfig, consconfig_console_is_ready, 0);
771 772 END_MODULE(consconfig);
772 773 #endif
773 774
774 775 /*
775 776 * Stubs for zs (uart) module
776 777 */
777 778 #ifndef ZS_MODULE
778 779 MODULE(zs,drv);
779 780 STUB(zs, zsgetspeed, 0);
780 781 END_MODULE(zs);
781 782 #endif
782 783
783 784 /*
784 785 * Stubs for accounting.
785 786 */
786 787 #ifndef SYSACCT_MODULE
787 788 MODULE(sysacct,sys);
788 789 WSTUB(sysacct, acct, nomod_zero);
789 790 WSTUB(sysacct, acct_fs_in_use, nomod_zero);
790 791 END_MODULE(sysacct);
791 792 #endif
792 793
793 794 /*
794 795 * Stubs for semaphore routines. sem.c
795 796 */
796 797 #ifndef SEMSYS_MODULE
797 798 MODULE(semsys,sys);
798 799 WSTUB(semsys, semexit, nomod_zero);
799 800 END_MODULE(semsys);
800 801 #endif
801 802
802 803 /*
803 804 * Stubs for shmem routines. shm.c
804 805 */
805 806 #ifndef SHMSYS_MODULE
806 807 MODULE(shmsys,sys);
807 808 WSTUB(shmsys, shmexit, nomod_zero);
808 809 WSTUB(shmsys, shmfork, nomod_zero);
809 810 WSTUB(shmsys, shmgetid, nomod_minus_one);
810 811 END_MODULE(shmsys);
811 812 #endif
812 813
813 814 /*
814 815 * Stubs for doors
815 816 */
816 817 #ifndef DOORFS_MODULE
817 818 MODULE(doorfs,sys);
818 819 WSTUB(doorfs, door_slam, nomod_zero);
819 820 WSTUB(doorfs, door_exit, nomod_zero);
820 821 WSTUB(doorfs, door_revoke_all, nomod_zero);
821 822 WSTUB(doorfs, door_fork, nomod_zero);
822 823 NO_UNLOAD_STUB(doorfs, door_upcall, nomod_einval);
823 824 NO_UNLOAD_STUB(doorfs, door_ki_create, nomod_einval);
824 825 NO_UNLOAD_STUB(doorfs, door_ki_open, nomod_einval);
825 826 NO_UNLOAD_STUB(doorfs, door_ki_lookup, nomod_zero);
826 827 WSTUB(doorfs, door_ki_upcall, nomod_einval);
827 828 WSTUB(doorfs, door_ki_upcall_limited, nomod_einval);
828 829 WSTUB(doorfs, door_ki_hold, nomod_zero);
829 830 WSTUB(doorfs, door_ki_rele, nomod_zero);
830 831 WSTUB(doorfs, door_ki_info, nomod_einval);
831 832 END_MODULE(doorfs);
832 833 #endif
833 834
834 835 /*
835 836 * Stubs for idmap
836 837 */
837 838 #ifndef IDMAP_MODULE
838 839 MODULE(idmap,misc);
839 840 STUB(idmap, kidmap_batch_getgidbysid, nomod_zero);
840 841 STUB(idmap, kidmap_batch_getpidbysid, nomod_zero);
841 842 STUB(idmap, kidmap_batch_getsidbygid, nomod_zero);
842 843 STUB(idmap, kidmap_batch_getsidbyuid, nomod_zero);
843 844 STUB(idmap, kidmap_batch_getuidbysid, nomod_zero);
844 845 STUB(idmap, kidmap_get_create, nomod_zero);
845 846 STUB(idmap, kidmap_get_destroy, nomod_zero);
846 847 STUB(idmap, kidmap_get_mappings, nomod_zero);
847 848 STUB(idmap, kidmap_getgidbysid, nomod_zero);
848 849 STUB(idmap, kidmap_getpidbysid, nomod_zero);
849 850 STUB(idmap, kidmap_getsidbygid, nomod_zero);
850 851 STUB(idmap, kidmap_getsidbyuid, nomod_zero);
851 852 STUB(idmap, kidmap_getuidbysid, nomod_zero);
852 853 STUB(idmap, idmap_get_door, nomod_einval);
853 854 STUB(idmap, idmap_unreg_dh, nomod_einval);
854 855 STUB(idmap, idmap_reg_dh, nomod_einval);
855 856 STUB(idmap, idmap_purge_cache, nomod_einval);
856 857 END_MODULE(idmap);
857 858 #endif
858 859
859 860 /*
860 861 * Stubs for dma routines. dmaga.c
861 862 * (These are only needed for cross-checks, not autoloading)
862 863 */
863 864 #ifndef DMA_MODULE
864 865 MODULE(dma,drv);
865 866 WSTUB(dma, dma_alloc, nomod_zero); /* (DMAGA *)0 */
866 867 WSTUB(dma, dma_free, nomod_zero); /* (DMAGA *)0 */
867 868 END_MODULE(dma);
868 869 #endif
869 870
870 871 /*
871 872 * Stubs for auditing.
872 873 */
873 874 #ifndef C2AUDIT_MODULE
874 875 MODULE(c2audit,sys);
875 876 NO_UNLOAD_STUB(c2audit, audit_init_module, nomod_zero);
876 877 NO_UNLOAD_STUB(c2audit, audit_start, nomod_zero);
877 878 NO_UNLOAD_STUB(c2audit, audit_finish, nomod_zero);
878 879 NO_UNLOAD_STUB(c2audit, audit, nomod_zero);
879 880 NO_UNLOAD_STUB(c2audit, auditdoor, nomod_zero);
880 881 NO_UNLOAD_STUB(c2audit, audit_closef, nomod_zero);
881 882 NO_UNLOAD_STUB(c2audit, audit_core_start, nomod_zero);
882 883 NO_UNLOAD_STUB(c2audit, audit_core_finish, nomod_zero);
883 884 NO_UNLOAD_STUB(c2audit, audit_strputmsg, nomod_zero);
884 885 NO_UNLOAD_STUB(c2audit, audit_savepath, nomod_zero);
885 886 NO_UNLOAD_STUB(c2audit, audit_anchorpath, nomod_zero);
886 887 NO_UNLOAD_STUB(c2audit, audit_exit, nomod_zero);
887 888 NO_UNLOAD_STUB(c2audit, audit_exec, nomod_zero);
888 889 NO_UNLOAD_STUB(c2audit, audit_symlink, nomod_zero);
889 890 NO_UNLOAD_STUB(c2audit, audit_symlink_create, nomod_zero);
890 891 NO_UNLOAD_STUB(c2audit, audit_vncreate_start, nomod_zero);
891 892 NO_UNLOAD_STUB(c2audit, audit_vncreate_finish, nomod_zero);
892 893 NO_UNLOAD_STUB(c2audit, audit_enterprom, nomod_zero);
893 894 NO_UNLOAD_STUB(c2audit, audit_exitprom, nomod_zero);
↓ open down ↓ |
313 lines elided |
↑ open up ↑ |
894 895 NO_UNLOAD_STUB(c2audit, audit_chdirec, nomod_zero);
895 896 NO_UNLOAD_STUB(c2audit, audit_setf, nomod_zero);
896 897 NO_UNLOAD_STUB(c2audit, audit_sock, nomod_zero);
897 898 NO_UNLOAD_STUB(c2audit, audit_strgetmsg, nomod_zero);
898 899 NO_UNLOAD_STUB(c2audit, audit_ipc, nomod_zero);
899 900 NO_UNLOAD_STUB(c2audit, audit_ipcget, nomod_zero);
900 901 NO_UNLOAD_STUB(c2audit, audit_fdsend, nomod_zero);
901 902 NO_UNLOAD_STUB(c2audit, audit_fdrecv, nomod_zero);
902 903 NO_UNLOAD_STUB(c2audit, audit_priv, nomod_zero);
903 904 NO_UNLOAD_STUB(c2audit, audit_setppriv, nomod_zero);
905 + NO_UNLOAD_STUB(c2audit, audit_psecflags, nomod_zero);
904 906 NO_UNLOAD_STUB(c2audit, audit_devpolicy, nomod_zero);
905 907 NO_UNLOAD_STUB(c2audit, audit_setfsat_path, nomod_zero);
906 908 NO_UNLOAD_STUB(c2audit, audit_cryptoadm, nomod_zero);
907 909 NO_UNLOAD_STUB(c2audit, audit_kssl, nomod_zero);
908 910 NO_UNLOAD_STUB(c2audit, audit_pf_policy, nomod_zero);
909 911 NO_UNLOAD_STUB(c2audit, au_doormsg, nomod_zero);
910 912 NO_UNLOAD_STUB(c2audit, au_uwrite, nomod_zero);
911 913 NO_UNLOAD_STUB(c2audit, au_to_arg32, nomod_zero);
912 914 NO_UNLOAD_STUB(c2audit, au_free_rec, nomod_zero);
913 915 END_MODULE(c2audit);
914 916 #endif
915 917
916 918 /*
917 919 * Stubs for kernel rpc security service module
918 920 */
919 921 #ifndef RPCSEC_MODULE
920 922 MODULE(rpcsec,misc);
921 923 NO_UNLOAD_STUB(rpcsec, sec_clnt_revoke, nomod_zero);
922 924 NO_UNLOAD_STUB(rpcsec, authkern_create, nomod_zero);
923 925 NO_UNLOAD_STUB(rpcsec, sec_svc_msg, nomod_zero);
924 926 NO_UNLOAD_STUB(rpcsec, sec_svc_control, nomod_zero);
925 927 END_MODULE(rpcsec);
926 928 #endif
927 929
928 930 /*
929 931 * Stubs for rpc RPCSEC_GSS security service module
930 932 */
931 933 #ifndef RPCSEC_GSS_MODULE
932 934 MODULE(rpcsec_gss,misc);
933 935 NO_UNLOAD_STUB(rpcsec_gss, __svcrpcsec_gss, nomod_zero);
934 936 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_getcred, nomod_zero);
935 937 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_set_callback, nomod_zero);
936 938 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_secget, nomod_zero);
937 939 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_secfree, nomod_zero);
938 940 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_seccreate, nomod_zero);
939 941 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_set_defaults, nomod_zero);
940 942 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_revauth, nomod_zero);
941 943 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_secpurge, nomod_zero);
942 944 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_cleanup, nomod_zero);
943 945 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_get_versions, nomod_zero);
944 946 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_max_data_length, nomod_zero);
945 947 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_svc_max_data_length, nomod_zero);
946 948 NO_UNLOAD_STUB(rpcsec_gss, rpc_gss_get_service_type, nomod_zero);
947 949 END_MODULE(rpcsec_gss);
948 950 #endif
949 951
950 952 #ifndef IWSCN_MODULE
951 953 MODULE(iwscn,drv);
952 954 STUB(iwscn, srpop, 0);
953 955 END_MODULE(iwscn);
954 956 #endif
955 957
956 958 /*
957 959 * Stubs for checkpoint-resume module
958 960 */
959 961 #ifndef CPR_MODULE
960 962 MODULE(cpr,misc);
961 963 STUB(cpr, cpr, 0);
962 964 END_MODULE(cpr);
963 965 #endif
964 966
965 967 /*
966 968 * Stubs for VIS module
967 969 */
968 970 #ifndef VIS_MODULE
969 971 MODULE(vis,misc);
970 972 STUB(vis, vis_fpu_simulator, 0);
971 973 STUB(vis, vis_fldst, 0);
972 974 STUB(vis, vis_rdgsr, 0);
973 975 STUB(vis, vis_wrgsr, 0);
974 976 END_MODULE(vis);
975 977 #endif
976 978
977 979 /*
978 980 * Stubs for kernel probes (tnf module). Not unloadable.
979 981 */
980 982 #ifndef TNF_MODULE
981 983 MODULE(tnf,drv);
982 984 NO_UNLOAD_STUB(tnf, tnf_ref32_1, nomod_zero);
983 985 NO_UNLOAD_STUB(tnf, tnf_string_1, nomod_zero);
984 986 NO_UNLOAD_STUB(tnf, tnf_opaque_array_1, nomod_zero);
985 987 NO_UNLOAD_STUB(tnf, tnf_opaque32_array_1, nomod_zero);
986 988 NO_UNLOAD_STUB(tnf, tnf_struct_tag_1, nomod_zero);
987 989 NO_UNLOAD_STUB(tnf, tnf_allocate, nomod_zero);
988 990 END_MODULE(tnf);
989 991 #endif
990 992
991 993 /*
992 994 * Clustering: stubs for bootstrapping.
993 995 */
994 996 #ifndef CL_BOOTSTRAP
995 997 MODULE(cl_bootstrap,misc);
996 998 NO_UNLOAD_WSTUB(cl_bootstrap, clboot_modload, nomod_minus_one);
997 999 NO_UNLOAD_WSTUB(cl_bootstrap, clboot_loadrootmodules, nomod_zero);
998 1000 NO_UNLOAD_WSTUB(cl_bootstrap, clboot_rootconf, nomod_zero);
999 1001 NO_UNLOAD_WSTUB(cl_bootstrap, clboot_mountroot, nomod_zero);
1000 1002 NO_UNLOAD_WSTUB(cl_bootstrap, clconf_init, nomod_zero);
1001 1003 NO_UNLOAD_WSTUB(cl_bootstrap, clconf_get_nodeid, nomod_zero);
1002 1004 NO_UNLOAD_WSTUB(cl_bootstrap, clconf_maximum_nodeid, nomod_zero);
1003 1005 NO_UNLOAD_WSTUB(cl_bootstrap, cluster, nomod_zero);
1004 1006 END_MODULE(cl_bootstrap);
1005 1007 #endif
1006 1008
1007 1009 /*
1008 1010 * Clustering: stubs for cluster infrastructure.
1009 1011 */
1010 1012 #ifndef CL_COMM_MODULE
1011 1013 MODULE(cl_comm,misc);
1012 1014 NO_UNLOAD_STUB(cl_comm, cladmin, nomod_minus_one);
1013 1015 END_MODULE(cl_comm);
1014 1016 #endif
1015 1017
1016 1018 /*
1017 1019 * Clustering: stubs for global file system operations.
1018 1020 */
1019 1021 #ifndef PXFS_MODULE
1020 1022 MODULE(pxfs,fs);
1021 1023 NO_UNLOAD_WSTUB(pxfs, clpxfs_aio_read, nomod_zero);
1022 1024 NO_UNLOAD_WSTUB(pxfs, clpxfs_aio_write, nomod_zero);
1023 1025 NO_UNLOAD_WSTUB(pxfs, cl_flk_state_transition_notify, nomod_zero);
1024 1026 END_MODULE(pxfs);
1025 1027 #endif
1026 1028
1027 1029 /*
1028 1030 * Stubs for PCI configurator module (misc/pcicfg).
1029 1031 */
1030 1032 #ifndef PCICFG_MODULE
1031 1033 MODULE(pcicfg,misc);
1032 1034 STUB(pcicfg, pcicfg_configure, 0);
1033 1035 STUB(pcicfg, pcicfg_unconfigure, 0);
1034 1036 END_MODULE(pcicfg);
1035 1037 #endif
1036 1038
1037 1039 #ifndef PCIHP_MODULE
1038 1040 MODULE(pcihp,misc);
1039 1041 WSTUB(pcihp, pcihp_init, nomod_minus_one);
1040 1042 WSTUB(pcihp, pcihp_uninit, nomod_minus_one);
1041 1043 WSTUB(pcihp, pcihp_info, nomod_minus_one);
1042 1044 WSTUB(pcihp, pcihp_get_cb_ops, nomod_zero);
1043 1045 END_MODULE(pcihp);
1044 1046 #endif
1045 1047
1046 1048 /*
1047 1049 * Stubs for kernel cryptographic framework module (misc/kcf).
1048 1050 */
1049 1051 #ifndef KCF_MODULE
1050 1052 MODULE(kcf,misc);
1051 1053 NO_UNLOAD_STUB(kcf, crypto_mech2id, nomod_minus_one);
1052 1054 NO_UNLOAD_STUB(kcf, crypto_register_provider, nomod_minus_one);
1053 1055 NO_UNLOAD_STUB(kcf, crypto_unregister_provider, nomod_minus_one);
1054 1056 NO_UNLOAD_STUB(kcf, crypto_provider_notification, nomod_minus_one);
1055 1057 NO_UNLOAD_STUB(kcf, crypto_op_notification, nomod_minus_one);
1056 1058 NO_UNLOAD_STUB(kcf, crypto_kmflag, nomod_minus_one);
1057 1059 NO_UNLOAD_STUB(kcf, crypto_digest, nomod_minus_one);
1058 1060 NO_UNLOAD_STUB(kcf, crypto_digest_prov, nomod_minus_one);
1059 1061 NO_UNLOAD_STUB(kcf, crypto_digest_init, nomod_minus_one);
1060 1062 NO_UNLOAD_STUB(kcf, crypto_digest_init_prov, nomod_minus_one);
1061 1063 NO_UNLOAD_STUB(kcf, crypto_digest_update, nomod_minus_one);
1062 1064 NO_UNLOAD_STUB(kcf, crypto_digest_final, nomod_minus_one);
1063 1065 NO_UNLOAD_STUB(kcf, crypto_digest_key_prov, nomod_minus_one);
1064 1066 NO_UNLOAD_STUB(kcf, crypto_encrypt, nomod_minus_one);
1065 1067 NO_UNLOAD_STUB(kcf, crypto_encrypt_prov, nomod_minus_one);
1066 1068 NO_UNLOAD_STUB(kcf, crypto_encrypt_init, nomod_minus_one);
1067 1069 NO_UNLOAD_STUB(kcf, crypto_encrypt_init_prov, nomod_minus_one);
1068 1070 NO_UNLOAD_STUB(kcf, crypto_encrypt_update, nomod_minus_one);
1069 1071 NO_UNLOAD_STUB(kcf, crypto_encrypt_final, nomod_minus_one);
1070 1072 NO_UNLOAD_STUB(kcf, crypto_decrypt, nomod_minus_one);
1071 1073 NO_UNLOAD_STUB(kcf, crypto_decrypt_prov, nomod_minus_one);
1072 1074 NO_UNLOAD_STUB(kcf, crypto_decrypt_init, nomod_minus_one);
1073 1075 NO_UNLOAD_STUB(kcf, crypto_decrypt_init_prov, nomod_minus_one);
1074 1076 NO_UNLOAD_STUB(kcf, crypto_decrypt_update, nomod_minus_one);
1075 1077 NO_UNLOAD_STUB(kcf, crypto_decrypt_final, nomod_minus_one);
1076 1078 NO_UNLOAD_STUB(kcf, crypto_get_all_mech_info, nomod_minus_one);
1077 1079 NO_UNLOAD_STUB(kcf, crypto_key_check, nomod_minus_one);
1078 1080 NO_UNLOAD_STUB(kcf, crypto_key_check_prov, nomod_minus_one);
1079 1081 NO_UNLOAD_STUB(kcf, crypto_key_derive, nomod_minus_one);
1080 1082 NO_UNLOAD_STUB(kcf, crypto_key_generate, nomod_minus_one);
1081 1083 NO_UNLOAD_STUB(kcf, crypto_key_generate_pair, nomod_minus_one);
1082 1084 NO_UNLOAD_STUB(kcf, crypto_key_unwrap, nomod_minus_one);
1083 1085 NO_UNLOAD_STUB(kcf, crypto_key_wrap, nomod_minus_one);
1084 1086 NO_UNLOAD_STUB(kcf, crypto_mac, nomod_minus_one);
1085 1087 NO_UNLOAD_STUB(kcf, crypto_mac_prov, nomod_minus_one);
1086 1088 NO_UNLOAD_STUB(kcf, crypto_mac_verify, nomod_minus_one);
1087 1089 NO_UNLOAD_STUB(kcf, crypto_mac_verify_prov, nomod_minus_one);
1088 1090 NO_UNLOAD_STUB(kcf, crypto_mac_init, nomod_minus_one);
1089 1091 NO_UNLOAD_STUB(kcf, crypto_mac_init_prov, nomod_minus_one);
1090 1092 NO_UNLOAD_STUB(kcf, crypto_mac_update, nomod_minus_one);
1091 1093 NO_UNLOAD_STUB(kcf, crypto_mac_final, nomod_minus_one);
1092 1094 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt, nomod_minus_one);
1093 1095 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt_prov, nomod_minus_one);
1094 1096 NO_UNLOAD_STUB(kcf, crypto_mac_verify_decrypt, nomod_minus_one);
1095 1097 NO_UNLOAD_STUB(kcf, crypto_mac_verify_decrypt_prov, nomod_minus_one);
1096 1098 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt_init, nomod_minus_one);
1097 1099 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt_init_prov, nomod_minus_one);
1098 1100 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt_update, nomod_minus_one);
1099 1101 NO_UNLOAD_STUB(kcf, crypto_mac_decrypt_final, nomod_minus_one);
1100 1102 NO_UNLOAD_STUB(kcf, crypto_object_copy, nomod_minus_one);
1101 1103 NO_UNLOAD_STUB(kcf, crypto_object_create, nomod_minus_one);
1102 1104 NO_UNLOAD_STUB(kcf, crypto_object_destroy, nomod_minus_one);
1103 1105 NO_UNLOAD_STUB(kcf, crypto_object_find_final, nomod_minus_one);
1104 1106 NO_UNLOAD_STUB(kcf, crypto_object_find_init, nomod_minus_one);
1105 1107 NO_UNLOAD_STUB(kcf, crypto_object_find, nomod_minus_one);
1106 1108 NO_UNLOAD_STUB(kcf, crypto_object_get_attribute_value, nomod_minus_one);
1107 1109 NO_UNLOAD_STUB(kcf, crypto_object_get_size, nomod_minus_one);
1108 1110 NO_UNLOAD_STUB(kcf, crypto_object_set_attribute_value, nomod_minus_one);
1109 1111 NO_UNLOAD_STUB(kcf, crypto_session_close, nomod_minus_one);
1110 1112 NO_UNLOAD_STUB(kcf, crypto_session_login, nomod_minus_one);
1111 1113 NO_UNLOAD_STUB(kcf, crypto_session_logout, nomod_minus_one);
1112 1114 NO_UNLOAD_STUB(kcf, crypto_session_open, nomod_minus_one);
1113 1115 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac, nomod_minus_one);
1114 1116 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac_prov, nomod_minus_one);
1115 1117 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac_init, nomod_minus_one);
1116 1118 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac_init_prov, nomod_minus_one);
1117 1119 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac_update, nomod_minus_one);
1118 1120 NO_UNLOAD_STUB(kcf, crypto_encrypt_mac_final, nomod_minus_one);
1119 1121 NO_UNLOAD_STUB(kcf, crypto_create_ctx_template, nomod_minus_one);
1120 1122 NO_UNLOAD_STUB(kcf, crypto_destroy_ctx_template, nomod_minus_one);
1121 1123 NO_UNLOAD_STUB(kcf, crypto_get_mech_list, nomod_minus_one);
1122 1124 NO_UNLOAD_STUB(kcf, crypto_free_mech_list, nomod_minus_one);
1123 1125 NO_UNLOAD_STUB(kcf, crypto_cancel_req, nomod_minus_one);
1124 1126 NO_UNLOAD_STUB(kcf, crypto_cancel_ctx, nomod_minus_one);
1125 1127 NO_UNLOAD_STUB(kcf, crypto_bufcall_alloc, nomod_minus_one);
1126 1128 NO_UNLOAD_STUB(kcf, crypto_bufcall_free, nomod_minus_one);
1127 1129 NO_UNLOAD_STUB(kcf, crypto_bufcall, nomod_minus_one);
1128 1130 NO_UNLOAD_STUB(kcf, crypto_unbufcall, nomod_minus_one);
1129 1131 NO_UNLOAD_STUB(kcf, crypto_notify_events, nomod_minus_one);
1130 1132 NO_UNLOAD_STUB(kcf, crypto_unnotify_events, nomod_minus_one);
1131 1133 NO_UNLOAD_STUB(kcf, crypto_get_provider, nomod_minus_one);
1132 1134 NO_UNLOAD_STUB(kcf, crypto_get_provinfo, nomod_minus_one);
1133 1135 NO_UNLOAD_STUB(kcf, crypto_release_provider, nomod_minus_one);
1134 1136 NO_UNLOAD_STUB(kcf, crypto_sign, nomod_minus_one);
1135 1137 NO_UNLOAD_STUB(kcf, crypto_sign_prov, nomod_minus_one);
1136 1138 NO_UNLOAD_STUB(kcf, crypto_sign_init, nomod_minus_one);
1137 1139 NO_UNLOAD_STUB(kcf, crypto_sign_init_prov, nomod_minus_one);
1138 1140 NO_UNLOAD_STUB(kcf, crypto_sign_update, nomod_minus_one);
1139 1141 NO_UNLOAD_STUB(kcf, crypto_sign_final, nomod_minus_one);
1140 1142 NO_UNLOAD_STUB(kcf, crypto_sign_recover, nomod_minus_one);
1141 1143 NO_UNLOAD_STUB(kcf, crypto_sign_recover_prov, nomod_minus_one);
1142 1144 NO_UNLOAD_STUB(kcf, crypto_sign_recover_init_prov, nomod_minus_one);
1143 1145 NO_UNLOAD_STUB(kcf, crypto_verify, nomod_minus_one);
1144 1146 NO_UNLOAD_STUB(kcf, crypto_verify_prov, nomod_minus_one);
1145 1147 NO_UNLOAD_STUB(kcf, crypto_verify_init, nomod_minus_one);
1146 1148 NO_UNLOAD_STUB(kcf, crypto_verify_init_prov, nomod_minus_one);
1147 1149 NO_UNLOAD_STUB(kcf, crypto_verify_update, nomod_minus_one);
1148 1150 NO_UNLOAD_STUB(kcf, crypto_verify_final, nomod_minus_one);
1149 1151 NO_UNLOAD_STUB(kcf, crypto_verify_recover, nomod_minus_one);
1150 1152 NO_UNLOAD_STUB(kcf, crypto_verify_recover_prov, nomod_minus_one);
1151 1153 NO_UNLOAD_STUB(kcf, crypto_verify_recover_init_prov, nomod_minus_one);
1152 1154 NO_UNLOAD_STUB(kcf, random_add_entropy, nomod_minus_one);
1153 1155 NO_UNLOAD_STUB(kcf, random_add_pseudo_entropy, nomod_minus_one);
1154 1156 NO_UNLOAD_STUB(kcf, random_get_blocking_bytes, nomod_minus_one);
1155 1157 NO_UNLOAD_STUB(kcf, random_get_bytes, nomod_minus_one);
1156 1158 NO_UNLOAD_STUB(kcf, random_get_pseudo_bytes, nomod_minus_one);
1157 1159 END_MODULE(kcf);
1158 1160 #endif
1159 1161
1160 1162 /*
1161 1163 * Stubs for sha1. A non-unloadable module.
1162 1164 */
1163 1165 #ifndef SHA1_MODULE
1164 1166 MODULE(sha1,crypto);
1165 1167 NO_UNLOAD_STUB(sha1, SHA1Init, nomod_void);
1166 1168 NO_UNLOAD_STUB(sha1, SHA1Update, nomod_void);
1167 1169 NO_UNLOAD_STUB(sha1, SHA1Final, nomod_void);
1168 1170 END_MODULE(sha1);
1169 1171 #endif
1170 1172
1171 1173 /*
1172 1174 * The following stubs are used by the mac module.
1173 1175 * Since dld already depends on mac, these
1174 1176 * stubs are needed to avoid circular dependencies.
1175 1177 */
1176 1178 #ifndef DLD_MODULE
1177 1179 MODULE(dld,drv);
1178 1180 STUB(dld, dld_init_ops, nomod_void);
1179 1181 STUB(dld, dld_fini_ops, nomod_void);
1180 1182 STUB(dld, dld_autopush, nomod_minus_one);
1181 1183 STUB(dld, dld_devt_to_instance, nomod_minus_one);
1182 1184 STUB(dld, dld_ioc_register, nomod_einval);
1183 1185 STUB(dld, dld_ioc_unregister, nomod_void);
1184 1186 END_MODULE(dld);
1185 1187 #endif
1186 1188
1187 1189 /*
1188 1190 * The following stubs are used by the mac module.
1189 1191 * Since dls already depends on mac, these
1190 1192 * stubs are needed to avoid circular dependencies.
1191 1193 */
1192 1194 #ifndef DLS_MODULE
1193 1195 MODULE(dls,misc);
1194 1196 STUB(dls, dls_devnet_mac, nomod_zero);
1195 1197 STUB(dls, dls_devnet_hold_tmp, nomod_einval);
1196 1198 STUB(dls, dls_devnet_rele_tmp, nomod_void);
1197 1199 STUB(dls, dls_devnet_hold_link, nomod_einval);
1198 1200 STUB(dls, dls_devnet_rele_link, nomod_void);
1199 1201 STUB(dls, dls_devnet_prop_task_wait, nomod_void);
1200 1202 STUB(dls, dls_mgmt_get_linkid, nomod_einval);
1201 1203 STUB(dls, dls_devnet_macname2linkid, nomod_einval);
1202 1204 STUB(dls, dls_mgmt_get_linkinfo, nomod_einval);
1203 1205 END_MODULE(dls);
1204 1206 #endif
1205 1207
1206 1208 #ifndef SOFTMAC_MODULE
1207 1209 MODULE(softmac,drv);
1208 1210 STUB(softmac, softmac_hold_device, nomod_einval);
1209 1211 STUB(softmac, softmac_rele_device, nomod_void);
1210 1212 STUB(softmac, softmac_recreate, nomod_void);
1211 1213 END_MODULE(softmac);
1212 1214 #endif
1213 1215
1214 1216 #ifndef IPTUN_MODULE
1215 1217 MODULE(iptun,drv);
1216 1218 STUB(iptun, iptun_create, nomod_einval);
1217 1219 STUB(iptun, iptun_delete, nomod_einval);
1218 1220 STUB(iptun, iptun_set_policy, nomod_einval);
1219 1221 END_MODULE(iptun);
1220 1222 #endif
1221 1223
1222 1224 /*
1223 1225 * Stubs for dcopy, for Intel IOAT KAPIs
1224 1226 */
1225 1227 #ifndef DCOPY_MODULE
1226 1228 MODULE(dcopy,misc);
1227 1229 NO_UNLOAD_STUB(dcopy, dcopy_query, nomod_minus_one);
1228 1230 NO_UNLOAD_STUB(dcopy, dcopy_query_channel, nomod_minus_one);
1229 1231 NO_UNLOAD_STUB(dcopy, dcopy_alloc, nomod_minus_one);
1230 1232 NO_UNLOAD_STUB(dcopy, dcopy_free, nomod_minus_one);
1231 1233 NO_UNLOAD_STUB(dcopy, dcopy_cmd_alloc, nomod_minus_one);
1232 1234 NO_UNLOAD_STUB(dcopy, dcopy_cmd_free, nomod_void);
1233 1235 NO_UNLOAD_STUB(dcopy, dcopy_cmd_post, nomod_minus_one);
1234 1236 NO_UNLOAD_STUB(dcopy, dcopy_cmd_poll, nomod_minus_one);
1235 1237 END_MODULE(dcopy);
1236 1238 #endif
1237 1239
1238 1240 #ifndef IPNET_MODULE
1239 1241 MODULE(ipnet,drv);
1240 1242 STUB(ipnet, ipnet_if_getdev, nomod_zero);
1241 1243 STUB(ipnet, ipnet_walk_if, nomod_zero);
1242 1244 END_MODULE(ipnet);
1243 1245 #endif
1244 1246
1245 1247 /*
1246 1248 * Stubs for kernel socket, for iscsi
1247 1249 */
1248 1250 #ifndef KSOCKET_MODULE
1249 1251 MODULE(ksocket, misc);
1250 1252 NO_UNLOAD_STUB(ksocket, ksocket_setsockopt, nomod_minus_one);
1251 1253 NO_UNLOAD_STUB(ksocket, ksocket_getsockopt, nomod_minus_one);
1252 1254 NO_UNLOAD_STUB(ksocket, ksocket_getpeername, nomod_minus_one);
1253 1255 NO_UNLOAD_STUB(ksocket, ksocket_getsockname, nomod_minus_one);
1254 1256 NO_UNLOAD_STUB(ksocket, ksocket_socket, nomod_minus_one);
1255 1257 NO_UNLOAD_STUB(ksocket, ksocket_bind, nomod_minus_one);
1256 1258 NO_UNLOAD_STUB(ksocket, ksocket_listen, nomod_minus_one);
1257 1259 NO_UNLOAD_STUB(ksocket, ksocket_accept, nomod_minus_one);
1258 1260 NO_UNLOAD_STUB(ksocket, ksocket_connect, nomod_minus_one);
1259 1261 NO_UNLOAD_STUB(ksocket, ksocket_recv, nomod_minus_one);
1260 1262 NO_UNLOAD_STUB(ksocket, ksocket_recvfrom, nomod_minus_one);
1261 1263 NO_UNLOAD_STUB(ksocket, ksocket_recvmsg, nomod_minus_one);
1262 1264 NO_UNLOAD_STUB(ksocket, ksocket_send, nomod_minus_one);
1263 1265 NO_UNLOAD_STUB(ksocket, ksocket_sendto, nomod_minus_one);
1264 1266 NO_UNLOAD_STUB(ksocket, ksocket_sendmsg, nomod_minus_one);
1265 1267 NO_UNLOAD_STUB(ksocket, ksocket_ioctl, nomod_minus_one);
1266 1268 NO_UNLOAD_STUB(ksocket, ksocket_setcallbacks, nomod_minus_one);
1267 1269 NO_UNLOAD_STUB(ksocket, ksocket_hold, nomod_minus_one);
1268 1270 NO_UNLOAD_STUB(ksocket, ksocket_rele, nomod_minus_one);
1269 1271 NO_UNLOAD_STUB(ksocket, ksocket_shutdown, nomod_minus_one);
1270 1272 NO_UNLOAD_STUB(ksocket, ksocket_close, nomod_minus_one);
1271 1273 END_MODULE(ksocket);
1272 1274 #endif
1273 1275
1274 1276 /*
1275 1277 * Stubs for elfexec
1276 1278 */
1277 1279 #ifndef ELFEXEC_MODULE
1278 1280 MODULE(elfexec,exec);
1279 1281 STUB(elfexec, elfexec, nomod_einval);
1280 1282 STUB(elfexec, elf32exec, nomod_einval);
1281 1283 STUB(elfexec, mapexec_brand, nomod_einval);
1282 1284 STUB(elfexec, mapexec32_brand, nomod_einval);
1283 1285 END_MODULE(elfexec);
1284 1286 #endif
1285 1287
1286 1288 ! this is just a marker for the area of text that contains stubs
1287 1289 .seg ".text"
1288 1290 .global stubs_end
1289 1291 stubs_end:
1290 1292 nop
1291 1293
1292 1294 #endif /* lint */
↓ open down ↓ |
379 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX