Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 2009 16:21:21 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Rene Ladan <rene@freebsd.org>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: kern/136945: [ufs] [lor] filedesc structure/ufs (poll)
Message-ID:  <20090730132121.GH1884@deviant.kiev.zoral.com.ua>
In-Reply-To: <e890cae60907300555x63de4a0dva503171d8fe2d3e6@mail.gmail.com>
References:  <200907271400.n6RE05Rv056472@freefall.freebsd.org> <200907290742.20838.jhb@freebsd.org> <e890cae60907290820i65abae2fracbc5ab935465089@mail.gmail.com> <200907291135.17569.jhb@freebsd.org> <e890cae60907300205v5d3d5586qe86969bd28fe8621@mail.gmail.com> <20090730092507.GF1884@deviant.kiev.zoral.com.ua> <e890cae60907300555x63de4a0dva503171d8fe2d3e6@mail.gmail.com>

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

--9A1A73/U17WN0PFw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 30, 2009 at 02:55:48PM +0200, Rene Ladan wrote:
>=20
> FreeBSD 8.0-BETA2 #3: Thu Jul 30 13:29:46 CEST 2009
>=20
> lock order reversal:
>  1st 0xffffff00510a5d80 ufs (ufs) @ /usr/src/sys/kern/kern_exec.c:570
>  2nd 0xffffff0002dfe248 filedesc structure (filedesc structure) @ /usr/sr=
c/sys/kern/kern_descrip.c:1864
> KDB: stack backtrace:
> db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
> _witness_debugger() at _witness_debugger+0x49
> witness_checkorder() at witness_checkorder+0x7ea
> _sx_xlock() at _sx_xlock+0x44
> setugidsafety() at setugidsafety+0x40
> kern_execve() at kern_execve+0xf22
> execve() at execve+0x38
> syscall() at syscall+0x1af
> Xfast_syscall() at Xfast_syscall+0xe1
> --- syscall (59, FreeBSD ELF64, execve), rip =3D 0x8007c3d0c, rsp =3D 0x7=
fffffffec48, rbp =3D 0x7fffffffed50 ---

For this one, please replace the order of lines 676 and 677 in
sys/kern/kern_exec.c, that is make it be
		VOP_UNLOCK(imgp->vp, 0);
		setugidsafety(td);
instead of
		VOP_UNLOCK(imgp->vp, 0);
		setugidsafety(td);

--9A1A73/U17WN0PFw
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEUEARECAAYFAkpxnlEACgkQC3+MBN1Mb4iQdACfcPg7eF9peTrsew6tkY65XfFY
cOYAl2sGeCOh/N1xLW+hsf1oEXkv454=
=PmIC
-----END PGP SIGNATURE-----

--9A1A73/U17WN0PFw--



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