kern/174236: "kldunload ipdivert" corrupts kernel

Lutz Donnerhacke lutz at donnerhacke.de
Fri Dec 7 14:50:01 UTC 2012


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

From: Lutz Donnerhacke <lutz at donnerhacke.de>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: kern/174236: "kldunload ipdivert" corrupts kernel
Date: Fri, 7 Dec 2012 15:45:00 +0100

 Any module which returns an error on unload will cause the problem.
 It's not specific to ipdivert.ko or ipfw.ko or anything else.
 
 Relevant code section is:
 
 static int
 div_modevent(module_t mod, int type, void *unused)
 {
         int err = 0;
         switch (type) {
 	[...]
         case MOD_QUIESCE:
 		err = EPERM;
 		break;
 	[...]
 	}
         return err;
 }
 
 Please note: Forced unload of ipdivert.ko works fine.
     


More information about the freebsd-bugs mailing list