From nobody@FreeBSD.org  Wed May 22 11:51:29 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 8696D6FB
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 May 2013 11:51:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 793E2256
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 May 2013 11:51:29 +0000 (UTC)
Received: from oldred.FreeBSD.org ([127.0.1.6])
	by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4MBpTsV090009
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 May 2013 11:51:29 GMT
	(envelope-from nobody@oldred.FreeBSD.org)
Received: (from nobody@localhost)
	by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4MBpTTf090008;
	Wed, 22 May 2013 11:51:29 GMT
	(envelope-from nobody)
Message-Id: <201305221151.r4MBpTTf090008@oldred.FreeBSD.org>
Date: Wed, 22 May 2013 11:51:29 GMT
From: Ali Alizadeh <comnetboy@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kldload alq then kldunload alq then init 0 makes panic!
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         178830
>Category:       kern
>Synopsis:       [alq] [panic] kldload alq then kldunload alq then init 0 makes panic!
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 22 12:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri May 24 13:30:51 UTC 2013
>Originator:     Ali Alizadeh
>Release:        FreeBSD 9.0-RELEASE
>Organization:
PFG Co.
>Environment:
FreeBSD FBSD-SRC 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
if you load alq module
#kldload alq
after that
#kldunload alq
and after that shutdown the system
#init 0 or shutdown -p now or ...
the system will panic!
we have a module which uses alq api's.
  MODULE_DEPEND(mymodule, alq, 1, 1, 1)
so when we start mymodule, after that stop it and after that shutdown
system, we get panic. from that we found this problem.
>How-To-Repeat:
just type:
#kldload alq
after that
#kldunload alq
and after that shutdown the system
#init 0 or shutdown -p now or ...
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
