From nobody@FreeBSD.org  Wed Sep 28 09:30:02 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 646EF106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Sep 2011 09:30:02 +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 4DADD8FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Sep 2011 09:30:02 +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 p8S9U1X0018978
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Sep 2011 09:30:01 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p8S9U1Nf018977;
	Wed, 28 Sep 2011 09:30:01 GMT
	(envelope-from nobody)
Message-Id: <201109280930.p8S9U1Nf018977@red.freebsd.org>
Date: Wed, 28 Sep 2011 09:30:01 GMT
From: Erwan Martin <public@fzwte.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [vimage] [panic] kernel panic with pf + VIMAGE when stopping a jail
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         161094
>Category:       kern
>Synopsis:       [vimage] [pf] [panic] kernel panic with pf + VIMAGE when stopping a jail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-virtualization
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 28 09:30:16 UTC 2011
>Closed-Date:    
>Last-Modified:  Sun Feb 19 19:15:17 UTC 2012
>Originator:     Erwan Martin
>Release:        9.0-BETA3
>Organization:
Lanestel
>Environment:
FreeBSD  9.0-BETA3 FreeBSD 9.0-BETA3 #1: Tue Sep 27 17:42:30 UTC 2011     root@:/usr/obj/usr/src/sys/TESTKERNEL9  i386
>Description:
When using a VIMAGE kernel with pf, stopping a jail creates a panic.

panic: Assertion lock == sq->sq_lock failed at /usr/src/sys/kern/subr_sleepqueue.c:335
cpuid = 0
KDB: enter: panic
[ thread pid 1026 tid 100064 ]
Stopped at      kdb_enter+0x3a: movl    $0,kdb_why

db> trace
Tracing pid 1026 tid 100064 td 0xc2e8c000
kdb_enter(c0f475cc,c0f475cc,c0dc9e6f,c768a69c,0,...) at kdb_enter+0x3a
panic(c0dc9e6f,c0f4d22a,c0f4ce80,14f,0,...) at panic+0x134
sleepq_add(c04ec840,c2e8e704,c0dc1566,0,0,...) at sleepq_add+0x22c
_sleep(c04ec840,c2e8e704,0,c0dc1566,64,...) at _sleep+0x2a0
vnet_pf_uninit(0,0,c0f5e37a,277,0,...) at vnet_pf_uninit+0x517
vnet_sysuninit(c1260318,c0f5e37a,118,116,c0f42483,...) at vnet_sysuninit+0x49
vnet_destroy(c2b54920,c0f42483,9c8,9ba,c2c86028,...) at vnet_destroy+0x16b
prison_deref(c0a16acb,c2c86028,0,c0f42483,2,...) at prison_deref+0x272
prison_remove_one(c1076ac0,1,c0f42483,853,c0d86aaf,...) at prison_remove_one+0x53
sys_jail_remove(c2e8c000,c768acec,c0f95d96,c0f50a93,246,...) at sys_jail_remove+0x266
syscall(c768ad28) at syscall+0x284
Xint0x80_syscall() at Xint0x80_syscall+0x21
--- syscall (508, FreeBSD ELF32, sys_jail_remove), eip = 0x280f29cb, esp = 0xbfbfebdc, ebp = 0xbfbfeca8 ---
>How-To-Repeat:
Compile a VIMAGE+pf kernel.
Start pf.
Create and start a jail.
Stop the jail.


>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-virtualization 
Responsible-Changed-By: bz 
Responsible-Changed-When: Wed Sep 28 09:44:48 UTC 2011 
Responsible-Changed-Why:  
Reassign 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161094 
>Unformatted:
 >/etc/rc.d/pf onestart
 Enabling pfNo ALTQ support in kernel
 ALTQ related functions disabled
 No ALTQ support in kernel
 ALTQ related functions disabled
 No ALTQ support in kernel
 ALTQ related functions disabled
 pf enabled
