Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2055297pxu; Tue, 24 Nov 2020 16:03:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJze4YHYp9kTKQFDwuEP5wnGu2zqkYaP24VXQhJImotRIstS5ysr3q6doXOeHlOHupX+bwQ8 X-Received: by 2002:a17:906:d41:: with SMTP id r1mr814099ejh.383.1606262597489; Tue, 24 Nov 2020 16:03:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606262597; cv=none; d=google.com; s=arc-20160816; b=OkudpfRYJyndwFaBUnzXMzt8V9UoztVHZRG6tv78muKeKEQzyZJmJjv0aqyY5OrlQo cW0MrgRxOcUdy1kqkKByIFJ3YW+h+6p6cp3GADyRK/1z6pnOGODZvIJ7pI5ZKVF4auoK dms+0JOm8VCqTr6rtxpWA2A1u13E63B/pQEg3nnt1fTqPFbvES00TvEdIP9JlOEyiia0 lWCKO/GRI2YJ0wqV+RkO0YRQni5/Gq4azCfZxRWso52bVhxR6AOZjTubOnPtpf8mTlJu XVsJToCGtyOztdn+j9vtkVUhqMnip/62evv78gXQkYQ/j+AGXUQhqnocmVFYYZOP+e7u CeFQ== 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=pJHeWjaBdZwomXBYbMExLuGxVcJ2kE2YHepOItpGyl8=; b=gNT89lSBntmWurWv9Qv9AT+DURdbNzES/ruVU0Fsu0yAY5UwnJAGbzLepqPRZDkeW+ NOtSkHIwA7NnF1FRoN60yfyN9EpI9HZ2gmBsE1SQgrDafsCy4IJ4dDPE4uJHRo/+UJ7Q T/4F9O4altjpMjWDEPCMYPtzt6P7FmjiKvmGANezseKG/OcwqWRCSY5fCJ3drt9gqNm/ bLePE6mPETxymdbb/cw9Npa95J+gjBjbEwZAcCD9bpkBsew9LzLwSrarVZwdiGT5jhv8 GgYlUjBmG4TOXpncOmdqEiBdMhQWwkRpX/fhSkG7mVrgnTaKZbkgeNToxOeG5F9T1Hao PI7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NfPq1wTh; 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 y14si169380edq.407.2020.11.24.16.02.50; Tue, 24 Nov 2020 16:03:17 -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=NfPq1wTh; 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 S2389458AbgKXWWe (ORCPT + 99 others); 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-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