From nobody@FreeBSD.org  Fri May 16 06:08:28 2008
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 69984106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 May 2008 06:08:28 +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 58C0C8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 May 2008 06:08:28 +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 m4G67GHO050152
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 May 2008 06:07:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m4G67Fl6050151;
	Fri, 16 May 2008 06:07:15 GMT
	(envelope-from nobody)
Message-Id: <200805160607.m4G67Fl6050151@www.freebsd.org>
Date: Fri, 16 May 2008 06:07:15 GMT
From: Justin Jereza <justinjereza@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: page fault after ppp restart and pf resync
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         123726
>Category:       kern
>Synopsis:       [panic] [altq] page fault after ppp restart and pf resync
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mlaier
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 16 06:10:01 UTC 2008
>Closed-Date:    Mon May 19 09:07:10 UTC 2008
>Last-Modified:  Mon May 19 09:07:10 UTC 2008
>Originator:     Justin Jereza
>Release:        FreeBSD 7.0-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD apollo.mainstreetph.dnsalias.com 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Mon Apr 28 02:31:01 PHT 2008 root@apollo.mainstreetph.dnsalias.com:/usr/obj/usr/src/sys/APOLLO i386
>Description:
May be related to bug `kern/123363' (http://www.freebsd.org/cgi/query-pr.cgi?pr=123363) submitted previously. Backtrace looks similar.

Backtrace:

#0  doadump () at pcpu.h:195
#1  0xc075c1e7 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc075c4ac in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:563
#3  0xc0a4efac in trap_fatal (frame=0xd68b19e4, eva=392) at /usr/src/sys/i386/i386/trap.c:899
#4  0xc0a4f210 in trap_pfault (frame=0xd68b19e4, usermode=0, eva=392) at /usr/src/sys/i386/i386/trap.c:812
#5  0xc0a4fbd9 in trap (frame=0xd68b19e4) at /usr/src/sys/i386/i386/trap.c:490
#6  0xc0a3684b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7  0xc074fd02 in _mtx_lock_sleep (m=0xc2f1bd08, tid=3295840848, opts=0, file=0x0, line=0)
    at /usr/src/sys/kern/kern_mutex.c:335
#8  0xc048b3e1 in hfsc_class_destroy (cl=0xc349f800) at /usr/src/sys/contrib/altq/altq/altq_hfsc.c:595
#9  0xc048b65b in hfsc_remove_altq (a=0xc317a460) at /usr/src/sys/contrib/altq/altq/altq_hfsc.c:350
#10 0xc04904ba in altq_remove (a=0xc317a460) at /usr/src/sys/contrib/altq/altq/altq_subr.c:655
#11 0xc313b309 in ?? ()
#12 0xc317a460 in ?? ()
#13 0xc317a380 in ?? ()
#14 0x00000000 in ?? ()
#15 0x01000000 in ?? ()
#16 0x00000000 in ?? ()
#17 0xc34588a0 in ?? ()
#18 0xd68b1be4 in ?? ()
#19 0xc3140295 in ?? ()
#20 0x00000006 in ?? ()
#21 0x00000000 in ?? ()
#22 0xc314d864 in ?? ()
#23 0x00000c55 in ?? ()
#24 0xc3b38c08 in ?? ()
#25 0x00000006 in ?? ()
#26 0xc3b38c38 in ?? ()
#27 0xc4728a50 in ?? ()
#28 0xc0ae10d5 in ?? ()
#29 0x00000119 in ?? ()
#30 0xd68b1ae8 in ?? ()
#31 0xc0a64955 in VOP_UNLOCK_APV (vop=0x6, a=0x0) at vnode_if.c:1676
Previous frame inner to this frame (corrupt stack?)
>How-To-Repeat:
# /etc/rc.d/ppp stop
# ifconfig tun0 destroy
# ifconfig tun0 create
# /etc/rc.d/ppp start
--- Message about pf resync failing ---
# /etc/rc.d/pf resync
--- page fault ---
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: remko 
Responsible-Changed-When: Sat May 17 01:44:37 UTC 2008 
Responsible-Changed-Why:  
This could be something for the networking team. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123726 
Responsible-Changed-From-To: freebsd-net->freebsd-pf 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Sun May 18 16:57:03 UTC 2008 
Responsible-Changed-Why:  

altq is Max' territory - reassign 
also please note, this PR is a slightly different DUP to similar PRs 
(problem is caused by altq when interfaces disappear) 

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

From: Max Laier <max@love2party.net>
To: bug-followup@freebsd.org,
 justinjereza@gmail.com
Cc:  
Subject: Re: kern/123726: [panic] [altq] page fault after ppp restart and pf resync
Date: Mon, 19 May 2008 01:22:21 +0200

 There is patch for this here: 
 http://people.freebsd.org/~mlaier/pf.dyn_altq.R7.diff
 
 It's been committed to RELENG_7, too.  I'm not sure it warrants for a 
 errata commit to RELENG_7_0, though.
 
 -- 
   Max
State-Changed-From-To: open->patched 
State-Changed-By: linimon 
State-Changed-When: Sun May 18 23:42:07 UTC 2008 
State-Changed-Why:  
Already committed to RELENG_7; may need merge to RELENG_6. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123726 
Responsible-Changed-From-To: freebsd-pf->mlaier 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun May 18 23:43:02 UTC 2008 
Responsible-Changed-Why:  
Over to committer of the patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123726 
State-Changed-From-To: patched->closed 
State-Changed-By: mlaier 
State-Changed-When: Mon May 19 09:06:11 UTC 2008 
State-Changed-Why:  
This has been MFCed to both RELENG_6 and _7  An errata commit to RELENG_7_0 
is not planned. 

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