From owner-freebsd-sparc64@FreeBSD.ORG Tue Mar 1 23:14:40 2005 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D209A16A4CE; Tue, 1 Mar 2005 23:14:40 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 927B843D53; Tue, 1 Mar 2005 23:14:40 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 1C2CC5126E; Tue, 1 Mar 2005 15:14:39 -0800 (PST) Date: Tue, 1 Mar 2005 15:14:38 -0800 From: Kris Kennaway To: Bosko Milekic Message-ID: <20050301231438.GA25573@xor.obsecurity.org> References: <20050301000436.GA33346@xor.obsecurity.org> <200503011340.18162.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rwEMma7ioTxnRzrJ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: Kris Kennaway cc: net@freebsd.org cc: rwatson@freebsd.org cc: freebsd-sparc64@freebsd.org cc: sparc64@freebsd.org cc: bmilekic@freebsd.org Subject: Re: Race condition in mb_free_ext()? X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 23:14:41 -0000 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 01, 2005 at 06:04:27PM -0500, Bosko Milekic wrote: > This does not appear to explain the livelock. alc and dwhite tracked it down to a missing volatile causing gcc to mis-optimize the loop: - cnt = *(m->m_ext.ref_cnt); + cnt = *(volatile u_int *)(m->m_ext.ref_cnt); I'm currently testing that. Kris --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD4DBQFCJPdeWry0BWjoQKURAhjEAJQIzH83/FFMg4OTWDMkev19ElbpAKD2mYru pC3bsDMZrisMSEJodagwXw== =WydC -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ--