Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3661253pxk; Mon, 7 Sep 2020 21:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIvKlchie8kkH9inRk54Af0zwwVjV3v/cRjGByGyKYX1UsuhaDeJ0wNmC2J+ZsVP2awyix X-Received: by 2002:a17:907:110f:: with SMTP id qu15mr20875868ejb.359.1599540217490; Mon, 07 Sep 2020 21:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599540217; cv=none; d=google.com; s=arc-20160816; b=Ab5ZUiMhmTKegsfKAX2ziKUNvLpkcTiOKn3cT6WwAAQH6li5FlN6CDRBghzeKIIDUO oFgWNk/+JABaUpD72koGvzaRlV5Ymhna1aY4FSMIdLyhAOa6IFWWiWGvK+wPp5bIDA9U jnVqvibXU2+SIpEWDj0IRa13c7Y4DJkk/3+jd0PnjM7yqgMtet98IdWEqq5ZG5NNiJKs WFhOEsRqfR0viV4nkPQp3WREayx6wCqDbaZ8DBobsxpDhcHtnzAnvsUr2gt4ofrgEnjh Lhx28Mi9NMxAo+F4Fq8weuDxmNFtQT5nkjwjorAR2rthiWO3B5iUHyMQ0jkxthdkkjFW Yf/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Uq+qFUrJ5V3Owi968MrkvbmJ4ZL9M9F0MoSjvYJeOkg=; b=zFasbsDkYfhgYHz4yvQwWLq8QR29OSHqzZ/EttFNwmBVgndXsviNDj9FqCk2/RqYsd K2Hzs1PH0q1L4MCD6V/Y3o4DMm+RLFpGfajA6jGAcWk4MXuwGJg3ZnGN3IPuO/FMBWsz NVcZUsx/M9/z7N+E9s92eGvALCjhKd5KZ73GdSL0hlL/sXd0/OavwowMJvQhj8s+pPoH z/yt7E+hpWg/HDkbfsLojHRYfLUbCz3IzhDuDU6NZ5x6h+uV9XOhqo4J0WufvhPNQxfQ 3YqcanrbA4+Le666+cutyQxGai2QOuVXok6w3dtIngT+IthOmxMGI9/ENfpUpxPq50DP 4/SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="PL/xrscW"; 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 pw5si10669460ejb.513.2020.09.07.21.43.13; Mon, 07 Sep 2020 21:43:37 -0700 (PDT) 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="PL/xrscW"; 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 S1726364AbgIHEma (ORCPT + 99 others); Tue, 8 Sep 2020 00:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbgIHEm1 (ORCPT ); Tue, 8 Sep 2020 00:42:27 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E81ACC061573 for ; Mon, 7 Sep 2020 21:42:23 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id f2so14247413qkh.3 for ; Mon, 07 Sep 2020 21:42:23 -0700 (PDT) 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=Uq+qFUrJ5V3Owi968MrkvbmJ4ZL9M9F0MoSjvYJeOkg=; b=PL/xrscWG5Ye5/vZMkh5964OctYckdksblwZvxTmONwsMvw5r9zAABOWZjw5krdC4V T9M5QrFRLV7/3cFVTcAeHG+SrheEdLZ7fYLnrkXiIUuTQgGX85hTO9PQJnZmc3XlKdwP +OkykUcfSAuoweLyzc0FP4dw9QtnL9h/qxbWeJE0SMn2rCxIsAUhQpdfywSFBQZJMMEk 0IMLE/cDxdx0kSjr0LvAPPhEKeIcE4MtOL6WN8bQosHvJyGf3AvxnF/q7GQQmadfMyVP U3zASd20RBOVFt7Yo5YXIKU1/Kct83KCB4RVKg6S26c1ErXs+TO/gmD1LguXREUfrD2r Cklg== 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=Uq+qFUrJ5V3Owi968MrkvbmJ4ZL9M9F0MoSjvYJeOkg=; b=CatTJ4a6FlrkE9PPMh1sn16dyzu7rrPXaX+HVJkLrzLjHxjrRcnYr8JqgYsF+5Rpb0 +r1J5FE7BrbnfK7Y+afAlJcSK0OgGvm+MHKWHLHOBS+5LvdvrnI/tpbDZIB7qQ0bjTp+ BuuYzcBxJkDIs/GDApl+NM3g1q6txNZ94reX7rsX+QmRMLGApRga+eYyeOPiuLOUKdi0 VQT/qwQv19F4Wjyciolwo+GXqXHkY98N+ocEVhgUYOZASSGnrY83I3b6eX1iKu1N0X44 OGeyVjt6e8SPOdcoU1ssDf/xoWZfGj6jxrb25evstMhboAsoGs6XIFFWZfuGz5ojkFZl C2ag== X-Gm-Message-State: AOAM530zeNCqutnesR+Sst2737nQrIGyZD9L/3ybAbSd0sg93rggTgv5 ZJBwkFKezUUc9nEzq31h/pc= X-Received: by 2002:a37:9c55:: with SMTP id f82mr15084616qke.123.1599540140881; Mon, 07 Sep 2020 21:42:20 -0700 (PDT) Received: from ubuntu-n2-xlarge-x86 ([2604:1380:45d1:2600::1]) by smtp.gmail.com with ESMTPSA id q35sm13514397qtd.75.2020.09.07.21.42.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 21:42:20 -0700 (PDT) Date: Mon, 7 Sep 2020 21:42:18 -0700 From: Nathan Chancellor To: Arvind Sankar Cc: Nick Desaulniers , Andrew Morton , Kees Cook , Miguel Ojeda , Sedat Dilek , Marco Elver , Andrey Konovalov , Masahiro Yamada , clang-built-linux@googlegroups.com, Daniel Borkmann , Alexei Starovoitov , Will Deacon , Vincenzo Frascino , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/7] set clang minimum version to 10.0.1 Message-ID: <20200908044218.GB1422621@ubuntu-n2-xlarge-x86> References: <20200902225911.209899-1-ndesaulniers@google.com> <20200907161230.GA2149325@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200907161230.GA2149325@rani.riverdale.lan> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 07, 2020 at 12:12:30PM -0400, Arvind Sankar wrote: > On Wed, Sep 02, 2020 at 03:59:04PM -0700, Nick Desaulniers wrote: > > Adds a compile time #error to compiler-clang.h setting the effective > > minimum supported version to clang 10.0.1. A separate patch has already > > been picked up into the Documentation/ tree also confirming the version. > > > > Is 10.0.1 actually required or could it just check major version? I have > 10.0.0 currently and at least x86 seems to be building fine. > > Thanks. There was a decent amount of effort put in to testing LLVM 10.0.1 and making sure that it could handle the kernel. I know of a few backend errors that were fixed and backported to 10.0.1: https://github.com/ClangBuiltLinux/linux/issues/944 https://github.com/ClangBuiltLinux/linux/issues/954 Plus there was this rather nasty ld.lld crash in 10.0.0 that just x86_64_defconfig triggers with mainline: https://github.com/ClangBuiltLinux/linux/issues/962 I do not have any strong opinions around checking just major version but I would prefer that we stick with 10.0.1 because it has been tested against several kernel configs unlike 10.0.0. However, I know that Kees mentioned that Ubuntu 20.04 shipped clang 10.0.0 and there is no 10.0.1 available yet. Presumably it is coming down the pipeline from Debian since 10.0.1 appears to be in testing? I suppose if 10.0.0 is shipped in multiple places without an easy upgrade path to 10.0.1, we should consider softening up this version check, at least for the time being. I just worry about duplicate reports. Cheers, Nathan