From owner-freebsd-security@freebsd.org Wed Dec 28 11:32:08 2016 Return-Path: Delivered-To: freebsd-security@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1199CC946CA for ; Wed, 28 Dec 2016 11:32:08 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9246D15FA; Wed, 28 Dec 2016 11:32:07 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::b1d9:a86:d7c3:cef7] (unknown [IPv6:2001:7b8:3a7:0:b1d9:a86:d7c3:cef7]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E907335BEF; Wed, 28 Dec 2016 12:31:58 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_564BEAB2-B768-4F3F-A83A-3375547420DA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: /tmp/ecp.* created during kernel build? From: Dimitry Andric In-Reply-To: <1612271904400.79526@mx5.roble.com> Date: Wed, 28 Dec 2016 12:31:49 +0100 Cc: freebsd-security@freebsd.org, Ed Maste Message-Id: References: <1612271904400.79526@mx5.roble.com> To: Roger Marquis X-Mailer: Apple Mail (2.3124) X-Mailman-Approved-At: Wed, 28 Dec 2016 12:20:10 +0000 X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2016 11:32:08 -0000 --Apple-Mail=_564BEAB2-B768-4F3F-A83A-3375547420DA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 28 Dec 2016, at 04:10, Roger Marquis wrote: >=20 >> Found a couple of ecp binaries in /tmp, apparently created concurrent >> with an 11.0 x86_64 kernel build. Anyone else seen this? Could they >> be related to a "make buildkernel"? >=20 > Confirmed 'make buildkernel' does create these files, apparently via > /usr/src/contrib/elftoolchain/elfcopy/main.c (thanks Adam). >=20 > Still odd that these are LSB binaries which don't run on this server = and > nothing including cleanworld removed them. Anyone audited = elftoolchain > recently? This looks like a minor bug in elfcopy, when used as objcopy, specifically when in combination with the --input-target binary flag: $ mkdir /tmp/foo $ export TMPDIR=3D/tmp/foo $ ls -l /tmp/foo/ $ /usr/bin/objcopy --input-target binary --output-target = elf64-x86-64-freebsd --binary-architecture i386 cloudabi32_vdso.o = bar.o $ ls -l /tmp/foo total 12 -rw-r--r-- 1 dim wheel 10198 2016-12-28 12:29:32 ecp.0xbNAi5i E.g. for some reason this does not clean up the temporary file. -Dimitry --Apple-Mail=_564BEAB2-B768-4F3F-A83A-3375547420DA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlhjoq4ACgkQsF6jCi4glqPU5gCgkU+HECbIJU1dW7g0bLORtdWg EwMAoInae0U1laeUXOyzQ6J9UIEzQlhY =gz9w -----END PGP SIGNATURE----- --Apple-Mail=_564BEAB2-B768-4F3F-A83A-3375547420DA--