NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/50357: Erroneous attempt to load booted file-system's module



The following reply was made to PR install/50357; it has been noted by GNATS.

From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: install/50357: Erroneous attempt to load booted file-system's
 module
Date: Fri, 10 Jun 2016 10:29:26 +0800 (PHT)

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.
 
 --0-538362010-1465525766=:25798
 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
 
 The attached patch checks the list of built-in modules for duplicates of 
 any module names pushed in from the boot-loader.  In the case of a 
 duplicate module name, we simply return an error status (no message is 
 logged unless you have previously set the module_verbose_on variable to 
 non-zero).  This avoids any attempt to resolve symbols from the module.
 
 While here, I'm also modifying another error message to differentiate 
 between failure-to-load and failure-to-get-module-info.
 
 I'll give folks a week or so to comment on the patch before I commit it.
 
 
 +------------------+--------------------------+------------------------+
 | Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
 | (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
 | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
 +------------------+--------------------------+------------------------+
 --0-538362010-1465525766=:25798
 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=km.diff
 Content-Transfer-Encoding: BASE64
 Content-ID: <Pine.NEB.4.64.1606101029260.25798%pokey.whooppee.com@localhost>
 Content-Description: 
 Content-Disposition: attachment; filename=km.diff
 
 SW5kZXg6IGtlcm5fbW9kdWxlLmMNCj09PT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0N
 ClJDUyBmaWxlOiAvY3Zzcm9vdC9zcmMvc3lzL2tlcm4va2Vybl9tb2R1bGUu
 Yyx2DQpyZXRyaWV2aW5nIHJldmlzaW9uID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