Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Sep 2006 17:19:05 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Alex Lyashkov <umka@sevcity.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: jail2 patchset 12
Message-ID:  <20060917211905.GA64182@xor.obsecurity.org>
In-Reply-To: <1158407656.3215.33.camel@berloga.shadowland>
References:  <1158407656.3215.33.camel@berloga.shadowland>

next in thread | previous in thread | raw e-mail | index | archive | help

--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Sep 16, 2006 at 02:54:16PM +0300, Alex Lyashkov wrote:
> Hello All,
>=20
> Some time ago I finished the next public jail2 patchset.
> As of now, jail2 supports per-jail SYSV IPC namespaces.
> It is possible to configure which jails can and which cannot use
> SYSV IPC.  The UID hash is also perl-jail now.
> he patchset also implements per-jail resource limits, such as:
> - number of SYSV IPC objects;
> - number of processes;
> - number of filedescriptors.
> In addition, all jail-related code was moved under 'options JAIL'.
>=20
> The project's homepage:
> http://docs.freevps.com/doku.php?id=3Dfreebsd:index

I get the following panic when creating a jail:

panic: mutex allprison not owned at ../../../kern/kern_jail.c:374
cpuid =3D 1
KDB: enter: panic
[thread pid 930 tid 106142 ]
Stopped at      kdb_enter+0x32: leave
db> wh
Tracing pid 930 tid 106142 td 0xd30841b0
kdb_enter(c0756d95,1,c0755e9c,f17c9b80,d30841b0,...) at kdb_enter+0x32
panic(c0755e9c,c075431c,c0754331,176,1,...) at panic+0x1b1
_mtx_unlock_spin_flags(c07c6214,1,c0754331,176,0,...) at _mtx_unlock_spin_f=
lags
prison_find(1,0,0,d30841b0,c5bb9800,...) at prison_find+0x2e
jail_attach(d30841b0,f17c9bf0,c0754331,9f,c5bb992c,...) at jail_attach+0x38
jail(d30841b0,f17c9d04,4,f17c9d38,1,...) at jail+0x3b5
syscall(3b,3b,3b,bfbfe8c0,bfbfe904,...) at syscall+0x152
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (338, FreeBSD ELF32, jail), eip =3D 0x280d1ee7, esp =3D 0xbfbfe=
3ac, ebp =3D 0xbfbfe888 ---

  930   545   544     0  R       CPU 1               jail

Kris

--5mCyUwZo2JvN/JJP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFDbvJWry0BWjoQKURAr8TAJwKXPoh7gmgm+RZDW5tV3szIZdoQgCg2nef
8ssPSb+bb9cQkC2pwaPHaeE=
=rRJO
-----END PGP SIGNATURE-----

--5mCyUwZo2JvN/JJP--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060917211905.GA64182>