From nobody@FreeBSD.org  Sun Dec 23 09:29:51 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E55E416A46E
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Dec 2007 09:29:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9CA7213C461
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Dec 2007 09:29:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lBN9TN9l036172
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Dec 2007 09:29:23 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id lBN9TN0n036171;
	Sun, 23 Dec 2007 09:29:23 GMT
	(envelope-from nobody)
Message-Id: <200712230929.lBN9TN0n036171@www.freebsd.org>
Date: Sun, 23 Dec 2007 09:29:23 GMT
From: Novak Urosevic <novak@vigilante.mine.nu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: hostapd restart panics the system
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118967
>Category:       bin
>Synopsis:       hostapd(8): hostapd restart panics the system
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 23 09:30:01 UTC 2007
>Closed-Date:    Tue Dec 30 17:44:42 UTC 2008
>Last-Modified:  Tue Dec 30 17:44:42 UTC 2008
>Originator:     Novak Urosevic
>Release:        6.2/7.0-BETA4/7.0-BETA3
>Organization:
>Environment:
FreeBSD soekris.vigilante.mine.nu 7.0-BETA4 FreeBSD 7.0-BETA4 #0: Sun Dec  2 19:19:04 UTC 2007     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
The system is soekris net4801 with ral wlan adapter.
If i do 'sh /etc/rc.d/hostapd restart' the system panics.

I have had serious issues to mantain the stable connection between AP running FreeBSD 6.2 and various systems (Solaris Express Comunity Edition b77, MS Win XP, FreeBSD 7.0-BETA3). To resolve this i upgraded to 7.0-BETA3 and after to 7.0-BETA4 but the problem is still persistant.

After i upgraded to BETA3 still if i restart hostapd the system panics. Also after i upgraded to 7.0-BETA4 also when i restart the system it panics.

When i upgraded from 6.2 -> 7.0-BETA3 i did it via the make world on another system. Upgrade from 7.0-BETA3 to 7.0-BETA4 was done via sysinstall binary upgrade.

Here is an example:
Dec 22 11:33:24 <kern.crit> soekris kernel: 
Dec 22 11:33:24 <kern.crit> soekris kernel: Fatal trap 12: page fault while in kernel mode
Dec 22 11:33:24 <kern.crit> soekris kernel: fault virtual address       = 0xc1eb00f0
Dec 22 11:33:24 <kern.crit> soekris kernel: fault code          = supervisor read, page not present
Dec 22 11:33:24 <kern.crit> soekris kernel: instruction pointer = 0x20:0xc236e64b
Dec 22 11:33:24 <kern.crit> soekris kernel: stack pointer               = 0x28:0xc773bbfc
Dec 22 11:33:24 <kern.crit> soekris kernel: frame pointer               = 0x28:0xc773bc08
Dec 22 11:33:24 <kern.crit> soekris kernel: code segment                = base 0x0, limit 0xfffff, type 0x1b
Dec 22 11:33:24 <kern.crit> soekris kernel: = DPL 0, pres 1, def32 1, gran 1
Dec 22 11:33:24 <kern.crit> soekris kernel: processor eflags    = interrupt enabled, resume, IOPL = 0
Dec 22 11:33:24 <kern.crit> soekris kernel: current process             = 12 (swi4: clock sio)
Dec 22 11:33:24 <kern.crit> soekris kernel: trap number         = 12
Dec 22 11:33:24 <kern.crit> soekris kernel: panic: page fault
Dec 22 11:33:24 <kern.crit> soekris kernel: Uptime: 4d12h21m9s
Dec 22 11:33:24 <kern.crit> soekris kernel: Physical memory: 119 MB
Dec 22 11:33:24 <kern.crit> soekris kernel: Dumping 47 MB:ata0: FAILURE - oversized DMA transfer attempt 65536 > 64512
Dec 22 11:33:24 <kern.crit> soekris kernel: ad0: setting up DMA failed
Dec 22 11:33:24 <kern.crit> soekris kernel: 
Dec 22 11:33:24 <kern.crit> soekris kernel: ** DUMP FAILED (ERROR 5) **
Dec 22 11:33:24 <kern.crit> soekris kernel: Automatic reboot in 15 seconds - press a 
Dec 22 11:33:24 <kern.err> soekris kernel: stray irq7
Dec 22 11:33:24 <kern.crit> soekris kernel: key on the console to abort
Dec 22 11:33:24 <kern.crit> soekris kernel: Rebooting...

Another one:
Dec 22 15:10:40 <kern.crit> soekris kernel: 
Dec 22 15:10:40 <kern.crit> soekris kernel: Fatal trap 12: page fault while in kernel mode
Dec 22 15:10:40 <kern.crit> soekris kernel: fault virtual address       = 0xc176d018
Dec 22 15:10:40 <kern.crit> soekris kernel: fault code          = supervisor read, page not present
Dec 22 15:10:40 <kern.crit> soekris kernel: instruction pointer = 0x20:0xc069c4bc
Dec 22 15:10:40 <kern.crit> soekris kernel: stack pointer               = 0x28:0xc8253a34
Dec 22 15:10:40 <kern.crit> soekris kernel: frame point
Dec 22 15:11:59 <kern.info> soekris syslogd: kernel boot file is /boot/kernel/kernel
Dec 22 15:11:59 <kern.crit> soekris kernel: er          = 0x28:0xc8253a48
Dec 22 15:11:59 <kern.crit> soekris kernel: code segment                = base 0x0, limit 0xfffff, type 0x1b
Dec 22 15:11:59 <kern.crit> soekris kernel: = DPL 0, pres 1, def32 1, gran 1
Dec 22 15:11:59 <kern.crit> soekris kernel: processor eflags    = interrupt enabled, resume, IOPL = 0
Dec 22 15:11:59 <kern.crit> soekris kernel: current process             = 976 (hostapd)
Dec 22 15:11:59 <kern.crit> soekris kernel: trap number         = 12
Dec 22 15:11:59 <kern.crit> soekris kernel: panic: page fault
Dec 22 15:11:59 <kern.crit> soekris kernel: Uptime: 3h37m37s
Dec 22 15:11:59 <kern.crit> soekris kernel: Physical memory: 119 MB
Dec 22 15:11:59 <kern.crit> soekris kernel: Dumping 26 MB: 11
Dec 22 15:11:59 <kern.crit> soekris kernel: Dump complete
Dec 22 15:11:59 <kern.crit> soekris kernel: Automatic reboot in 15 seconds - press a key on the console to abort


>How-To-Repeat:
1. sh /etc/rc.d/hostapd restart
or
2. Restart the system (which stops the hostapd)

>Fix:
Not yet.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->sam 
Responsible-Changed-By: remko 
Responsible-Changed-When: Sun Dec 23 17:21:42 UTC 2007 
Responsible-Changed-Why:  
Hi Sam can you have a look at this please? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118967 
State-Changed-From-To: open->feedback 
State-Changed-By: sam 
State-Changed-When: Mon Apr 28 16:23:06 UTC 2008 
State-Changed-Why:  
please show how your ral+hostapd setup is configured and what you do to 
restart hostapd that triggers the panic; would also be worth testing on 
HEAD as many issues with ral have been fixed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118967 
State-Changed-From-To: feedback->closed 
State-Changed-By: sam 
State-Changed-When: Tue Dec 30 17:44:04 UTC 2008 
State-Changed-Why:  
no feedback; please re-open the PR w/ the necessary info 

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