Date: Wed, 28 Dec 2016 12:31:49 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Roger Marquis <marquis@roble.com> Cc: freebsd-security@freebsd.org, Ed Maste <emaste@freebsd.org> Subject: Re: /tmp/ecp.* created during kernel build? Message-ID: <A7D222D1-48AA-4F9D-97CC-A2D9B7DD7B95@FreeBSD.org> In-Reply-To: <1612271904400.79526@mx5.roble.com> References: <alpine.BSF.2.11.1612271756590.79526@eboyr.pbz> <1612271904400.79526@mx5.roble.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <marquis@roble.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A7D222D1-48AA-4F9D-97CC-A2D9B7DD7B95>