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