Bug 161094 - [vimage] [pf] [panic] kernel panic with pf + VIMAGE when stopping a jail
Summary: [vimage] [pf] [panic] kernel panic with pf + VIMAGE when stopping a jail
Status: Closed DUPLICATE of bug 194515
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-BETA3
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 10:30 UTC by Erwan Martin
Modified: 2014-12-13 12:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erwan Martin 2011-09-28 10:30:16 UTC
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.
Comment 1 Bjoern A. Zeeb freebsd_committer freebsd_triage 2011-09-28 10:44:48 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-virtualization

Reassign
Comment 2 Craig Rodrigues freebsd_committer freebsd_triage 2014-12-13 12:40:53 UTC

*** This bug has been marked as a duplicate of bug 194515 ***