Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp353421pxu; Tue, 1 Dec 2020 12:59:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxF7/YujGrLRjeERwq6lbnOj+XK0WOeeP/7rQOr7qb3IKjkV0U4/h9+p8UeefMXE7NiU2DA X-Received: by 2002:a17:906:70d7:: with SMTP id g23mr4927465ejk.443.1606856354147; Tue, 01 Dec 2020 12:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606856354; cv=none; d=google.com; s=arc-20160816; b=EY+CEdiRnZA45wXzg2GmKXmszD9wg9R6aD3iy2DlSr+6z3V4dmAp7I2kgdEpv9MVvF uoYSC5kYr3eO6xpxlvsyISwLCD7XyM1qN7dI8S2kbj9ulIVcN57mxV6JQKC5VZWutI37 nBSltHwsbedkW9l3OM17+O54gGb+sicXTMcy5siKSFU4f7q4ACaWWccfBEHrQNxDNmHX 8RrpDSrEK7BoKfEaqQR1Jejm6Inued3byHyuw3PBQSvrQbJ4zGAxwYkmRXDlWlIYKBGk 6+YiV/g/KLNLWWaT0NQ6b8TBzjjwt7TF+Z88KeqAYgNeSiCnciQDxic2j/ve7SJybPaP aYuQ== 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=jvZxaR1uxdRFvn7XeforUrhpQcomda06FE9z8v9SF+I=; b=qCSFs5LDAMfJKCaMbIP+DchohAgAFZ6WTxS0lttVsj6LkeX9UXIdCxBSSz8PKso01J o+QgyLq0OtFHxUNkqElwfGYgDUL2tHxXTcvexFIfe1vsBh51wRTtOjt33Ulh5G9e94X8 clGnGn995MKye38OFKt1Byt6xe/hTrK9uu3PamCtJc98c7PA72fGLspWt7uIhOeWS58V XeU9AXWWIMVe2bVkMte04apv8Of2kxLX5hHqf2aAF1J5fKfLPWuZ5Dfv+dqLLgXmX72q u0h43mPZykI42ytyiGImOUUg5gbz9jUxBFarUOo9q+cTNd0F6SecIZWXaojnjJ6WKizj ESNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TFwSRXZw; 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 w17si653964eju.619.2020.12.01.12.58.50; Tue, 01 Dec 2020 12:59:14 -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=TFwSRXZw; 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 S1729351AbgLAU4p (ORCPT + 99 others); Tue, 1 Dec 2020 15:56:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728145AbgLAU4o (ORCPT ); Tue, 1 Dec 2020 15:56:44 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A2B0C0613D4 for ; Tue, 1 Dec 2020 12:56:04 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id w187so1944567pfd.5 for ; Tue, 01 Dec 2020 12:56:04 -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=jvZxaR1uxdRFvn7XeforUrhpQcomda06FE9z8v9SF+I=; b=TFwSRXZw8tzrXF6TjZXpiOFHg1eTcIgsU/gnBsZvwrvBMi/VZtwhWsjJP6MDcyV7Xq EY1E3QlJDD2LP1zBZrGfMVxa/86yeHYBcTCHMhgcRUuE1NU55SXri1WRb5qI4RcXvbGK JWM4/WDllREpTawjswqFJddFIBj+qQ75I3XUk= 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=jvZxaR1uxdRFvn7XeforUrhpQcomda06FE9z8v9SF+I=; b=XXmThpiQKR725wFYhuYXmMmP0rNDCGdriBXzFGdWo3nxmH1zuKpdIE3Q9ZlK1rhZPB k8UK/sMq9KhBTZbxi/Ogpp/EOqi9fOWRBY40UlZVplweykfri3SyVYLyvDpDn3rVlxGz QZqZ6pDRUpmoTppA3BrjDr8Ysm+O0AycJ4YqLXTtx/bsPCq/0sS5SHGWVbkr/W6rg7GP Bl3BJxRn0azze8QqIMZEmV0sao+S6lIucsajp01SH+/3jwDOQqV41ncJ9ZQE31UI7ygY xzxmYL3HpAgdJK75hxa2oe//7s4Gq9lNkvmnzQnI/vlGtMDiPysxrU4d10ZQo3utxJi1 aquw== X-Gm-Message-State: AOAM533zGpDP24AYVQLBe6uzDRiiO4Ox7zX+LEhGm30z76PZJSuhz5at L7H7HDyOPxS1UGYyy9DphK9IvA== X-Received: by 2002:a62:293:0:b029:197:96c2:bef6 with SMTP id 141-20020a6202930000b029019796c2bef6mr4299536pfc.62.1606856164000; Tue, 01 Dec 2020 12:56:04 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id i26sm597443pfq.148.2020.12.01.12.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 12:56:02 -0800 (PST) Date: Tue, 1 Dec 2020 12:56:01 -0800 From: Kees Cook To: Masahiro Yamada Cc: Nick Desaulniers , Nathan Chancellor , Michal Marek , Russell King , Catalin Marinas , Will Deacon , Michael Ellerman , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Arvind Sankar , LKML , Linux Kbuild mailing list , Linux ARM , linuxppc-dev , clang-built-linux , "kernelci . org bot" , Mark Brown Subject: Re: [PATCH v2 2/2] kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1 Message-ID: <202012011255.9D677ED3@keescook> References: <20201113195553.1487659-1-natechancellor@gmail.com> <20201119204656.3261686-2-natechancellor@gmail.com> <202011241421.A2F3062A70@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 01, 2020 at 10:31:37PM +0900, Masahiro Yamada wrote: > On Wed, Nov 25, 2020 at 7:22 AM Kees Cook wrote: > > > > On Thu, Nov 19, 2020 at 01:13:27PM -0800, Nick Desaulniers wrote: > > > On Thu, Nov 19, 2020 at 12:57 PM Nathan Chancellor > > > wrote: > > > > > > > > ld.lld 10.0.1 spews a bunch of various warnings about .rela sections, > > > > along with a few others. Newer versions of ld.lld do not have these > > > > warnings. As a result, do not add '--orphan-handling=warn' to > > > > LDFLAGS_vmlinux if ld.lld's version is not new enough. > > > > > > > > Link: https://github.com/ClangBuiltLinux/linux/issues/1187 > > > > Link: https://github.com/ClangBuiltLinux/linux/issues/1193 > > > > Reported-by: Arvind Sankar > > > > Reported-by: kernelci.org bot > > > > Reported-by: Mark Brown > > > > Reviewed-by: Kees Cook > > > > Signed-off-by: Nathan Chancellor > > > > > > Thanks for the additions in v2. > > > Reviewed-by: Nick Desaulniers > > > > I'm going to carry this for a few days in -next, and if no one screams, > > ask Linus to pull it for v5.10-rc6. > > > > Thanks! > > > > -- > > Kees Cook > > > Sorry for the delay. > Applied to linux-kbuild. Great, thanks! > But, I already see this in linux-next. > Please let me know if I should drop it from my tree. My intention was to get this to Linus this week. Do you want to do that yourself, or Ack the patches in my tree and I'll send it? -Kees -- Kees Cook