From owner-freebsd-current@freebsd.org Tue Aug 20 18:24:52 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 32FD2D86ED for ; Tue, 20 Aug 2019 18:24:52 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46CfN26mFhz3CJM; Tue, 20 Aug 2019 18:24:50 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-ot1-x32a.google.com with SMTP id r20so5941902ota.5; Tue, 20 Aug 2019 11:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=UdvFM1U3nd09HxqMrlgA52LAcxeAaYFe4hcviHGjDls=; b=eQ5dy4WJptZ9CxhTxQ0UnwS/ajkQmYCBh7mLMqUaCaxH5Uphw0Xjt2Y2bvvMqqGbRk bE/pwwUCJkLw7l/YTryI8xUaiqWu9JDXanWs0qOlT7GhHgRuevAKVr6qMx2i+I0667hl EAKA3WUS6PMkxAUZyNtpnJlj653HKU9niOisSX1VaIl2uWXDJQIoHSR3MYgE4j73cOFm KYhZ5QmUh8fS5hHiR6mN9ehh04+xUw07jpg+aTfjpa3+ASffQSYHrMK/8Nsj8ADUjUaR mebugomZoU7gHFVGKyI22ZE2qbQ7WVpuMIbEn7auC1vzaob2IZgRf6YHSRZddCaVyXOs OvPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=UdvFM1U3nd09HxqMrlgA52LAcxeAaYFe4hcviHGjDls=; b=bifI1jlkwTkq7/JhhKxKn+RbZUxeOzsjK0quHQXNdCEKOi2rklyNgRVGCcIrsKOMXH +XbuFkaAz6WLGheYZkmlkyYJEjkLqob7OFruyyY4M22fmzQtvNr2g8lGKE9jdakLALFi btAYhBJz6uxsSIrpGLRH4XgYTcDffSEPdVXaSCF6V61nwcnWHN2FaU/GKVcYMI+t9br8 eyMgYe/oMKRWzwQXxdDL07qeCDcR7pEqR5A8GvgHi5iflp+3UQB4bLGJeOaZmWMarlr3 vKQ6H4+XLpDJoKyl5s2cYJKaK9pdo81K0E4VNtTQ8X/2oAEMKh+cbvtW1cJO/DN7cvoV /5XQ== X-Gm-Message-State: APjAAAWodO0HsVzM/dr/qaFw6zfdEpSF3ug+BmgrzpVTKvZ4YFQE1IQp gf5cTNR7DB45HPzjLXDEULPAtOlDIFFw1PYpPRwvcw== X-Google-Smtp-Source: APXvYqy/cAcGFZZCu4YHBGK+p4SR+zutw+8rHO1Fs6U5BVKU1bTGuNllKcACJoL77nHu9rqQVAmXPtDc8ybSi/Wb7Vc= X-Received: by 2002:a9d:6e8d:: with SMTP id a13mr8115101otr.235.1566325489447; Tue, 20 Aug 2019 11:24:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:2516:0:0:0:0:0 with HTTP; Tue, 20 Aug 2019 11:24:48 -0700 (PDT) From: Mateusz Guzik Date: Tue, 20 Aug 2019 20:24:48 +0200 Message-ID: Subject: funny pathname lookups from the compiler To: FreeBSD Current Cc: Dimitry Andric Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 46CfN26mFhz3CJM X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=eQ5dy4WJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mjguzik@gmail.com designates 2607:f8b0:4864:20::32a as permitted sender) smtp.mailfrom=mjguzik@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (-7.59), ipnet: 2607:f8b0::/32(-2.93), asn: 15169(-2.36), country: US(-0.05)]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[a.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-1.00)[-0.995,0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Aug 2019 18:24:52 -0000 Interested parties can collect this on their own: dtrace -n 'vfs:namei:lookup:entry /execname == "ld.lld" || execname == "cc"/ { @[stringof(arg1)] = count(); }' and cc hello.c or similar elsewhere. Full list is here: http://dpaste.com/2YM1R41 Highlights of fishy entries for me: /proc/self/fd 1 /etc/SuSE-release 3 /etc/alpine-release 3 /etc/arch-release 3 /etc/debian_version 3 /etc/exherbo-release 3 /etc/gentoo-release 3 /etc/lsb-release 3 /etc/malloc.conf 3 /etc/redhat-release 3 I don't know this code but I strongly suspect most of this can be easily ifdef-ed out. The first one perhaps can be disabled with a switch to configure. None of this is a significant problem of course, but it does look like a waste. -- Mateusz Guzik