Module Name: src Committed By: snj Date: Thu Dec 21 21:37:03 UTC 2017
Modified Files: src/sys/kern [netbsd-8]: kern_module.c Log Message: Pull up following revision(s) (requested by pgoyette in ticket #449): sys/kern/kern_module.c: 1.126-1.130 Add additional duplicate-module-name check in case we have two modules with the same internal name but no conflicting symbol definitions. When we load a module from the file system, the filename may have no relationship to the internal module's name. Furthermore, comparing the module's filename is insufficient if the file is loaded from an absolute path. -- Use KASSERT to ensure that the newly-added module's name can be found. -- Change a KASSERTMSG into a regular module_error - not nice for the kernel to panic when I try to modload the 'ntfs' module. -- When looking for a duplicate module name, also check the pending list. -- Remove the check for duplicate-module-name-on-pending-list since it really doesn't help. The check really cannot fail, and it only looks at the list belonging to the current level of recursion. Instead, verify that the module's modcmd(MODULE_CMD_INIT, ...) does not introduce a duplicate module name as a result of recursively calling module_do_load(). To generate a diff of this commit: cvs rdiff -u -r1.125 -r1.125.2.1 src/sys/kern/kern_module.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.