From owner-freebsd-current Mon Mar 24 11:39:40 2003 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 7984537B401; Mon, 24 Mar 2003 11:39:37 -0800 (PST) Received: from haakonia.hitnet.rwth-aachen.de (haakonia.hitnet.RWTH-Aachen.DE [137.226.181.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BCB143F75; Mon, 24 Mar 2003 11:39:36 -0800 (PST) (envelope-from chris@unixpages.org) Received: from gondor.middleearth (gondor.middleearth [192.168.1.42]) by haakonia.hitnet.rwth-aachen.de (Postfix) with ESMTP id D2863A91E; Mon, 24 Mar 2003 20:39:35 +0100 (CET) Received: by gondor.middleearth (Postfix, from userid 1001) id 67B95466F; Mon, 24 Mar 2003 20:39:35 +0100 (CET) Date: Mon, 24 Mar 2003 20:39:35 +0100 From: Christian Brueffer To: Robert Watson Cc: "Daniel C. Sobral" , CURRENT Subject: Re: IP stack problem -- possibly mac-related Message-ID: <20030324193935.GY36490@unixpages.org> References: <3E7F3F3F.8090902@tcoip.com.br> <20030324192838.GX36490@unixpages.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tuYRN1zEaS85jg/Y" Content-Disposition: inline In-Reply-To: <20030324192838.GX36490@unixpages.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.0-CURRENT X-PGP-Key: http://people.freebsd.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D X-Spam-Status: No, hits=-38.8 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --tuYRN1zEaS85jg/Y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 24, 2003 at 08:28:38PM +0100, Christian Brueffer wrote: > On Mon, Mar 24, 2003 at 01:08:37PM -0500, Robert Watson wrote: > >=20 > > On Mon, 24 Mar 2003, Daniel C. Sobral wrote: > >=20 > > > The messages below are from today's kernel + mac_mls and mac_biba > > > kld-loaded from loader(8). None of the warning appear if these modules > > > are not loaded (I haven't tried not loading one and then the other, b= ut > > > I can do it on request)=20 > > ... > > > malloc() of "128" with the following non-sleepablelocks held: > > > exclusive sleep mutex inp r =3D 0 (0xc280a6ec) locked @=20 > > > /usr/src/sys/netinet/udp_usrreq.c:1034 > > > exclusive sleep mutex udp r =3D 0 (0xc035eeec) locked @=20 > > > /usr/src/sys/netinet/udp_usrreq.c:1027 > >=20 > > Hmm. I think there's a witness flag to generate stack traces when givi= ng > > out these sorts of warnings -- debug.witness_trace I think. Can you try > > turning that on in loader.conf and see if we get some additional > > information? The only MAC call in udp_output() is > > mac_create_mbuf_from_socket(), which isn't supposed to result in memory > > allocation. That should only happen when the mbuf itself is allocated.= A > > stack trace might narrow down the source of the problem. > >=20 >=20 > I get this too with mac_biba in kernel or loaded as a module. >=20 > Message at bootup: >=20 > malloc() of "128" with the following non-sleepablelocks held: > exclusive sleep mutex radix node head r =3D 1 (0xc268377c) locked @ /usr/= src/sys/n > et/route.c:549 >=20 > Messages on other network operations: >=20 > malloc() of "128" with the following non-sleepablelocks held: > exclusive sleep mutex inp r =3D 0 (0xc27a435c) locked @ /usr/src/sys/neti= net/udp_u > srreq.c:1034 >=20 FYI, debug.witness_trace is set (seems to default to 1). Any other ways to= get more info out of this? - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --tuYRN1zEaS85jg/Y Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+f172bHYXjKDtmC0RAtAsAJ96WlVCXM9DJh/XZxjAq5MmTEi7hgCgxS2D cSyqRGrXXJmDC9CgRlGtRXY= =EBo+ -----END PGP SIGNATURE----- --tuYRN1zEaS85jg/Y-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message