Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp26819pxb; Tue, 17 Nov 2020 19:15:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7iWT++DhPX3CAiF3Ie4lfC6/epDWF2P3VUEJZQRv9+YIQRhQfJaYZPe88XCKywe7hiyHq X-Received: by 2002:a17:906:3b91:: with SMTP id u17mr20717528ejf.499.1605669300079; Tue, 17 Nov 2020 19:15:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605669300; cv=none; d=google.com; s=arc-20160816; b=Us3RrAywUZHf1lLW3puQBKS43b3wN0d+ZCPEgqIzcKqzM6RYPCy2L3Oxi04KP4Av9v 535lZuj/CIiUaCrgsZWKm1XuS40i1G7Dn36kkNGppAlofZXdb3CnZh0/jcKj6B0badtA hEeEJ3z187TipQt6n9MNTfKXEKAYcjp2wTzDfuK4yEcsccP/JASTRQnavZHjKi8LFzBJ 6ioYHFXypygN4TMo0k6ZUw0LeZ9ERjme8AbgJjvalkV8i6aKbEsUGgJTzy2J3qtc88m8 1IIy6aLFMwT1Pu4I6K7BX2AtIohTD7R4MG84W3LDeYp6+ZCekc+dHjnxbEtSxuyS+ncO 1U0Q== 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=HgvttKSz6Ny3sSVlQN/E9G/7G2kWLjw/Bo0sdK0fdRk=; b=UxQ9CM38JYTzfukNWckal5QwnIaxtQmgaovQghJsFnZYOV7Wa9X0USAN5Lm9/KZZUS Oxd0UxeIp6NW31vHkDZAG3YqcKXVCofMgyeRleVYRGoTq+1QFrjISWh0SPJoGqpCGtGP rVabkSQ1mJqpLiZ1Od62NAMfnRtYkrmFj5BkdjtX1lN2zMTAkvLZHkJHFVO2yttxA81x KfiIhBA0K5SipdgTLsRmiEKWp9SECU+UKpTsIaGp5DcTNYb5Ls5W5lJZnpw/9r5gffDc 5wyCirA7gX++eloDsUKPMJ6w1qL4uwBs565h8muDD9vTXjsuvhv/i95SK7gVWLyY0R7S e7gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CWX89Bo+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf25si15861779ejb.435.2020.11.17.19.14.37; Tue, 17 Nov 2020 19:15:00 -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=@gmail.com header.s=20161025 header.b=CWX89Bo+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726980AbgKRDNA (ORCPT + 99 others); Tue, 17 Nov 2020 22:13:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725613AbgKRDNA (ORCPT ); Tue, 17 Nov 2020 22:13:00 -0500 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CBEBC0613D4; Tue, 17 Nov 2020 19:13:00 -0800 (PST) Received: by mail-qt1-x841.google.com with SMTP id t5so673126qtp.2; Tue, 17 Nov 2020 19:13:00 -0800 (PST) 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; bh=HgvttKSz6Ny3sSVlQN/E9G/7G2kWLjw/Bo0sdK0fdRk=; b=CWX89Bo+RFqfV61MMdOpdtn/KsRiAv0G0nWF2X55CWUA3vxzkGmwgNiYrMRFCHUiB/ o0l8A6oe7FDsV+fo36st+m1IqF34qmR/K5FK0pDOVozjatjBMqp+aiaYhnVO0JMvUfmW 97CpMbMaCSWeQsTkCc7Y5BqlIGPIRHqIJ8MMyLx0f2BZz29e282yoOJyhPQM7GjwI+0B XFIC5yRLu6obhArZoDhs4yD0XZ1ZfH5DHBWQytkK5H1wp0zeG5ZF5Fud9EKQk8dX9LqT PSdC1hq90vaC4bpCLuG0I8nY+S/q1MaNGb/xdIbbSpX8361oQ6V/d1/NUfKzZ9vwAtDU 82Hw== 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=HgvttKSz6Ny3sSVlQN/E9G/7G2kWLjw/Bo0sdK0fdRk=; b=rw828WykykCXs00F256H96zNgS8EXdNOnPID9lc18zYLEEeiF7ZxMVwOrubiO3bcWd xPjQHryXonyBGB7s9SwzDI9LB2KX+3Z5/nqA+FxxdaaoWdEI04KvJwuxFX/2rTuxH/i1 +lyDv8rU6TgyQlVvxDjtCZyN0SecZwFWe4HRFYMlmya1m8O7U1PJ6AwmfdgUJE+SnP6X RwmRYTAZB/crSsPin4Lppb5DbEjg2dP8XFISjXp97eycNGop8N1PvnBRH+dr2trD2nXL a6q8JtnsdNSIhpD6pdOHrm5RCcvl/y+Ntwkzs+4TZ1ica9WYZLH+UKcyWvyZXtIlaj3o ZssA== X-Gm-Message-State: AOAM530hthwsdJsWZHmXtj3Uaq8nZC1TqEsDR3ryysngA5lEMUdcD0Kx 8698Qjf2nfwXaPd2oLG5rQc= X-Received: by 2002:aed:2051:: with SMTP id 75mr2388981qta.332.1605669179405; Tue, 17 Nov 2020 19:12:59 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id h11sm15438617qtr.13.2020.11.17.19.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 19:12:58 -0800 (PST) Date: Tue, 17 Nov 2020 20:12:57 -0700 From: Nathan Chancellor To: Kees Cook 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: <20201118031257.GB1001457@ubuntu-m3-large-x86> References: <20201113195553.1487659-1-natechancellor@gmail.com> <20201113195553.1487659-2-natechancellor@gmail.com> <202011171350.F95127F@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202011171350.F95127F@keescook> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 17, 2020 at 01:51:43PM -0800, Kees Cook wrote: > 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 Thank you, I have updated it locally for v2! Cheers, Nathan