From nobody@FreeBSD.org  Thu Mar  3 22:47:28 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3E29216A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Mar 2005 22:47:28 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1941E43D54
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Mar 2005 22:47:28 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j23MlRUr063372
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 3 Mar 2005 22:47:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j23MlRZa063371;
	Thu, 3 Mar 2005 22:47:27 GMT
	(envelope-from nobody)
Message-Id: <200503032247.j23MlRZa063371@www.freebsd.org>
Date: Thu, 3 Mar 2005 22:47:27 GMT
From: Adam Jette <jettea46@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dhclient on ndis0 causes kernel panic
X-Send-Pr-Version: www-2.3

>Number:         78382
>Category:       kern
>Synopsis:       [ndis] dhclient on ndis0 causes kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    linimon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 03 22:50:05 GMT 2005
>Closed-Date:    Sun Jan 27 08:37:56 UTC 2008
>Last-Modified:  Sun Jan 27 08:37:56 UTC 2008
>Originator:     Adam Jette
>Release:        5.3
>Organization:
>Environment:
FreeBSD fiveThree 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Thu Mar 3 11:09:00 EST 2005 localuser@fiveThree:/usr/obj/usr/src/sys/GENERIC i386
>Description:
I can replicate this problem repeatedly by using dhclient on ndis0. I assume that other actions could cause a kernel panic as well, besides dhclient. After loading the drivers and bringing up the interface on an ssid, running dhclient causes the kernel to panic. I am running the GENERIC (as above) kernel with no modifications to sysctl's besides debug.bootverbose=1. Amongst other things the kernel provides me right after I type in "dhclient ndis0" before it chokes are

ndis0: link up
Fatal trap 12: page fault while in kernel mode
current process = 504 (ndis swi)

And obviously a lot of other things, which I can provide amongst other information if needed.
>How-To-Repeat:
Install Linksys WIreless - G PCI adapter (model number WMP54G) hardware.
Copy over drivers on CD. There are two sets, the only ones that enable ndis0 to work at all are the RT2500.SYS and RT2500.INF files. These can be provided if need be as well. Put drivers in /usr/src/sys/modules/ndis.
cd /usr/src/sys/modules/ndis
ndiscvt -i RT2500.INF -s RT2500.SYS -o ndis_driver_data.h
make
make install
kldload ndis
kldload if_ndis

Message comes up and says that everything is good.

ifconfig ndis0 up
ifconfig ndis0 nwid linksys (thank you neighbor!)
dhclient ndis0
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: brooks 
State-Changed-When: Sun Apr 3 01:09:13 GMT 2005 
State-Changed-Why:  
Does this problem occur with a more recent version of FreeBSD? 

A number of fixes have been committed recently that are reported to 
solve some panics. 


Responsible-Changed-From-To: freebsd-bugs->wpaul 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Sun Apr 3 01:09:13 GMT 2005 
Responsible-Changed-Why:  
Bill Paul owns the ndisulator. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78382 
State-Changed-From-To: feedback->open 
State-Changed-By: brooks 
State-Changed-When: Wed Apr 13 23:47:35 GMT 2005 
State-Changed-Why:  
Feedback recieved.  Problem still exists under recent current. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78382 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Tue Jul 31 07:34:28 UTC 2007 
State-Changed-Why:  
To submitter: does this problem still recur on recent versions of FreeBSD? 


Responsible-Changed-From-To: wpaul->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Jul 31 07:34:28 UTC 2007 
Responsible-Changed-Why:  
Reassign from inactive committer. 

Hat:		bugmeister 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78382 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Jan 27 08:37:30 UTC 2008 
State-Changed-Why:  
Feedback timeout (> 6 months). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78382 
>Unformatted:
