Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1188324ybb; Fri, 3 Apr 2020 21:03:22 -0700 (PDT) X-Google-Smtp-Source: APiQypKteT6YlioxI44qzj+fcCqC/WamBOSadN0mjDMGvB5ffuFgLhnt/+EvZiFgAwR8W8RUN+BM X-Received: by 2002:a9d:5f7:: with SMTP id 110mr8164454otd.73.1585973002543; Fri, 03 Apr 2020 21:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585973002; cv=none; d=google.com; s=arc-20160816; b=PckszCSVot6vgI5royMCKaP/UJLxPIskADOuYvcHAhWlo5L9cHPp3ZTpocCgnVw9lC OvLYVQ81/EpS6TH6BX3/iNtdlLxwW0n27Fj7QB5OpjZZc4IqgqMzQ5gx+mPnQLUvKJwu sdut1AFCgtPTvcrWbJASLWcMil132D8hJL2kBnWMYhIv2xselGiI5LIVUs16U0aBaoGm FHzL37kqk/KjyYxSfhw+V2tAP00MBEtX1qE8GGTDUcn0meDXrlv+kUZ9EFRXzou/q61r JDOkeeLZKCmYopXLzoRrITo1GtpKBkRP4I5YDabYjJ5RQn/VzmXPK3PhQjGfLged8N5y g1qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HGQtBy/Y1NLvvkMjbES/Jv6f17twJdxb+OF5qTeiXgQ=; b=PI8lJpomB/rIfUY8Bl5xh8nLr0P5BuZaFc20MmwZEwq3XqZ8zQKrDWSq+LYNLyMbFE 2OiB1TKUZifaYvSMwvfWAbjcHU5lspFR3+KdnWx9ytvCyC1H6c124NqiFebj20j3VSfp ZqVUCINqSrPsxE5Q2UxpkU6zcF+r0rvw6XG+vXP4pstHndiAzQZEQrBh6CgnEwDTnlTG 1voXG8a/gAgO6q4NISVAu0rSKFuq8Nz8Ap5o4GZLOzVlL/as9Py0KgDja5W/4PxXUr6r tE5wyfTyxz1MkK/amqj9zS//ejHB9UuDtAPTWaQ6596ePdxNxpp12sdKOZLcXOZAZ9Lf m32Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BIAUI0LB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x73si4539712oif.16.2020.04.03.21.03.04; Fri, 03 Apr 2020 21:03:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BIAUI0LB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725862AbgDDECo (ORCPT + 99 others); Sat, 4 Apr 2020 00:02:44 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:34652 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbgDDECo (ORCPT ); Sat, 4 Apr 2020 00:02:44 -0400 Received: by mail-oi1-f193.google.com with SMTP id d3so8149632oic.1; Fri, 03 Apr 2020 21:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HGQtBy/Y1NLvvkMjbES/Jv6f17twJdxb+OF5qTeiXgQ=; b=BIAUI0LBOaQDGKRe47/4i+hAgK3nJrfqyXHRiKf7Kdy82NHFpdIqy5Q6mdiPbEL9Rk FMjiw8VSi0r151xr25Y45fHsuWG6Bf9BzOSPU+TrRtKP9m2pcOZ/Z6T9XgIx7U6Nv/LK Fu/4TQUQxZOi3PqCjYHu8tgeLSFfLz9iwTvyaExLwY+I2J40kN5zoEmzGN7CbuWACbRF DameoPYfbrTT3ypa95xXmSA/KLPbDnLNAjOiOF87ZlEOSYl3t2aLEC0YN8QU+GlnoROZ hJrxStMcGA0053Nt22EhgFlXly8JB6Q83SMJGbA4s327TFoudZklfH3Z0wnaeENqx6Tc FnTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HGQtBy/Y1NLvvkMjbES/Jv6f17twJdxb+OF5qTeiXgQ=; b=p3hwU1lIx8Rsopi/twFsXize/9UsrAY/D44yUQ2h5jbvw3KzoEXL1X3ImqU/FrNwPH ppc6dZNFY2q91mx3ThDnzWCV3MrUNdVQRcecXSkQ8yht3dAKqSXxkZ/F8Tesu+/xFbg7 F/ukomYG0xAfEztJyAZHZSg57+Pi8w+9rSjkdE+1vGk9KTPdLU6wkdfTND0FAUs7SrJ2 K3W0V7vWxjPuMcA2zF9n9Jfxy+b7h1jKk4LfEyCJBSiCBgoEl+D53JU14vHXPnt4lhn9 o3vkrsh5Z1tXdV+lvXkHGRZLoLTQ91919IGbaQLV+NF2QXIbbhCP4cuL/Rn7VOBqVT31 E6jA== X-Gm-Message-State: AGi0PuYS8SMqBqYnaWtGyqLRl5xnRYMhka89T/vmQZqefdGzJoHkiO5v jxO+YU4d1ucdG6w5k7mfjlw= X-Received: by 2002:aca:5c44:: with SMTP id q65mr5623823oib.139.1585972963355; Fri, 03 Apr 2020 21:02:43 -0700 (PDT) Received: from ubuntu-m2-xlarge-x86 ([2604:1380:4111:8b00::1]) by smtp.gmail.com with ESMTPSA id t3sm2719866oth.0.2020.04.03.21.02.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Apr 2020 21:02:42 -0700 (PDT) Date: Fri, 3 Apr 2020 21:02:41 -0700 From: Nathan Chancellor To: Kees Cook Cc: Masahiro Yamada , Michal Marek , Thomas Gleixner , linux-kbuild@vger.kernel.org, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kbuild: mkcompile_h: Include $LD version in /proc/version Message-ID: <20200404040241.GA41628@ubuntu-m2-xlarge-x86> References: <202004020117.6E434C035@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202004020117.6E434C035@keescook> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 02, 2020 at 01:18:37AM -0700, Kees Cook wrote: > When doing Clang builds of the kernel, it is possible to link with > either ld.bfd (binutils) or ld.lld (LLVM), but it is not possible to > discover this from a running kernel. Add the "$LD -v" output to > /proc/version. > > Signed-off-by: Kees Cook With this patch + Masahiro's fold in: Reviewed-by: Nathan Chancellor Tested-by: Nathan Chancellor