From owner-freebsd-current@FreeBSD.ORG Mon Jul 26 07:22:27 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A59716A4CE; Mon, 26 Jul 2004 07:22:27 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id C528943D45; Mon, 26 Jul 2004 07:22:26 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 2A39DACBD6; Mon, 26 Jul 2004 09:22:25 +0200 (CEST) Date: Mon, 26 Jul 2004 09:22:25 +0200 From: Pawel Jakub Dawidek To: "Simon L. Nielsen" Message-ID: <20040726072225.GA57678@darkness.comp.waw.pl> References: <20040725210254.GA765@zaphod.nitro.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VSfbCJd5UFatzzNC" Content-Disposition: inline In-Reply-To: <20040725210254.GA765@zaphod.nitro.dk> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: bzeeb+freebsd+lor@zabbadoz.net cc: freebsd-current@freebsd.org cc: Robert Watson Subject: Re: LOR in mac_portacl on dhclient start X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2004 07:22:27 -0000 --VSfbCJd5UFatzzNC Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 25, 2004 at 11:02:54PM +0200, Simon L. Nielsen wrote: +> I get the following LOR on each boot when dhclient starts up: +>=20 +> lock order reversal +> 1st 0xc1d702dc so_rcv (so_rcv) @ /usr/src/sys/kern/uipc_syscalls.c:193 +> 2nd 0xc08c1b00 rule_sx (rule_sx) @ /usr/src/sys/security/mac_portacl/ma= c_portacl.c:399 +> KDB: stack backtrace: +> kdb_backtrace(c074eb16,c08c1b00,c08c0427,c08c0427,c08c0443) at kdb_backt= race+0x2f +> witness_checkorder(c08c1b00,1,c08c0443,18f,c078f2bc) at witness_checkord= er+0x67c +> _sx_slock(c08c1b00,c08c0443,18f,1,c1b22e20) at _sx_slock+0x7f +> rules_check(c197b900,2,2,44,c08c19e0) at rules_check+0x47 +> check_socket_bind(c197b900,c1d70278,c1ce7d48,c1b22e20,0) at check_socket= _bind+0x81 +> mac_check_socket_bind(c197b900,c1d70278,c1b22e20,c1,c1d70278) at mac_che= ck_socket_bind+0xd5 +> kern_bind(c1d566e0,4,c1b22e20,c1b22e20,0) at kern_bind+0xa4 +> bind(c1d566e0,e659fd14,c,431,3) at bind+0x44 +> syscall(2f,2f,2f,bfbfe5c4,80a9000) at syscall+0x271 +> Xint0x80_syscall() at Xint0x80_syscall+0x1f +> --- syscall (104, FreeBSD ELF32, bind), eip =3D 0x281163af, esp =3D 0xbf= bfe4dc, ebp =3D 0xbfbfe528 --- But how is that possible?! Where is the reserse path? Is the right order stored somewhere in WITNESS? (file:lineno will be ok) --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --VSfbCJd5UFatzzNC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBBLExForvXbEpPzQRAsTyAJ9sHrRXwJLlVGn710Awj+lJ4tXVfACfT4cn Kh6MYAH4UZJ7hSOA6A4Mt84= =elWb -----END PGP SIGNATURE----- --VSfbCJd5UFatzzNC--