From nobody@FreeBSD.org  Thu Oct  7 13:53:02 2004
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 9352516A51A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Oct 2004 13:53:02 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8666E43D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Oct 2004 13:53:02 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i97Dr1Ho058899
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 7 Oct 2004 13:53:01 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i97Dr11Q058897;
	Thu, 7 Oct 2004 13:53:01 GMT
	(envelope-from nobody)
Message-Id: <200410071353.i97Dr11Q058897@www.freebsd.org>
Date: Thu, 7 Oct 2004 13:53:01 GMT
From: Thiemo Nordenholz <nz@thiemo.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Loading if_ndis for Intel Wireless 2200BG gives panic from kldload on 5.3-BETA6
X-Send-Pr-Version: www-2.3

>Number:         72423
>Category:       kern
>Synopsis:       [if_ndis] Loading if_ndis for Intel Wireless 2200BG gives panic from kldload on 5.3-BETA6
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    wpaul
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 07 14:00:44 GMT 2004
>Closed-Date:    Tue Sep 13 22:52:11 GMT 2005
>Last-Modified:  Tue Sep 13 22:52:11 GMT 2005
>Originator:     Thiemo Nordenholz
>Release:        5.3-BETA6
>Organization:
>Environment:
FreeBSD feynman.ham01.thiemo.net 5.3-BETA6 FreeBSD 5.3-BETA6 #2: Thu Oct  7 14:59:18 CEST 2004 thiemo@feynman.ham01.thiemo.net:/usr/src/sys/i386/compile/FEYNMAN  i386

Hardware is HP Pavilion zt3312ea, affected interface is:
Intel PRO/Wireless 2200BG Network Connection.

Windows driver used for if_ndis is "w22n51.sys" from intel.
The panic was reproducible in single user mode.
>Description:
Trying to use the NDISulator panics the system.
wlan is statically compiled into kernel, ndis module loads fine.
Trying to kldload if_ndis, though, gives a panic:

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x80000002
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0x80000002
stack pointer           = 0x10:0xd5483adc
frame pointer           = 0x10:0xc20842f0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 63 (kldload)

The kernel debugger shows only a "kernload()" call in the stacktrace.

Complete dmesg output can be found at
    http://www.thiemo.net/misc/feynman/dmesg.out
Kernel configuration file can be found at
    http://www.thiemo.net/misc/feynman/kernconf
>How-To-Repeat:
Install NDISulator as documented, using the Windows driver called "w22n51.sys".
Load if_ndis to panic.
>Fix:
Unknown to me.
>Release-Note:
>Audit-Trail:

From: Jacob Rhoden <jacob@rhoden.id.au>
To: freebsd-gnats-submit@FreeBSD.org, nz@thiemo.net
Cc:  
Subject: Re: kern/72423: Loading if_Fndis for Intel Wireless 2200BG gives panic from kldload on 5.3-BETA6
Date: Sun, 17 Oct 2004 15:38:35 +0000

 I am having the same problem using 5.3-STABLE cvsupped on October 17,2004. 
 Even after trying a suggested kernel option (option KSTACK_PAGES=8) as 
 suggested on the freebsd-mobile mailing list:
 
 http://lists.freebsd.org/pipermail/freebsd-mobile/2004-March/003436.html
State-Changed-From-To: open->feedback 
State-Changed-By: brooks 
State-Changed-When: Sun Apr 3 01:07:26 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:07:26 GMT 2005 
Responsible-Changed-Why:  
Bill Paul owns the ndisulator. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72423 

From: Thiemo Nordenholz <nz@thiemo.net>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/72423: Loading if_ndis for Intel Wireless 2200BG gives panic from kldload on 5.3-BETA6
Date: Sun, 3 Jul 2005 16:33:09 +0200

 It works fine with 5.4-RELEASE and a driver called "w22n51.sys", the .INF
 file says it was driver version "08/24/2004,8.1.0.28". No more panics here.
 
 Many thanks & best regards,
   Thiemo
 
 -- 
 Query a PGP key server (e.g. http://www.pgp.net/) for my public key 41068629.
 Strange sender address? Please see http://www.thiemo.net/misc/list-mail.shtml
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Sep 13 22:51:50 GMT 2005 
State-Changed-Why:  
Submitter says the problem is resolved in 5.4. 

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