From nobody@FreeBSD.org  Sun May  8 22:08:57 2011
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 08152106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  8 May 2011 22:08:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id D1FE28FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  8 May 2011 22:08:56 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p48M8ukw043705
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 8 May 2011 22:08:56 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p48M8uYm043704;
	Sun, 8 May 2011 22:08:56 GMT
	(envelope-from nobody)
Message-Id: <201105082208.p48M8uYm043704@red.freebsd.org>
Date: Sun, 8 May 2011 22:08:56 GMT
From: Michael Moll <kvedulv@kvedulv.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kernel panic when bringing up vge interface
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         156893
>Category:       kern
>Synopsis:       kernel panic when bringing up vge interface
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 08 22:10:06 UTC 2011
>Closed-Date:    Tue May 10 18:44:04 UTC 2011
>Last-Modified:  Tue May 10 18:44:04 UTC 2011
>Originator:     Michael Moll
>Release:        -CURRENT
>Organization:
>Environment:
FreeBSD  9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sun May  8 23:03:53 CEST 2011     root@via.kvedulv.de:/usr/obj/svn/base/head/sys/VIA  amd64
>Description:
When the onboard interface of a VIA VB8001 board is brought up, the following panic happens with r221661:

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x10
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0xffffffff8058ffab
stack pointer	        = 0x28:0xffffff8077d893d0
frame pointer	        = 0x28:0xffffff8077d89410
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 47 (ifconfig)
[ thread pid 47 tid 100070 ]
Stopped at      mii_mediachg+0xdb:      movl    0x10(%r15),%edx
db> bt
Tracing pid 47 tid 100070 td 0xfffffe0002b268c0
mii_mediachg() at mii_mediachg+0xdb
vge_init_locked() at vge_init_locked+0x670
vge_init() at vge_init+0x3e
ether_ioctl() at ether_ioctl+0x69
in6_update_ifa() at in6_update_ifa+0xa34
in6_ifattach() at in6_ifattach+0x32a
ifioctl() at ifioctl+0x12e3
kern_ioctl() at kern_ioctl+0x102
ioctl() at ioctl+0xfd
syscallenter() at syscallenter+0x331
syscall() at syscall+0x4b
Xfast_syscall() at Xfast_syscall+0xdd
--- syscall (54, FreeBSD ELF64, ioctl), rip = 0x801187e1c, rsp = 0x7fffffffd3f8, rbp = 0x7fffffffd400 ---


Part of dmesg:
vge0: <VIA Networking Velocity Gigabit Ethernet> port 0xcc00-0xccff mem 0xdfdff000-0xdfdff0ff irq 28 at device 0.0 on pci3
vge0: attempting to allocate 1 MSI vectors (1 supported)
msi: routing MSI IRQ 256 to local APIC 0 vector 49
vge0: using IRQ 256 for MSI
vge0: Using 1 MSI message
miibus0: <MII bus> on vge0
ip1000phy0: <IP1001 10/100/1000 media interface> PHY 1 on miibus0
ip1000phy0: OUI 0x0009c3, model 0x0019, rev. 0

This worked with a kernel built from sources about one week earlier.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/156893: commit references a PR
Date: Tue, 10 May 2011 18:38:13 +0000 (UTC)

 Author: marius
 Date: Tue May 10 18:38:01 2011
 New Revision: 221746
 URL: http://svn.freebsd.org/changeset/base/221746
 
 Log:
   Fix a bug in r221407; this driver doesn't add the media itself.
   
   PR:	156893
 
 Modified:
   head/sys/dev/mii/ip1000phy.c
 
 Modified: head/sys/dev/mii/ip1000phy.c
 ==============================================================================
 --- head/sys/dev/mii/ip1000phy.c	Tue May 10 18:19:56 2011	(r221745)
 +++ head/sys/dev/mii/ip1000phy.c	Tue May 10 18:38:01 2011	(r221746)
 @@ -111,7 +111,7 @@ ip1000phy_attach(device_t dev)
  	     strcmp(ma->mii_data->mii_ifp->if_dname, "stge") == 0 &&
  	     (miibus_get_flags(dev) & MIIF_MACPRIV0) != 0)
  		flags |= MIIF_PHYPRIV0;
 -	mii_phy_dev_attach(dev, flags, &ip1000phy_funcs, 0);
 +	mii_phy_dev_attach(dev, flags, &ip1000phy_funcs, 1);
  	return (0);
  }
  
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: marius 
State-Changed-When: Tue May 10 18:43:47 UTC 2011 
State-Changed-Why:  
close 

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