From owner-freebsd-security@FreeBSD.ORG Thu Oct 27 19:36:40 2005 Return-Path: X-Original-To: freebsd-security@freebsd.org Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95E3C16A41F; Thu, 27 Oct 2005 19:36:40 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF7C143D46; Thu, 27 Oct 2005 19:36:39 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j9RJaTuK034686; Thu, 27 Oct 2005 22:36:29 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 84955-03-3; Thu, 27 Oct 2005 22:36:25 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j9RJZFTS034635 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Oct 2005 22:35:15 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id j9RJZHEB091622; Thu, 27 Oct 2005 22:35:17 +0300 (EEST) (envelope-from ru) Date: Thu, 27 Oct 2005 22:35:17 +0300 From: Ruslan Ermilov To: obrien@freebsd.org, delphij@delphij.net, freebsd-security@freebsd.org, developers@freebsd.org Message-ID: <20051027193517.GS68470@ip.net.ua> References: <20051023105230.GA55181@frontfree.net> <20051023232935.GC602@dragon.NUXI.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3dBJfKlFjfsS/piO" Content-Disposition: inline In-Reply-To: <20051023232935.GC602@dragon.NUXI.org> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Is it feasible to cross-build compat5x binary? X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2005 19:36:40 -0000 --3dBJfKlFjfsS/piO Content-Type: multipart/mixed; boundary="e9fMjeYs+GPci+mg" Content-Disposition: inline --e9fMjeYs+GPci+mg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 23, 2005 at 04:29:35PM -0700, David O'Brien wrote: > On Sun, Oct 23, 2005 at 06:52:30PM +0800, Xin LI wrote: > > I think we need to update compat5x binary to fix FreeBSD-SA-05:21.opens= sl, > > but will the binaries built by ``make universe'' be identical with actu= al > > build on Alpha, Sparc64, etc? (Yes, I'm volunteering to do the work iff > > they are identical ;-) >=20 > We should no trust cross built libraries for this purpose at this time. > We really don't know how identical the results will be to being natively > built. > =20 On -CURRENT they will be identical. I regularly do test cross-builds and do binary compares from installworld/installkernel. The infrastructure is there, and is activated by the CROSS_BUILD_TESTING knob: it tries to eliminate as much difference as it can, with the help of tools/build/cross-build, and ensuring the object directory is the same on native and foreign architectures. Attached is the script I use to test cross-builds. I pass it buildworld, buildkernel, installworld, installkernel, and distribution targets, and then do binary compares. The only known decrepancy at this time is with file(1) data files on sparc64/non-sparc64. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --e9fMjeYs+GPci+mg-- --3dBJfKlFjfsS/piO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDYSv1qRfpzJluFF4RAi+yAJwPQBEpWwpvQqp/6tCC0qEDrWeJxgCfTrAw Vzqp7wlStr7+Akc3nxJJzL8= =2Pt/ -----END PGP SIGNATURE----- --3dBJfKlFjfsS/piO--