Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4189915pxb; Tue, 17 Nov 2020 13:54:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzx3bymme+mjUMLzWdOoqi5b/+DLXUmo2SISH3xL3gb4bWzWGooZ1JXDtWjtySQ6eGnmHra X-Received: by 2002:a17:906:af47:: with SMTP id ly7mr22403117ejb.532.1605650048534; Tue, 17 Nov 2020 13:54:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605650048; cv=none; d=google.com; s=arc-20160816; b=De+9eeWxgGNov2ytea+cDGLTDYGaEdyAUpKKqMXSeegW/D5dwJW+yaKTMKtmYPk4/z N48vFXO227Zn7EMeqskd6YeRNDQhJeiAD4k33pNQWJUSDUWq5H/eR8sDIj76MGx31HcT jwvMoMRXpfe/P4HR2OXJ73F+MGg/f31bZAhwMWt7C5zGmzYczoXE5rLWOtAatYJZrmaG wdeplds/iKpVwFrXD3oORO1WYpJezaHh/8n+ocg8rH9eusS/LoXwQCv5S8yje76z6pdJ z38iAOKm58j58ytZNOYmkdYiQkM5Qd6ODXoIyJBP4lWEYw+GpxYR2C+MbVZ3m6MwV55V Jy6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ky/CMCEHw6W83Pli0RSEtI4judjYnXP8NLTqyncoiBE=; b=uyepV7zZrDyLBMlI7JJMExyPGIT04wb77Jop2L/jq4bUI9Tv1gVCsS0OGeH57q9dFX ClEiR19aH8RtZn2ZrEWMLIhsxvQX9x01+4VgnD3+KzrV5utrY71ZarHXQXVt3D3ljEB/ sW7Qz1AmDNq+MNXnim7yMkpMTICD6NWBWbFwbDgNJsNfUz2Z0bfAxVxWg5g88HvEJQKr HQwwuijhkKLhHfLR/OIXMidiw77E1pzzqhXHrR5+OUeQtbcR51Xe638hhMr2JQhkof3P hlv2mqBzutlObnSrJvE3oihdqzNFDVvl/bDe9vU93yKFZ8Zf4OPtv8lDLA3Ez0ldDsEJ 1kSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dZSJWDKn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ar14si111996ejc.237.2020.11.17.13.53.44; Tue, 17 Nov 2020 13:54:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dZSJWDKn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728502AbgKQVvq (ORCPT + 99 others); Tue, 17 Nov 2020 16:51:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727701AbgKQVvq (ORCPT ); Tue, 17 Nov 2020 16:51:46 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C6FBC0613CF for ; Tue, 17 Nov 2020 13:51:46 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id q28so6408269pgk.1 for ; Tue, 17 Nov 2020 13:51:46 -0800 (PST) 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=ky/CMCEHw6W83Pli0RSEtI4judjYnXP8NLTqyncoiBE=; b=dZSJWDKnArBdBXCgAIPNiaxvh5LCZwCDL6Ymkj44p0R8yL+KgQAfKZKf1lt2KfdnvV bLD1xeFdcoEmB+Z3tmSxV7RnFUrRITgkpS48Ri05VZa2xyqn5gWggufKXfTSH6J5m6de NMkUQrd2oc7jz3d1V4DoMoucn5sXNnsH3BN6Y= 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=ky/CMCEHw6W83Pli0RSEtI4judjYnXP8NLTqyncoiBE=; b=RY0DsNNvstfv3KPE50VA4sb044HgABR2Fcjm7Dtk867J6UPehZ+W2E7PcmYz1Lubad fYxD0FZsy6g6LcHDsxFOjTT2NI8bydXkEjZuk4chT8NYKUWS5o683AeEwb2S+eA7JEXm N6s2gFxOxYIyiNNt3FgBntrnLXRRhAglVl+NGYkj6MmFoKMG/+M7X+rSHW0fxx3JEBF1 XqQaxoRSvFqlZpv656s71kyVt3KRLORt2nDOeH2xH8Mggbi+x6TsQmi/axlL8jLVcW2s MWK5MTA2PhywFn21SUDrd+OTtnx0hC/ti2OCLFg1QQANq0CDlQHFX8nnGkV8js8LV8LN DgdA== X-Gm-Message-State: AOAM533vZNXRuG1D83vqp5bmDVIAsBehJnI90mSyf3vNcdicEnntKfR8 P6IEUCUxQbot2FxkqUO1QGmunw== X-Received: by 2002:a63:7847:: with SMTP id t68mr5290408pgc.422.1605649905676; Tue, 17 Nov 2020 13:51:45 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id m9sm42912pjf.20.2020.11.17.13.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 13:51:44 -0800 (PST) Date: Tue, 17 Nov 2020 13:51:43 -0800 From: Kees Cook To: Nathan Chancellor Cc: Masahiro Yamada , Michal Marek , Russell King , Catalin Marinas , Will Deacon , Michael Ellerman , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Nick Desaulniers , Arvind Sankar , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, clang-built-linux@googlegroups.com, "kernelci . org bot" , Mark Brown Subject: Re: [PATCH 2/2] kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1 Message-ID: <202011171350.F95127F@keescook> References: <20201113195553.1487659-1-natechancellor@gmail.com> <20201113195553.1487659-2-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201113195553.1487659-2-natechancellor@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 12:55:53PM -0700, Nathan Chancellor wrote: > config LD_ORPHAN_WARN > - def_bool ARCH_WANT_LD_ORPHAN_WARN && $(ld-option,--orphan-handling=warn) > + def_bool ARCH_WANT_LD_ORPHAN_WARN && $(ld-option,--orphan-handling=warn) && (!LD_IS_LLD || LLD_VERSION >= 110000) Readability nit-pick... I prefer separate "depends" lines to make things a little easier to parse, change, etc: config LD_ORPHAN_WARN def_bool y depends on ARCH_WANT_LD_ORPHAN_WARN depends on !LD_IS_LLD || LLD_VERSION >= 110000 depends on $(ld-option,--orphan-handling=warn) Otherwise, yeah, looks good to me. With this and the other suggestions, please consider it: Reviewed-by: Kees Cook -- Kees Cook