From nobody@FreeBSD.org Sun Mar 9 12:39:03 2008 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0BEF106566B for ; Sun, 9 Mar 2008 12:39:03 +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 D94518FC18 for ; Sun, 9 Mar 2008 12:39:03 +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 m29CZstO026275 for ; Sun, 9 Mar 2008 12:35:54 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m29CZsRt026274; Sun, 9 Mar 2008 12:35:54 GMT (envelope-from nobody) Message-Id: <200803091235.m29CZsRt026274@www.freebsd.org> Date: Sun, 9 Mar 2008 12:35:54 GMT From: Dimitar Peikov To: freebsd-gnats-submit@FreeBSD.org Subject: System reboot after enabling DHCP on bge0 and assigning static IP on wpi0 X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 121518 >Category: kern >Synopsis: [wpi] System reboot after enabling DHCP on bge0 and assigning static IP on wpi0 >Confidential: no >Severity: serious >Priority: medium >Responsible: thompsa >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 09 12:40:00 UTC 2008 >Closed-Date: Fri Apr 25 04:28:18 UTC 2008 >Last-Modified: Fri Apr 25 04:28:18 UTC 2008 >Originator: Dimitar Peikov >Release: FreeBSD 7.0-RELEASE i386 >Organization: none >Environment: FreeBSD trol.mutk0.homeip.net 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Sun Mar 9 12:33:14 EET 2008 root@trol.mutk0.homeip.net:/usr/src/sys/i386/compile/trol i386 >Description: Laptop HP nc6400 / 1GB RAM, equiped with wpi0 '3945ABG Wireless LAN controller' and bge0 'BCM5753M NetXtreme Gigabit Ethernet PciXpress'. Home internet is provided by wireless Linksys router ( LAN and WAN links use the same pool of 20 IP addresses ). bge0 is linked by ethernet cable directly to the Linksys router and configured using DHCP, wpi0 is not configured at all. After execution of # ifconfig wpi0 inet 10.155.0.1 up in a few seconds later the system reboots. First time observed when requested DHCP on wpi0 after bge0 already has assignment from the same very DHCP pool. >How-To-Repeat: Home internet is provided by wireless Linksys router ( LAN and WAN links use the same pool of 20 IP addresses ). bge0 is linked by ethernet cable directly to the Linksys router and configured using DHCP, wpi0 is not configured at all. # ifconfig wpi0 inet 10.155.0.1 up >Fix: >Release-Note: >Audit-Trail: From: Manolis Kiagias To: Dimitar Peikov Cc: freebsd-gnats-submit@freebsd.org Subject: Re: misc/121518: System reboot after enabling DHCP on bge0 and assigning static IP on wpi0 Date: Sun, 09 Mar 2008 14:50:49 +0200 This is remarkably similar to one I submitted for 6.3, http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/118897 I have also sent a backtrace. Thought I should mention this here in case they are related. (have not tested this behavior in 7.0 though) Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Sun Mar 9 16:18:51 UTC 2008 Responsible-Changed-Why: Over to maintainer(s), although as noted this is similar to kern/118897, and thus may not be interface-specific. http://www.freebsd.org/cgi/query-pr.cgi?pr=121518 From: Dimitar Peikov To: bug-followup@FreeBSD.org, Dimitar.Peikov@gmail.com Cc: Subject: Re: kern/121518: [wpi] System reboot after enabling DHCP on bge0 and assigning static IP on wpi0 Date: Sun, 09 Mar 2008 19:22:21 +0200 I've forgot to provide backtrace and dump information in PR. Kernel is GENERIC + SCHED_ULE + device wpi. I can provide more information if needed. ----- kdbg ----- Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x14 fault code = supervisor read, page not present instruction pointer = 0x20:0xc07864fe stack pointer = 0x28:0xe6b72abc frame pointer = 0x28:0xe6b72adc code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 1262 (ifconfig) trap number = 12 panic: page fault cpuid = 0 Uptime: 1h0m5s Physical memory: 1003 MB Dumping 145 MB: 130 114 98 82 66 50 34 (CTRL-C to abort) 18 2 #0 doadump () at pcpu.h:195 195 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) bt #0 doadump () at pcpu.h:195 #1 0xc07543e7 in boot (howto=260) at ../../../kern/kern_shutdown.c:409 #2 0xc07546a9 in panic (fmt=Variable "fmt" is not available. ) at ../../../kern/kern_shutdown.c:563 #3 0xc0a518bc in trap_fatal (frame=0xe6b72a7c, eva=20) at ../../../i386/i386/trap.c:899 #4 0xc0a5223f in trap (frame=0xe6b72a7c) at ../../../i386/i386/trap.c:280 #5 0xc0a3845b in calltrap () at ../../../i386/i386/exception.s:139 #6 0xc07864fe in propagate_priority (td=0xc429b220) at ../../../kern/subr_turnstile.c:272 #7 0xc0787338 in turnstile_wait (ts=0xc3ec5a00, owner=0xc429b220, queue=Variable "queue" is not available. ) at ../../../kern/subr_turnstile.c:739 #8 0xc0747f5e in _mtx_lock_sleep (m=0xc4077418, tid=3291456032, opts=0, file=0x0, line=0) at ../../../kern/kern_mutex.c:416 #9 0xc0a2fa08 in wpi_ioctl (ifp=0xc4064800, cmd=2149345770, data=0xc4112de0 "wpi0") at ../../../dev/wpi/if_wpi.c:2303 #10 0xc0824922 in in_control (so=0xc4b15630, cmd=2149345770, data=0xc4112de0 "wpi0", ifp=0xc4064800, td=0xc42fa220) at ../../../netinet/in.c:483 #11 0xc07e90dd in ifioctl (so=0xc4b15630, cmd=2149345770, data=0xc4112de0 "wpi0", td=0xc42fa220) at ../../../net/if.c:1888 #12 0xc078fbfa in soo_ioctl (fp=0xc4b4d5e8, cmd=2149345770, data=0xc4112de0, active_cred=0xc48b2e00, td=0xc42fa220) at ../../../kern/sys_socket.c:191 #13 0xc07889f5 in kern_ioctl (td=0xc42fa220, fd=3, com=2149345770, ---Type to continue, or q to quit--- data=0xc4112de0 "wpi0") at file.h:266 #14 0xc0788b54 in ioctl (td=0xc42fa220, uap=0xe6b72cfc) at ../../../kern/sys_generic.c:570 #15 0xc0a51e95 in syscall (frame=0xe6b72d38) at ../../../i386/i386/trap.c:1035 #16 0xc0a384c0 in Xint0x80_syscall () at ../../../i386/i386/exception.s:196 #17 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) ----- kdbg ----- Responsible-Changed-From-To: freebsd-net->thompsa Responsible-Changed-By: thompsa Responsible-Changed-When: Sun Mar 9 21:20:07 UTC 2008 Responsible-Changed-Why: I have been working on a wpi patch. http://www.freebsd.org/cgi/query-pr.cgi?pr=121518 From: Andrew Thompson To: bug-followup@FreeBSD.org, Dimitar.Peikov@gmail.com Cc: Subject: Re: kern/121518: [wpi] System reboot after enabling DHCP on bge0 and assigning static IP on wpi0 Date: Mon, 10 Mar 2008 10:19:28 +1300 Hi, Please try the patch here and report back (use the wpi_releng7.diff one) http://lists.freebsd.org/pipermail/freebsd-current/2008-March/084105.html Andrew From: Dimitar Peikov To: bug-followup@FreeBSD.org, Dimitar.Peikov@gmail.com Cc: Subject: Re: kern/121518: [wpi] System reboot after enabling DHCP on bge0 and assigning static IP on wpi0 Date: Wed, 12 Mar 2008 01:57:29 +0200 No crash with wpi patch. Dimitar State-Changed-From-To: open->patched State-Changed-By: thompsa State-Changed-When: Wed Mar 12 00:12:40 UTC 2008 State-Changed-Why: The patch has bee committed to HEAD, mfc to RELENG_7 next week. Thanks for testing. http://www.freebsd.org/cgi/query-pr.cgi?pr=121518 State-Changed-From-To: patched->closed State-Changed-By: thompsa State-Changed-When: Fri Apr 25 04:27:59 UTC 2008 State-Changed-Why: MFC was completed. http://www.freebsd.org/cgi/query-pr.cgi?pr=121518 >Unformatted: