From owner-freebsd-security@freebsd.org Thu Mar 30 18:05:10 2017 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 2647FD2686C for ; Thu, 30 Mar 2017 18:05:10 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it0-x233.google.com (mail-it0-x233.google.com [IPv6:2607:f8b0:4001:c0b::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E4874D0B; Thu, 30 Mar 2017 18:05:09 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it0-x233.google.com with SMTP id e75so117849466itd.1; Thu, 30 Mar 2017 11:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=XoRghJYS7K8BIb3enCF6HDhQ6LEJzwmmamKLnPabm5Y=; b=Iuscrv5Bs6C51S+WDl+Tj/vWfDC51nu7SR30db/o9SVUjVwLw+oxBYdzy1u5gTAr2b zGksI8w994Rx7EjNHbPxxRAn0SmgD6Q59AsEStB/Vc//S/rfX5vTSycRmo7QQrhxWMTU JyBYswRfL6KQWT337DXNPXS79GY8oreQY5ZNDHyu86va6eag7xuK0ow83+GVyMVd2aXV JsIU5WZ2wXWZzwtDfY0fZk4gAtp4xE3E3xPTgsU9XJKP2WMVQ2HV88UNKh37mRDbu3Fi LNegLpHBNusnGtojfDnZdLnsKG+E8xg/zTXr6CqKvYWLv5PTv4cQ95mXHmHSQQLRtEGP jisg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=XoRghJYS7K8BIb3enCF6HDhQ6LEJzwmmamKLnPabm5Y=; b=XPUxh18R5aKBy95x29mb2EnlQZesdwk3ODHTZZzSJlsYI+Nkc8IkAyBNvKs9zfLtoE IgVK9pylpw3XaDnSfGeEKv+yRqW8uSVH+KaN+apdsbctewayBT24zyK97KVmzV5DTzxX 75bqP8sndkDC+75IjOQKSw33O+zZa9TuJ6pTD9HV4SsG4jOqEYAkD/FN06BIEr33gBaf VeHlNKPXubXY86jwpgzbxOguAdkecjPrdsBCL4im3CwtF7XsLn7YwCASYj/OurY5FxEP epKliIK0ZxbAsj+ga1Fqt6DZttrHtTyVI4CJXF+x1l69YdqYfifiqYeMvbTIC+9oTpKD dfWg== X-Gm-Message-State: AFeK/H2rwZXCXPqv8MtkU5gClUKRVopc3KRyqE7+RO2A/KFXguOEoJyiQruXEP08PVbA40LMbV3QR1EvrmWJIw== X-Received: by 10.36.0.198 with SMTP id 189mr5652613ita.82.1490897048963; Thu, 30 Mar 2017 11:04:08 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.30.209 with HTTP; Thu, 30 Mar 2017 11:03:48 -0700 (PDT) In-Reply-To: References: <1612271904400.79526@mx5.roble.com> From: Ed Maste Date: Thu, 30 Mar 2017 14:03:48 -0400 X-Google-Sender-Auth: ntoTyoYffsMQeNDJNUcuUsLyQ3Y Message-ID: Subject: Re: /tmp/ecp.* created during kernel build? To: Dimitry Andric Cc: Roger Marquis , freebsd-security@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Thu, 30 Mar 2017 18:05:10 -0000 On 28 December 2016 at 06:31, Dimitry Andric wrote: > > 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. This should be fixed as of r316284 and will be MFCd before 11.1.