From owner-freebsd-bugs@FreeBSD.ORG Fri Dec 7 14:50:01 2012 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8B4ED81F for ; Fri, 7 Dec 2012 14:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6C2BE8FC08 for ; Fri, 7 Dec 2012 14:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qB7Eo0Vo031301 for ; Fri, 7 Dec 2012 14:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qB7Eo0no031297; Fri, 7 Dec 2012 14:50:00 GMT (envelope-from gnats) Date: Fri, 7 Dec 2012 14:50:00 GMT Message-Id: <201212071450.qB7Eo0no031297@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Lutz Donnerhacke Subject: Re: kern/174236: "kldunload ipdivert" corrupts kernel X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Lutz Donnerhacke List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2012 14:50:01 -0000 The following reply was made to PR kern/174236; it has been noted by GNATS. From: Lutz Donnerhacke To: bug-followup@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.