On 28 Dec 2016, at 04:10, Roger Marquis <marquis at roble.com>
wrote:>
>> 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"?
>
> Confirmed 'make buildkernel' does create these files, apparently
via
> /usr/src/contrib/elftoolchain/elfcopy/main.c (thanks Adam).
>
> 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=/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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL:
<http://lists.freebsd.org/pipermail/freebsd-security/attachments/20161228/21e95958/attachment.sig>