From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34FCCC56201 for ; Tue, 24 Nov 2020 22:23:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CE2FD2083E for ; Tue, 24 Nov 2020 22:22:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="NfPq1wTh" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389473AbgKXWWe (ORCPT ); Tue, 24 Nov 2020 17:22:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728733AbgKXWWe (ORCPT ); Tue, 24 Nov 2020 17:22:34 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1495CC0613D6 for ; Tue, 24 Nov 2020 14:22:34 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id 131so397933pfb.9 for ; Tue, 24 Nov 2020 14:22:34 -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=pJHeWjaBdZwomXBYbMExLuGxVcJ2kE2YHepOItpGyl8=; b=NfPq1wThF4bax4Wc54yxmbd3O4JURJngGs75IQyFFftNPqrf6BtVI5PUeVLYwXCsWo iINS0pl5vQHCGOwgdZb5X9Rm99q9n5neOK2PswQDMPhiN/xxNK+OCDBrF0NViCRYw0aQ brlxC/ZOWDeVXmRX9wEDJDnc6oU2xWI9oxtps= 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=pJHeWjaBdZwomXBYbMExLuGxVcJ2kE2YHepOItpGyl8=; b=gk7xN6alz+IJ6OHJi8jC+zDO33MYhY94s73Jh5nP2+2cq8puF2v7fNTIkH+cfEWiPP UE+jcnk2VaR8M4vMTuP+6sSVFzHXPptxE7kd4/DuO5hwNffRLgrR8TzlSDtUfy9nuH/V 1jx0yCQSM2E6uVYmIFhtR+nAY4VkUrqwU2Obi/X03jWOOJouuUR9E4Our3nw8yxrqZxZ xMlh7FagoLlSD1S0IUGYX97MeA0FNTIXyTSwsqCCr3X00dYzEv7n4G0JExH+K7Qjff1x FE3jl2KO1J1bprVFZTLDqXlUMziGonXKcD6XFsXrVuyx40DoCJa+rX89Hz993yArnN6J jbEA== X-Gm-Message-State: AOAM53393d8qRP0eu8/E4JgDKy1sstKbBiaF52L2hwI6yWFP2WYuaCzT +3yLPQhsXdas9N3/b00UA2GSMg== X-Google-Smtp-Source: ABdhPJzzU6ZeykNNsfU1lZsn6jxco0s14as0+LQMRx/IH4f1dYuHck5qrCwgoKmtZ6zQDKyRM8sR0A== X-Received: by 2002:a63:e0f:: with SMTP id d15mr453658pgl.310.1606256553666; Tue, 24 Nov 2020 14:22:33 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id z29sm175922pgc.68.2020.11.24.14.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 14:22:32 -0800 (PST) Date: Tue, 24 Nov 2020 14:22:31 -0800 From: Kees Cook To: Nick Desaulniers Cc: Nathan Chancellor , Masahiro Yamada , 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: <202011241421.A2F3062A70@keescook> References: <20201113195553.1487659-1-natechancellor@gmail.com> <20201119204656.3261686-2-natechancellor@gmail.com> 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 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