Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1143065pxb; Thu, 4 Mar 2021 04:35:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgTfU147BYw7ARlxeLgOEotvyClQRd6Qj6w1fJppqXyODtOdtyAFSJuKdz1gg3kVUGf+lx X-Received: by 2002:a17:906:3881:: with SMTP id q1mr4011795ejd.490.1614861351816; Thu, 04 Mar 2021 04:35:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614861351; cv=none; d=google.com; s=arc-20160816; b=TZ792HuMW+LVz2RcAza3VUJP1WcwZLwNzAvwC52o46EveStBv7B5yS2Bc5GY/Sdhh4 WduwzyoH5n1x8m/7HPupgo70WD/ly43Qj89jr7laymhkLMeCyXiQI4ahUT89qp6fIQ0Y 7cAyG4gYW6eQ4Q4JxZJPY+1cCP8wdEGURZ63VV785XRDba3SpIXad6xHGyLjXNYUjKYG 1pJICjQ9dqdTemCB4ZKQWBw0eC21sqc7zDWCufKSOmhkCosEanV7WOJO0jylBfRWblEg llA5qI8T8F3/6QzwxY6UpHC9UIZpgjdrU5Qx6e0NLYWtUm8BWkADk4N9W+zUG2cusLW4 S/3Q== 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=bz4CI8McQx8p5ZXoYfBIb+l3Y+3kXiSbTdBrsMcZ7oY=; b=pGKC1YKgwYcfv1SONWhYRj20dAIaPSj0J3wDICUg1MPe+Jj914SokKUxSnAM3SlRK3 9t6n1aoAdNE3XRgWMQCXseXqPyuYeyGH3seb7y03ZguDl/Bx59kYVlml9qrOxQEC1y5d QqLWQxY6jgwPQOcMNufohJeo5A4vd+AFCyExMiWRP8kF8vt2zJQOzNJ0JJTWEiItvJ00 pQpgUaaIk7sa4FO2BdTnCUpyxiytA+gJLZ8wKnvf22Sby6+9Uzccm80gxHoIUhe5oG+T q7ODb8lPGRjgVwDR3pt6CBCt3SxZDAG1Xtqs3LJiamScGlY2jBe6TLi1/fC+OqMllIbh 8GEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MzVEhKhw; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h26si14652610edv.198.2021.03.04.04.35.29; Thu, 04 Mar 2021 04:35:51 -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=@redhat.com header.s=mimecast20190719 header.b=MzVEhKhw; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387758AbhCCTd3 (ORCPT + 99 others); Wed, 3 Mar 2021 14:33:29 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:43818 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387218AbhCCTQx (ORCPT ); Wed, 3 Mar 2021 14:16:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614798927; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bz4CI8McQx8p5ZXoYfBIb+l3Y+3kXiSbTdBrsMcZ7oY=; b=MzVEhKhwIJ70Rahy3Kz2UmOn+jFioJWHkI+tvl88zc9iA7Oyl2rsdsXLY7BKRhLQmmzPh5 37Mkjj38vJcgY9FGXFMKoho/LPehJQsuJSTLJcPzF11BaUhJi02C0y/95v5pk+WCBwdcJg +YIHLBzEBxBEJGvr146YJ0KX9jfsUBc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-116-METF-eXEMFmv3tb7sfismw-1; Wed, 03 Mar 2021 14:15:23 -0500 X-MC-Unique: METF-eXEMFmv3tb7sfismw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6BF4A9F934; Wed, 3 Mar 2021 19:15:21 +0000 (UTC) Received: from treble (ovpn-114-218.rdu2.redhat.com [10.10.114.218]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E3D4E58821; Wed, 3 Mar 2021 19:15:18 +0000 (UTC) Date: Wed, 3 Mar 2021 13:15:16 -0600 From: Josh Poimboeuf To: Masahiro Yamada Cc: Linux Kernel Mailing List , Michal Marek , linux-hardening@vger.kernel.org, Linux Kbuild mailing list , Peter Zijlstra , Justin Forbes , Ondrej Mosnacek , Frank Eigler , Kees Cook , Linus Torvalds Subject: Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules Message-ID: <20210303191516.6ksxmng4pis7ue4p@treble> References: <20210302232649.y2tutffhxsblwqlb@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 04, 2021 at 03:49:35AM +0900, Masahiro Yamada wrote: > > This problem is becoming more prevalent. We will need to fix it one way > > or another, if we want to support distro adoption of these GCC > > plugin-based features. > > > > Frank suggested a possibly better idea: always rebuild the plugins when > > the GCC version changes. > > > That is just another form of the previous patch, > which was already rejected. > > > - That is a hack just for external modules > - Our consensus is, use the same version for the kernel and external modules > > > > I use Ubuntu, and I do not see such a problem. > (I have never seen it on Debian either, except sid.) > > I see Fedora providing GCC whose version is different > from the one used for building the kernel. > That is a problem on the distribution side. I don't understand. Are you suggesting that a distro should always release GCC and kernel updates simultaneously? How is this problem specific to Fedora? Please be specific about what Ubuntu and Debian do, which Fedora doesn't do. Adding Linus, who indicated in another thread that we shouldn't force exact GCC versions because there's no technical reason to do so. -- Josh