Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2029310ybb; Thu, 2 Apr 2020 11:43:39 -0700 (PDT) X-Google-Smtp-Source: APiQypKJGoF/hWoaO0k/3yKLSvjch/YuUjq3a4b9leVyhdVcyBtrQV2j5YbidMAJtOfZTpUgDU8v X-Received: by 2002:a9d:a6b:: with SMTP id 98mr3382195otg.21.1585853019538; Thu, 02 Apr 2020 11:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585853019; cv=none; d=google.com; s=arc-20160816; b=yZyGGciwIWToQCTYnyxmYy4Qbc1HFoTR6voWPkR6zU6UeuIKX5NCGwXZOlGeTzeblR mS+q2xR7IlMdSszXIrWe3Vl2ucVtC7P29zbnXjzfC+eVkwOVrrsuBl8NL1yCBNpfUtEk Cgkcjnip7N9BYo6vaqblCmVbBvGCKa7o4+Z9mYCQ9nVKeMwQVaVWn0yMFXerctiH4kjE 8RUVLXjFi+b8VbFs1eDpQwyG3iuTiP1C2MdpQl+GTMhR20pWxCetPt3uOPSdAxtDmKT+ PD6u/WVMuPzq1h/wJty1OukEBHAjffVzOl4QAXPdsbF1MsFCISfgRIZRYZR9yFdtrRp7 /MdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=kZGuI29ZXRMYLlFqPcGnn2ZEpsArv5KS+IfYEt8rJDE=; b=ZIGXp1juP4IqjElx22UMaaXijHwTZLiyhqsDOTdV/TxOc8YKfZHmy5qpL+pPoclTe6 isqr1ZH+sjXacux1FYMqCl9Kp38W7gUoNMYSxa6Z9X5vOgRIFApDLzcHYzz7oAl82GxA xnfPkvsp+U3KTIFM4xWVbhcfCUuDYZ4E5f+J6S2H9bgsFkm7+IdM0BQ4fXrReM3Mj5Pr SEGhQD2coGC1W1BjOLQj6M8F+3B7NjmGKnkfqqdra74T4Q3CPgSl0k4DY/HVubTJKnQW eDWa20MysNbpY547Tvz5PzTk0erp0SXPjXaxSflp2iyir0cHDP9FQybPejGjcDioG6mf AnsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="jHiZcgy/"; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21si2693932oia.257.2020.04.02.11.43.27; Thu, 02 Apr 2020 11:43:39 -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=@chromium.org header.s=google header.b="jHiZcgy/"; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389521AbgDBSbL (ORCPT + 99 others); Thu, 2 Apr 2020 14:31:11 -0400 Received: from mail-pj1-f65.google.com ([209.85.216.65]:39328 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732330AbgDBSbL (ORCPT ); Thu, 2 Apr 2020 14:31:11 -0400 Received: by mail-pj1-f65.google.com with SMTP id z3so1832500pjr.4 for ; Thu, 02 Apr 2020 11:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=kZGuI29ZXRMYLlFqPcGnn2ZEpsArv5KS+IfYEt8rJDE=; b=jHiZcgy/2u30npHwDtjgCz/jYSsE83IkRbOXE5Io/gv1QNhpRoRnWFd6XA0HVEyK6J a9CMWCnII9zcMVEj+hLYILZ8NPkiM8WtOYpQdjzOVibuUBfbzWBNLJVl33/ivEjarjBV +WHBYHaX9sjAsbujCfwN1A8OE3jwzbZ5I5H9A= 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; bh=kZGuI29ZXRMYLlFqPcGnn2ZEpsArv5KS+IfYEt8rJDE=; b=YaURk94eKTrA2N1db9J76pw+wo8O4Ykjw5EomjySY1U2cGCEB536kXtoYuuOwD+9tc Nk+Cc8O1ptAPbyMQHxmJH4EGImRjUQG4IHXF/Oj13wRY1+YZ73qqWxazDbkXkacIutKm juoCN+EvjsQ1oJcutlJDMeZhmZPsCw5RJUrOVTXbif3OhNpRWPCuzrbnnWXWcMTwJLBY LYe+eRQx3fUgfDCVHmxJObXQvAqaEaQ8HKr8xTT3XQi4BzKptahvibzPIuJ0mZKcIEwo gGmMsmu+1fSgnIiwFOere2LIY6RuSeDYt1e9G7gjq+tA65kqVX4R8q4Ckabuj8Evlaz1 RaDg== X-Gm-Message-State: AGi0PubIg35MVuDf9EfqxteIMbLjvoPGYlwzq+vffoaoGlDGIRICaUY7 U90PT48qE1ZYyYrsKf/7b0GWvKTKs+8= X-Received: by 2002:a17:90b:46d0:: with SMTP id jx16mr5148235pjb.155.1585852270186; Thu, 02 Apr 2020 11:31:10 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id z15sm4267487pfg.152.2020.04.02.11.31.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 11:31:09 -0700 (PDT) Date: Thu, 2 Apr 2020 11:31:08 -0700 From: Kees Cook To: Nick Desaulniers Cc: Masahiro Yamada , Michal Marek , Thomas Gleixner , Linux Kbuild mailing list , clang-built-linux , Linux Kernel Mailing List , Sandeep Patil Subject: Re: [PATCH] kbuild: mkcompile_h: Include $LD version in /proc/version Message-ID: <202004021129.F688E2D@keescook> References: <202004020117.6E434C035@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 11:22:02AM -0700, Nick Desaulniers wrote: > With Kees patch + Masahiro's diff applied: > $ cat /proc/version > Linux version 5.6.0-rc7-next-20200330+ (ndesaulniers@ scrubbed>) (clang version 11.0.0 (git@github.com:llvm/llvm-project.git > 6d71daed03ced011cd25f4e4f4122a368fdc757d), LLD 11.0.0 > (git@github.com:llvm/llvm-project.git > 6d71daed03ced011cd25f4e4f4122a368fdc757d)) #167 SMP Thu Apr 2 11:17:36 > PDT 2020 > > Reviewed-by: Nick Desaulniers > Tested-by: Nick Desaulniers Awesome! Thanks for testing. :) > We could actually use this in Android for a VTS test I've, uh, been > meaning to write. Also, LOL at scrubbing the "compatible with" part, > reminds me of user agent strings in the browser, which are god awful. Heh, yeah. That's there because (actually, I think _you_ told me this when I asked during the ClangBuiltLinux summit) other tools scanned the LD version string for the binutils-specific bits. For this, since it's newly added to the kernel /proc/version, nothing is already expecting to find an LD string, and it looked super weird in there if I left it as-is. Hence, scrub! -Kees -- Kees Cook