Up to [cvs.netbsd.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.83.2.2 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:25 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.83.2.1: +4 -10
lines
Diff to previous 1.83.2.1 (colored) to branchpoint 1.83 (colored) next main 1.84 (colored)
sync with head
Revision 1.85.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:30 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.85: +2 -9
lines
Diff to previous 1.85 (colored) next main 1.86 (colored)
merge to -current.
Revision 1.86 / (download) - annotate - [select for diffs], Sun Dec 4 19:24:59 2011 UTC (5 months, 3 weeks ago) by jym
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
netbsd-6,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
HEAD
Changes since 1.85: +2 -9
lines
Diff to previous 1.85 (colored)
Implement the register/deregister/evaluation API for secmodel(9). It
allows registration of callbacks that can be used later for
cross-secmodel "safe" communication.
When a secmodel wishes to know a property maintained by another
secmodel, it has to submit a request to it so the other secmodel can
proceed to evaluating the request. This is done through the
secmodel_eval(9) call; example:
bool isroot;
error = secmodel_eval("org.netbsd.secmodel.suser", "is-root",
cred, &isroot);
if (error == 0 && !isroot)
result = KAUTH_RESULT_DENY;
This one asks the suser module if the credentials are assumed to be root
when evaluated by suser module. If the module is present, it will
respond. If absent, the call will return an error.
Args and command are arbitrarily defined; it's up to the secmodel(9) to
document what it expects.
Typical example is securelevel testing: when someone wants to know
whether securelevel is raised above a certain level or not, the caller
has to request this property to the secmodel_securelevel(9) module.
Given that securelevel module may be absent from system's context (thus
making access to the global "securelevel" variable impossible or
unsafe), this API can cope with this absence and return an error.
We are using secmodel_eval(9) to implement a secmodel_extensions(9)
module, which plugs with the bsd44, suser and securelevel secmodels
to provide the logic behind curtain, usermount and user_set_cpu_affinity
modes, without adding hooks to traditional secmodels. This solves a
real issue with the current secmodel(9) code, as usermount or
user_set_cpu_affinity are not really tied to secmodel_suser(9).
The secmodel_eval(9) is also used to restrict security.models settings
when securelevel is above 0, through the "is-securelevel-above"
evaluation:
- curtain can be enabled any time, but cannot be disabled if
securelevel is above 0.
- usermount/user_set_cpu_affinity can be disabled any time, but cannot
be enabled if securelevel is above 0.
Regarding sysctl(7) entries:
curtain and usermount are now found under security.models.extensions
tree. The security.curtain and vfs.generic.usermount are still
accessible for backwards compat.
Documentation is incoming, I am proof-reading my writings.
Written by elad@, reviewed and tested (anita test + interact for rights
tests) by me. ok elad@.
See also
http://mail-index.netbsd.org/tech-security/2011/11/29/msg000422.html
XXX might consider va0 mapping too.
XXX Having a secmodel(9) specific printf (like aprint_*) for reporting
secmodel(9) errors might be a good idea, but I am not sure on how
to design such a function right now.
Revision 1.85 / (download) - annotate - [select for diffs], Mon Nov 28 03:13:31 2011 UTC (5 months, 4 weeks ago) by jnemeth
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.84: +4 -3
lines
Diff to previous 1.84 (colored)
Move "unloaded module" debug message higher as it appears that name sometimes points to memory that gets freed causing the system to crash.
Revision 1.24.4.2 / (download) - annotate - [select for diffs], Fri Nov 18 21:22:48 2011 UTC (6 months ago) by sborrill
Branch: netbsd-5
Changes since 1.24.4.1: +3 -3
lines
Diff to previous 1.24.4.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)
Pull up the following revisions(s) (requested by tron in ticket #1688): sys/kern/kern_module.c: revision 1.84 Return ENOEXEC instead of 0 if the info of a kernel module doesn't have the expected size. This prevents kernel panics when loading broken modules.
Revision 1.83.2.1 / (download) - annotate - [select for diffs], Thu Nov 10 14:31:48 2011 UTC (6 months, 2 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.83: +3 -3
lines
Diff to previous 1.83 (colored)
sync with head
Revision 1.84 / (download) - annotate - [select for diffs], Sun Nov 6 12:40:04 2011 UTC (6 months, 2 weeks ago) by tron
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Changes since 1.83: +3 -3
lines
Diff to previous 1.83 (colored)
Return ENOEXEC instead of 0 if the info of a kernel module doesn't have the expected size. This prevents kernel panics when loading broken modules.
Revision 1.83 / (download) - annotate - [select for diffs], Tue Oct 18 12:25:31 2011 UTC (7 months, 1 week ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.82: +10 -2
lines
Diff to previous 1.82 (colored)
Don't try to auto-unload modules unless they were auto-loaded.
Revision 1.82 / (download) - annotate - [select for diffs], Mon Sep 19 00:40:22 2011 UTC (8 months ago) by pgoyette
Branch: MAIN
Changes since 1.81: +4 -3
lines
Diff to previous 1.81 (colored)
When "loading" a built-in module needs to autoload a dependant module which is not already loaded (or was loaded, and then unloaded), make sure we return a pointer to the built-in module. Otherwise, when the initial module tries to update its dependancies' reference counts, we trigger a KASSERT in module_enqueue().
Revision 1.81 / (download) - annotate - [select for diffs], Wed Sep 14 12:29:22 2011 UTC (8 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.80: +4 -4
lines
Diff to previous 1.80 (colored)
don't increment the number of referenced module as a side effect if we fail. From jmcneill
Revision 1.80 / (download) - annotate - [select for diffs], Sat Aug 13 21:04:06 2011 UTC (9 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.79: +4 -4
lines
Diff to previous 1.79 (colored)
Always provide a meaningful short name for the kobj in the error message, as well as the function name and the linenumber, without extra line feeds.
Revision 1.79 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:52 2011 UTC (10 months, 1 week ago) by joerg
Branch: MAIN
Changes since 1.78: +2 -4
lines
Diff to previous 1.78 (colored)
Retire varargs.h support. Move machine/stdarg.h logic into MI sys/stdarg.h and expect compiler to provide proper builtins, defaulting to the GCC interface. lint still has a special fallback. Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and derive va_list as required by standards.
Revision 1.75.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:29 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.75: +17 -5
lines
Diff to previous 1.75 (colored) next main 1.76 (colored)
Sync with HEAD.
Revision 1.60.2.4 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:08 2011 UTC (13 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.60.2.3: +6 -3
lines
Diff to previous 1.60.2.3 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)
sync with head
Revision 1.78 / (download) - annotate - [select for diffs], Sun Apr 17 05:16:28 2011 UTC (13 months, 1 week ago) by mrg
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Changes since 1.77: +7 -4
lines
Diff to previous 1.77 (colored)
add a "module_machine", that defaults to machine. allows MD code to override the default subdir for modules.
Revision 1.77 / (download) - annotate - [select for diffs], Sat Apr 2 08:11:31 2011 UTC (13 months, 3 weeks ago) by mbalmer
Branch: MAIN
Changes since 1.76: +3 -3
lines
Diff to previous 1.76 (colored)
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
Revision 1.60.2.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:15 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.60.2.2: +95 -71
lines
Diff to previous 1.60.2.2 (colored) to branchpoint 1.60 (colored)
sync with head
Revision 1.75.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 15:10:39 2011 UTC (14 months, 3 weeks ago) by bouyer
Branch: bouyer-quota2
Changes since 1.75: +11 -2
lines
Diff to previous 1.75 (colored) next main 1.76 (colored)
Sync with HEAD
Revision 1.76 / (download) - annotate - [select for diffs], Mon Feb 21 09:53:06 2011 UTC (15 months ago) by pooka
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.75: +11 -2
lines
Diff to previous 1.75 (colored)
Don't allow disabling a builtin secmodel: too many questionable security implications.
Revision 1.75 / (download) - annotate - [select for diffs], Fri Jan 14 10:18:21 2011 UTC (16 months, 1 week ago) by martin
Branch: MAIN
CVS Tags: jruoho-x86intr-base,
bouyer-quota2-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Changes since 1.74: +4 -4
lines
Diff to previous 1.74 (colored)
Using "int" variables with sysctl's CTLTYPE_BOOL is a simple receipt to loose on big endian machines. So make the variables "bool".
Revision 1.74 / (download) - annotate - [select for diffs], Wed Dec 29 15:07:36 2010 UTC (16 months, 3 weeks ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.73: +10 -9
lines
Diff to previous 1.73 (colored)
Pass potential prop dictionary to modcmd when reenabling a builtin module.
Revision 1.57.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:26 2010 UTC (19 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.57.2.2: +73 -59
lines
Diff to previous 1.57.2.2 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)
Sync with HEAD (-D20101022).
Revision 1.73 / (download) - annotate - [select for diffs], Sat Oct 16 18:09:02 2010 UTC (19 months, 1 week ago) by pgoyette
Branch: MAIN
CVS Tags: uebayasi-xip-base4,
uebayasi-xip-base3
Changes since 1.72: +2 -3
lines
Diff to previous 1.72 (colored)
Remove double-inclusion of <sys/kauth.c>
Revision 1.9.6.6 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:31 2010 UTC (19 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.6.5: +76 -61
lines
Diff to previous 1.9.6.5 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)
sync with head
Revision 1.72 / (download) - annotate - [select for diffs], Sat Aug 21 13:17:31 2010 UTC (21 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11
Changes since 1.71: +75 -60
lines
Diff to previous 1.71 (colored)
Define a set of new kernel locking primitives to implement the recursive kernconfig_mutex. Update module subsystem to use this mutex rather than its own internal (non-recursive) mutex. Make module_autoload() do its own locking to be consistent with the rest of the module_xxx() calls. Update module(9) man page appropriately. As discussed on tech-kern over the last few weeks. Welcome to NetBSD 5.99.39 !
Revision 1.57.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:27 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.57.2.1: +94 -36
lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored)
Sync with HEAD.
Revision 1.9.6.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:39 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.6.4: +117 -38
lines
Diff to previous 1.9.6.4 (colored) to branchpoint 1.9 (colored)
sync with head.
Revision 1.71 / (download) - annotate - [select for diffs], Wed Aug 11 12:04:49 2010 UTC (21 months, 2 weeks ago) by pgoyette
Branch: MAIN
CVS Tags: uebayasi-xip-base2
Changes since 1.70: +3 -3
lines
Diff to previous 1.70 (colored)
Keep condvar wmesg within 8 char limit
Revision 1.60.2.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:53 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.60.2.1: +70 -20
lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored)
sync with head
Revision 1.70 / (download) - annotate - [select for diffs], Sat Jun 26 07:23:57 2010 UTC (23 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10
Changes since 1.69: +70 -20
lines
Diff to previous 1.69 (colored)
1. Add an allocator for 'struct module *' and use it instead of local allocations. 2. Add a new member mod_flags to the 'struct module *' and define MODFLG_MUST_FORCE. If this flag is set and the entry is on the list of builtins, it means that the module has been explicitly unloaded and any re-loads will require the MODCTL_LOAD_FORCE flag. Provide a module_require_force() method to set this flag; once set, it should never be unset. 3. Rename original module_init2() to module_start_unload_thread() to be more descriptive of what it does. 4. Add a new module_builtin_require_force() routine that sets the MODFLG_MUST_FORCE flag for any module that has not yet successfully been initialized. Call it after module_init_class(MODULE_CLASS_ANY) to disable remaining built-in modules. This makes built-in versions of the xxxVERBOSE modules work once more, resolving breakage reported by jruoho@ and njoly@. Discussed on tech-kern, and comments and suggestions implemented. No additional discussion for last week. Tested only on amd64 systems, but there's nothing here that should be port- or architecture-specific (no more specific than existing module implementation) so others should not break.
Revision 1.60.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:57 2010 UTC (23 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.60: +53 -24
lines
Diff to previous 1.60 (colored)
sync with head
Revision 1.69 / (download) - annotate - [select for diffs], Wed May 26 23:53:21 2010 UTC (2 years ago) by pooka
Branch: MAIN
Changes since 1.68: +14 -7
lines
Diff to previous 1.68 (colored)
Feed dust to a few linkset uses and explicitly call the constructor.
Revision 1.68 / (download) - annotate - [select for diffs], Mon May 24 16:37:17 2010 UTC (2 years ago) by pgoyette
Branch: MAIN
Changes since 1.67: +4 -2
lines
Diff to previous 1.67 (colored)
Move definition of module_load_vfs_vec from kern_module_vfs.c to kern_module.c - keeps rump happy. Thanks, pooka!
Revision 1.67 / (download) - annotate - [select for diffs], Mon May 24 15:34:48 2010 UTC (2 years ago) by pgoyette
Branch: MAIN
Changes since 1.66: +4 -25
lines
Diff to previous 1.66 (colored)
Clean up kern_module.c rev 1.66, thanks to pooka@ for review & suggestions
Revision 1.66 / (download) - annotate - [select for diffs], Mon May 24 03:50:25 2010 UTC (2 years ago) by pgoyette
Branch: MAIN
Changes since 1.65: +19 -6
lines
Diff to previous 1.65 (colored)
Protect against attempting to load modules from the filesystem until we have mounted the root file-system. This allows us to load built-in and boot-loader-provided modules much earlier during startup.
Revision 1.65 / (download) - annotate - [select for diffs], Sun May 2 11:01:03 2010 UTC (2 years ago) by pooka
Branch: MAIN
Changes since 1.64: +11 -4
lines
Diff to previous 1.64 (colored)
If a builtin dependency is missing, error instead of panic. As pointed out by martin, configurations like builtin nfsserver can be succesfully linked without including all dependencies (specifically, nfs). Until all such weirdosities are fixed, opt for at least a semifunctional system.
Revision 1.57.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:09 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.57: +247 -61
lines
Diff to previous 1.57 (colored)
Sync with HEAD.
Revision 1.64 / (download) - annotate - [select for diffs], Mon Apr 19 11:20:56 2010 UTC (2 years, 1 month ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.63: +4 -4
lines
Diff to previous 1.63 (colored)
Use CTLTYPE_BOOL.
Revision 1.63 / (download) - annotate - [select for diffs], Fri Apr 16 11:51:23 2010 UTC (2 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.62: +20 -3
lines
Diff to previous 1.62 (colored)
Don't loop eternal if init of a builtin module fails.
Revision 1.62 / (download) - annotate - [select for diffs], Thu Mar 18 18:25:45 2010 UTC (2 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.61: +6 -4
lines
Diff to previous 1.61 (colored)
Print builtin "use -f" message only if not autoloading. Otherwise it'll get spammy. XXX: this should probably be printed iff the toplevel module is not being autoloaded (i.e. there is a human to interpret the error). Otherwise disabled dependencies give a misleading EPERM.
Revision 1.61 / (download) - annotate - [select for diffs], Thu Mar 18 17:33:18 2010 UTC (2 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.60: +4 -2
lines
Diff to previous 1.60 (colored)
Never autounload builtin modules (they will never be autoloaded if disabled).
Revision 1.9.6.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:17 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.6.3: +306 -219
lines
Diff to previous 1.9.6.3 (colored) to branchpoint 1.9 (colored)
sync with head
Revision 1.60 / (download) - annotate - [select for diffs], Fri Mar 5 20:10:05 2010 UTC (2 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.59: +5 -2
lines
Diff to previous 1.59 (colored)
Make module_{lookup,enqueue}() static now that it's possible again
(effectively reverts my kern_module rev. 1.53 from some months ago)
Revision 1.59 / (download) - annotate - [select for diffs], Fri Mar 5 18:35:01 2010 UTC (2 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.58: +223 -62
lines
Diff to previous 1.58 (colored)
Move builtin modules to a list in init and load them from there instead of using linksets directly. This has two implications: 1) It is now possible to "unload" a builtin module provided it is not busy. This is useful e.g. to disable a kernel feature as an immediate workaround to a security problem. To re-initialize the module, modload -f <name> is required. 2) It is possible to use builtin modules which were linked at runtime with an external linker (dlopen + rump).
Revision 1.58 / (download) - annotate - [select for diffs], Wed Mar 3 17:58:36 2010 UTC (2 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.57: +5 -4
lines
Diff to previous 1.57 (colored)
Replace unsafe use of TAILQ_FOREACH: as the comment says, the structures are pulled off the list in the loop and it's anyone's guess where they go after that.
Revision 1.57 / (download) - annotate - [select for diffs], Tue Jan 19 15:23:14 2010 UTC (2 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.56: +3 -6
lines
Diff to previous 1.56 (colored)
Update comment: unloaded modules which were pumped up by the bootloader are not freed at the end of bootstrap (there should be none, although this is not asserted. maybe it should be?).
Revision 1.56 / (download) - annotate - [select for diffs], Fri Jan 1 03:22:13 2010 UTC (2 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.55: +3 -3
lines
Diff to previous 1.55 (colored)
typo in comment
Revision 1.55 / (download) - annotate - [select for diffs], Tue Dec 29 17:49:21 2009 UTC (2 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.54: +21 -21
lines
Diff to previous 1.54 (colored)
Move the listener plugging to module_init(), as it runs after kauth_init() now. (Leaving only the module kthread creation in module_init2().)
Revision 1.54 / (download) - annotate - [select for diffs], Wed Nov 18 17:40:45 2009 UTC (2 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.53: +36 -154
lines
Diff to previous 1.53 (colored)
* make it possible to include kern_module in a kernel without vfs support, i.e. move vfs functionality to a separate module (kern_module_vfs.c) * make module proplist size an MI constant (now 8k) instead of PAGE_SIZE * change some error values to something else than the karmic EINVAL
Revision 1.53 / (download) - annotate - [select for diffs], Thu Nov 5 14:09:14 2009 UTC (2 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.52: +5 -4
lines
Diff to previous 1.52 (colored)
expose module_{lookup,enqueue}()
Revision 1.52 / (download) - annotate - [select for diffs], Fri Oct 16 00:27:07 2009 UTC (2 years, 7 months ago) by jnemeth
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.51: +6 -2
lines
Diff to previous 1.51 (colored)
allow passing a NULL proplib dictionary to modctl(MODCTL_LOAD, ...)
Revision 1.51 / (download) - annotate - [select for diffs], Sat Oct 3 00:06:37 2009 UTC (2 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.50: +24 -2
lines
Diff to previous 1.50 (colored)
Put module loading policy back in the subsystem. Revisit: consider moving kauth_init() above module_init() in main().
Revision 1.50 / (download) - annotate - [select for diffs], Fri Oct 2 18:50:14 2009 UTC (2 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.49: +19 -3
lines
Diff to previous 1.49 (colored)
First part of secmodel cleanup and other misc. changes:
- Separate the suser part of the bsd44 secmodel into its own secmodel
and directory, pending even more cleanups. For revision history
purposes, the original location of the files was
src/sys/secmodel/bsd44/secmodel_bsd44_suser.c
src/sys/secmodel/bsd44/suser.h
- Add a man-page for secmodel_suser(9) and update the one for
secmodel_bsd44(9).
- Add a "secmodel" module class and use it. Userland program and
documentation updated.
- Manage secmodel count (nsecmodels) through the module framework.
This eliminates the need for secmodel_{,de}register() calls in
secmodel code.
- Prepare for secmodel modularization by adding relevant module bits.
The secmodels don't allow auto unload. The bsd44 secmodel depends
on the suser and securelevel secmodels. The overlay secmodel depends
on the bsd44 secmodel. As the module class is only cosmetic, and to
prevent ambiguity, the bsd44 and overlay secmodels are prefixed with
"secmodel_".
- Adapt the overlay secmodel to recent changes (mainly vnode scope).
- Stop using link-sets for the sysctl node(s) creation.
- Keep sysctl variables under nodes of their relevant secmodels. In
other words, don't create duplicates for the suser/securelevel
secmodels under the bsd44 secmodel, as the latter is merely used
for "grouping".
- For the suser and securelevel secmodels, "advertise presence" in
relevant sysctl nodes (sysctl.security.models.{suser,securelevel}).
- Get rid of the LKM preprocessor stuff.
- As secmodels are now modules, there's no need for an explicit call
to secmodel_start(); it's handled by the module framework. That
said, the module framework was adjusted to properly load secmodels
early during system startup.
- Adapt rump to changes: Instead of using empty stubs for securelevel,
simply use the suser secmodel. Also replace secmodel_start() with a
call to secmodel_suser_start().
- 5.99.20.
Testing was done on i386 ("release" build). Spearated module_init()
changes were tested on sparc and sparc64 as well by martin@ (thanks!).
Mailing list reference:
http://mail-index.netbsd.org/tech-kern/2009/09/25/msg006135.html
Revision 1.41.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:34 2009 UTC (2 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.41.2.1: +191 -9
lines
Diff to previous 1.41.2.1 (colored) next main 1.42 (colored)
Sync with HEAD.
Revision 1.9.6.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:31 2009 UTC (2 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.6.2: +191 -9
lines
Diff to previous 1.9.6.2 (colored) to branchpoint 1.9 (colored)
sync with head
Revision 1.49 / (download) - annotate - [select for diffs], Wed Jun 17 21:04:25 2009 UTC (2 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
jymxensuspend-base
Changes since 1.48: +7 -7
lines
Diff to previous 1.48 (colored)
Make kobj_stat() return ENOSYS instead of panicking ("not modular")
on non-MODULAR kernels. Make a few kobj_stat() callers check for
a non-zero return code and deal gracefully.
Revision 1.48 / (download) - annotate - [select for diffs], Tue Jun 9 20:35:02 2009 UTC (2 years, 11 months ago) by jnemeth
Branch: MAIN
Changes since 1.47: +4 -3
lines
Diff to previous 1.47 (colored)
Add the MODCTL_NO_PROP flag to tell the kernel to ignore <module>.prop. Add the '-P' option to modload(8) to set this flag.
Revision 1.47 / (download) - annotate - [select for diffs], Tue Jun 9 19:09:03 2009 UTC (2 years, 11 months ago) by jnemeth
Branch: MAIN
Changes since 1.46: +42 -3
lines
Diff to previous 1.46 (colored)
Add code to merge the modload "command line" with <module>.prop.
Revision 1.46 / (download) - annotate - [select for diffs], Sun Jun 7 09:47:31 2009 UTC (2 years, 11 months ago) by jnemeth
Branch: MAIN
Changes since 1.45: +121 -5
lines
Diff to previous 1.45 (colored)
Read in a <module>.prop file if it exists and internalize then pass it to the <module> being loaded. XXX A <module>.prop file will override anything on the "command line". This will be fixed in the next commit.
Revision 1.45 / (download) - annotate - [select for diffs], Tue May 26 08:34:23 2009 UTC (3 years ago) by jnemeth
Branch: MAIN
Changes since 1.44: +7 -5
lines
Diff to previous 1.44 (colored)
Move all namei flags handling into kobj_load_file(). When I originally wrote this, I was going for maximum flexibility. However, after a private discussion with dholland@, I see how this will cause problems with the future world order of namei whenever that might be. At the moment, I don't need the extra flexibility, but if something comes up this may have to be revisited.
Revision 1.44 / (download) - annotate - [select for diffs], Mon May 25 22:33:00 2009 UTC (3 years ago) by jnemeth
Branch: MAIN
Changes since 1.43: +21 -5
lines
Diff to previous 1.43 (colored)
Phase 0.5 of my options MODULAR enhancements. As suggested by ad@, these commits move all path handling into module_do_load() from kobj_load_file(). This way the final path used to load a module is available for loading <module>.plist, which will store parameters for a module. The end goal of this project is good support for MODULAR device drivers.
Revision 1.43 / (download) - annotate - [select for diffs], Sun May 24 14:54:17 2009 UTC (3 years ago) by ad
Branch: MAIN
Changes since 1.42: +11 -3
lines
Diff to previous 1.42 (colored)
ddb: don't try to stat builtin modules.
Revision 1.41.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:56 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.41: +3 -2
lines
Diff to previous 1.41 (colored)
Sync with HEAD. Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.9.6.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:46 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.6.1: +430 -103
lines
Diff to previous 1.9.6.1 (colored) to branchpoint 1.9 (colored)
sync with head.
Revision 1.24.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:56 2009 UTC (3 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.24.2.1: +7 -4
lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)
Sync with HEAD.
Revision 1.42 / (download) - annotate - [select for diffs], Fri Feb 13 22:41:04 2009 UTC (3 years, 3 months ago) by apb
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
jym-xensuspend-base
Changes since 1.41: +3 -2
lines
Diff to previous 1.41 (colored)
Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h" in all kernel sources that use the MODULAR option. Proposed in tech-kern on 18 Jan 2009.
Revision 1.24.4.1 / (download) - annotate - [select for diffs], Mon Feb 2 22:15:15 2009 UTC (3 years, 3 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b
Changes since 1.24: +5 -2
lines
Diff to previous 1.24 (colored)
Apply patch (requested by ad in ticket #403): Disable module autoload in 5.0. It's not well enough tested with this version of the code.
Revision 1.41 / (download) - annotate - [select for diffs], Sat Jan 24 22:14:45 2009 UTC (3 years, 4 months ago) by rmind
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.40: +4 -4
lines
Diff to previous 1.40 (colored)
Revert path of modules back to "/stand".
Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 24 00:29:12 2009 UTC (3 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.39: +4 -4
lines
Diff to previous 1.39 (colored)
Change path to kernel modules from "/stand" to "/kernel". Needs to go in before 5.0. Proposed on <tech-kern>.
Revision 1.39 / (download) - annotate - [select for diffs], Tue Jan 20 20:12:41 2009 UTC (3 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.38: +6 -4
lines
Diff to previous 1.38 (colored)
add __gcc__ __format__ __string__ __attributes__ to catch mistakes early
Revision 1.24.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:38 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.24: +328 -45
lines
Diff to previous 1.24 (colored)
Sync with HEAD.
Revision 1.8.10.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:18 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.8.10.3: +356 -47
lines
Diff to previous 1.8.10.3 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)
Sync with HEAD.
Revision 1.38 / (download) - annotate - [select for diffs], Sun Dec 28 03:21:02 2008 UTC (3 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.37: +6 -3
lines
Diff to previous 1.37 (colored)
- Don't autounload modules loaded during boot. In my case, ffs got unloaded because my cdrom takes too long to initialize. - Consistently print error messages in all error cases.
Revision 1.21.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:08 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.21.4.1: +354 -48
lines
Diff to previous 1.21.4.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)
Update haad-dm branch to haad-dm-base2.
Revision 1.37 / (download) - annotate - [select for diffs], Fri Dec 5 12:55:09 2008 UTC (3 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Changes since 1.36: +6 -9
lines
Diff to previous 1.36 (colored)
Back out revision 1.35 which is no longer necessary and causes the system to try autounloading modules perpetually.
Revision 1.36 / (download) - annotate - [select for diffs], Fri Dec 5 12:51:17 2008 UTC (3 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.35: +4 -3
lines
Diff to previous 1.35 (colored)
PR kern/40110: null, overlay and umap modules loading -> panic (layerfs symbols not there)
Revision 1.35 / (download) - annotate - [select for diffs], Wed Dec 3 15:15:01 2008 UTC (3 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.34: +9 -6
lines
Diff to previous 1.34 (colored)
PR/40097: bouyer@antioche.lip6.fr: MODULAR tries to unload non-module subsystems Don't try to unload built-in modules, and if a module is busy don't retry immediately.
Revision 1.34 / (download) - annotate - [select for diffs], Wed Dec 3 12:14:11 2008 UTC (3 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.33: +72 -21
lines
Diff to previous 1.33 (colored)
Add a couple of sysctls: kern.module.autoload = 1 kern.module.verbose = 0
Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 3 11:23:15 2008 UTC (3 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.32: +8 -6
lines
Diff to previous 1.32 (colored)
Correct error messages added in revision 1.32. In part from drochner@.
Revision 1.32 / (download) - annotate - [select for diffs], Thu Nov 27 21:36:51 2008 UTC (3 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.31: +42 -13
lines
Diff to previous 1.31 (colored)
better error messages, and more messages for DIAGNOSTIC.
Revision 1.31 / (download) - annotate - [select for diffs], Tue Nov 25 15:15:28 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.30: +3 -3
lines
Diff to previous 1.30 (colored)
Print the size as decimal.
Revision 1.30 / (download) - annotate - [select for diffs], Tue Nov 25 15:14:07 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.29: +67 -2
lines
Diff to previous 1.29 (colored)
Add some basic DDB stuff for modules.
Revision 1.29 / (download) - annotate - [select for diffs], Wed Nov 19 13:07:42 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.28: +8 -2
lines
Diff to previous 1.28 (colored)
module_autoload: disallow path seperators and magic symlinks.
Revision 1.28 / (download) - annotate - [select for diffs], Tue Nov 18 11:56:09 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.27: +15 -3
lines
Diff to previous 1.27 (colored)
Some modules may want to avoid autounload because their use is transient. Their FINI routine may legitimately succeed even though the module is likely to be used soon again, for example: exec_script. Add a MODULE_CMD_AUTOUNLOAD to query whether a module wants to avoid autounload.
Revision 1.27 / (download) - annotate - [select for diffs], Tue Nov 18 11:39:41 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.26: +60 -28
lines
Diff to previous 1.26 (colored)
- Put modules that depend on others at the head of the queue so autounload can unload requisite modules with only one pass. - If loading a requisite module, scan the global queue before checking the file system to see if it exists. If it's already present we don't care.
Revision 1.26 / (download) - annotate - [select for diffs], Fri Nov 14 23:06:45 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.25: +85 -3
lines
Diff to previous 1.25 (colored)
- If the system encounters a severe memory shortage, start unloading unused kernel modules. - Try to unload any autoloaded kernel modules 10 seconds after their load was successful. - Keep a counter to track module load/unload events.
Revision 1.25 / (download) - annotate - [select for diffs], Wed Nov 12 12:36:16 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.24: +10 -10
lines
Diff to previous 1.24 (colored)
Remove LKMs and switch to the module framework, pass 1. Proposed on tech-kern@.
Revision 1.24 / (download) - annotate - [select for diffs], Wed Oct 22 11:19:15 2008 UTC (3 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: netbsd-5-base,
netbsd-5-0-RC1,
matt-mips64-base2
Branch point for: nick-hppapmap,
netbsd-5
Changes since 1.23: +8 -4
lines
Diff to previous 1.23 (colored)
Make MODCTL_LOAD_FORCE do something.
Revision 1.23 / (download) - annotate - [select for diffs], Wed Oct 22 11:16:29 2008 UTC (3 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.22: +26 -4
lines
Diff to previous 1.22 (colored)
- Be clear about whether module load is explicit or system initiated (auto). - Require that module_lock is held to autoload, so that any preconditions can be safely checked.
Revision 1.21.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:27 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.21: +3 -3
lines
Diff to previous 1.21 (colored)
Sync with HEAD.
Revision 1.8.10.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:52 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.8.10.2: +1 -1
lines
Diff to previous 1.8.10.2 (colored) to branchpoint 1.8 (colored)
Sync with HEAD.
Revision 1.14.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:42 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.14.2.1: +3 -3
lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)
Sync with wrstuden-revivesa-base-2.
Revision 1.22 / (download) - annotate - [select for diffs], Fri Aug 1 14:05:15 2008 UTC (3 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
haad-dm-base1
Changes since 1.21: +3 -3
lines
Diff to previous 1.21 (colored)
expose module_compatible()
Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:50 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.14: +81 -66
lines
Diff to previous 1.14 (colored)
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.9.4.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.9.4.1: +81 -66
lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)
sync with head
Revision 1.8.10.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:08 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.8.10.1: +164 -86
lines
Diff to previous 1.8.10.1 (colored) to branchpoint 1.8 (colored)
Sync with HEAD.
Revision 1.21 / (download) - annotate - [select for diffs], Sat May 31 20:14:38 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4,
yamt-pf42-base3,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl
Branch point for: haad-dm
Changes since 1.20: +20 -7
lines
Diff to previous 1.20 (colored)
- Put in place module compatibility check against __NetBSD_Version__, as discussed on tech-kern. - Remove unused module_jettison().
Revision 1.20 / (download) - annotate - [select for diffs], Tue May 20 19:20:38 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.19: +12 -9
lines
Diff to previous 1.19 (colored)
If autoloading a module, don't consider the current working directory.
Revision 1.19 / (download) - annotate - [select for diffs], Tue May 20 19:16:07 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.18: +2 -6
lines
Diff to previous 1.18 (colored)
Remove stale comment.
Revision 1.18 / (download) - annotate - [select for diffs], Tue May 20 17:24:56 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.17: +35 -10
lines
Diff to previous 1.17 (colored)
Allow module class to be passed to module_load(), as a basic sanity check that we are loading the right kind of module.
Revision 1.17 / (download) - annotate - [select for diffs], Tue May 20 16:04:08 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.16: +6 -6
lines
Diff to previous 1.16 (colored)
Take $MACHINE into account when looking for modules.
Revision 1.16 / (download) - annotate - [select for diffs], Tue May 20 14:11:55 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.15: +13 -3
lines
Diff to previous 1.15 (colored)
PR kern/38694 module dependencies do not work as expected Autoload modules from the correct path based on kernel version.
Revision 1.15 / (download) - annotate - [select for diffs], Tue May 20 13:34:44 2008 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: hpcarm-cleanup-nbase
Changes since 1.14: +14 -46
lines
Diff to previous 1.14 (colored)
- Do local relocs before loading requisite modules, and all others only after requisite modules have been loaded. For PR kern/38697. - Simplify kobj interface slightly to make error handling easier.
Revision 1.9.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:08 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.9: +96 -33
lines
Diff to previous 1.9 (colored)
sync with head.
Revision 1.9.6.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:25 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9: +96 -33
lines
Diff to previous 1.9 (colored)
sync with head.
Revision 1.14 / (download) - annotate - [select for diffs], Sun May 4 21:35:12 2008 UTC (4 years ago) by rumble
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Changes since 1.13: +6 -4
lines
Diff to previous 1.13 (colored)
Fix an error path that previously panicked when module_fetch_info failed.
Revision 1.13 / (download) - annotate - [select for diffs], Fri May 2 12:59:34 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.12: +5 -3
lines
Diff to previous 1.12 (colored)
Re-do yesterday's build fix to hook in the MD stuff if available.
Revision 1.12 / (download) - annotate - [select for diffs], Thu May 1 17:23:16 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.11: +30 -2
lines
Diff to previous 1.11 (colored)
- Add module_find_section(), allows a module to look up data in its object. - Work around build failure.
Revision 1.11 / (download) - annotate - [select for diffs], Thu May 1 14:44:48 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.10: +62 -24
lines
Diff to previous 1.10 (colored)
Get the pre-loaded module code working.
Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:03 2008 UTC (4 years ago) by martin
Branch: MAIN
Changes since 1.9: +2 -9
lines
Diff to previous 1.9 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.8.10.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:01 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.8: +13 -11
lines
Diff to previous 1.8 (colored)
Sync with HEAD.
Revision 1.8.6.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:13 2008 UTC (4 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.8: +13 -11
lines
Diff to previous 1.8 (colored) next main 1.9 (colored)
sync with head.
Revision 1.9.2.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:59 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.9.2.1: +667 -0
lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)
sync with HEAD
Revision 1.8.2.3 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:33 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.8.2.2: +13 -11
lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)
sync with head.
Revision 1.9.2.1, Sun Mar 2 11:18:43 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.9: +0 -667
lines
FILE REMOVED
file kern_module.c was added on branch matt-armv6 on 2008-03-23 02:04:59 +0000
Revision 1.9 / (download) - annotate - [select for diffs], Sun Mar 2 11:18:43 2008 UTC (4 years, 2 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
ad-socklock-base1
Branch point for: yamt-pf42,
yamt-nfs-mp,
matt-armv6
Changes since 1.8: +13 -11
lines
Diff to previous 1.8 (colored)
Add support for load-time parameters for modules, which are passed through a dictionary. As discussed in tech-kern@.
Revision 1.8.4.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:46 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.8.4.1: +665 -0
lines
Diff to previous 1.8.4.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)
Sync with HEAD.
Revision 1.8.2.2 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:07 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.8.2.1: +665 -0
lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored)
sync with head
Revision 1.7.2.3 / (download) - annotate - [select for diffs], Sun Jan 20 17:51:43 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.7.2.2: +4 -3
lines
Diff to previous 1.7.2.2 (colored) next main 1.8 (colored)
Sync with HEAD
Revision 1.8.4.1, Sat Jan 19 18:20:39 2008 UTC (4 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.8: +0 -665
lines
FILE REMOVED
file kern_module.c was added on branch mjf-devfs on 2008-02-18 21:06:46 +0000
Revision 1.8.2.1, Sat Jan 19 18:20:39 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.8: +0 -665
lines
FILE REMOVED
file kern_module.c was added on branch yamt-lazymbuf on 2008-01-21 09:46:07 +0000
Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 19 18:20:39 2008 UTC (4 years, 4 months ago) by rumble
Branch: MAIN
CVS Tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Branch point for: yamt-lazymbuf,
mjf-devfs2,
mjf-devfs,
keiichi-mipv6
Changes since 1.7: +6 -5
lines
Diff to previous 1.7 (colored)
Ensure that if kobj_load fails we do not call kobj_close followed by kobj_unload, as an unloaded kobj will already have been freed by an implicit kobj_unload call in kobj_close. This fixes random panics when a module fails to load.
Revision 1.7.2.2 / (download) - annotate - [select for diffs], Sat Jan 19 12:15:21 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.7.2.1: +664 -0
lines
Diff to previous 1.7.2.1 (colored)
Sync with HEAD
Revision 1.7.2.1, Sat Jan 19 00:57:35 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.7: +0 -664
lines
FILE REMOVED
file kern_module.c was added on branch bouyer-xeni386 on 2008-01-19 12:15:21 +0000
Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 19 00:57:35 2008 UTC (4 years, 4 months ago) by rumble
Branch: MAIN
Branch point for: bouyer-xeni386
Changes since 1.6: +18 -5
lines
Diff to previous 1.6 (colored)
Ensure that circular dependencies do not panic the machine by doubly locking the same file. Remove the special self-dependant case previously introduced, as the general case handles it properly.
Revision 1.6 / (download) - annotate - [select for diffs], Fri Jan 18 16:41:46 2008 UTC (4 years, 4 months ago) by rumble
Branch: MAIN
Changes since 1.5: +9 -2
lines
Diff to previous 1.5 (colored)
Deal with braindead modules that depend on themselves, rather than inducing an ambiguous panic later on.
Revision 1.5 / (download) - annotate - [select for diffs], Fri Jan 18 14:29:44 2008 UTC (4 years, 4 months ago) by rumble
Branch: MAIN
Changes since 1.4: +4 -3
lines
Diff to previous 1.4 (colored)
Avoid NULL pointer deref.
Revision 1.4 / (download) - annotate - [select for diffs], Fri Jan 18 01:41:55 2008 UTC (4 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.3: +3 -3
lines
Diff to previous 1.3 (colored)
Fix tyop in a KASSERT: s/mod_required/mod->mod_required/
Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 17 22:35:53 2008 UTC (4 years, 4 months ago) by rumble
Branch: MAIN
Changes since 1.2: +24 -6
lines
Diff to previous 1.2 (colored)
Fix a panic that occurs when a dependency had already been loaded and a dependant module is loaded by setting modp when returning ENOENT. Also, be stricter with regards to MAXMODNAME.
Revision 1.2 / (download) - annotate - [select for diffs], Wed Jan 16 18:28:32 2008 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.1: +11 -3
lines
Diff to previous 1.1 (colored)
- Include lkm_map if !LKM. XXX - Add a comment about dependencies.
Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 16 12:34:52 2008 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Pull in my modules code for review/test/hacking.