Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1144037pxb; Thu, 4 Mar 2021 04:37:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdJkOyxj3obrzxTjwxAD3EpB4sx1BRFAo6KYPhdMsqKw/GpROC/JcmgdI/t3Y4eCmc3sSW X-Received: by 2002:a17:906:1746:: with SMTP id d6mr4128396eje.36.1614861455214; Thu, 04 Mar 2021 04:37:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614861455; cv=none; d=google.com; s=arc-20160816; b=iN8/QVyvHaStxKSwf0ImOonYYcImP9ftYobtYr4/SZZWJVGC6Z0Qg5aFsXEUdsjxNT IPy+wO4lIonpHsqbPUVtJvb8C4AO/FTdpmZ5WZ+OZ8uDzOQyEhEc9aik2595r9toU0Gr nIWWQTouQOS3EnTf9d6aVQkTdkkmf+EVSiT8aJvJVnNYW57dihcub+QeLqslCnY+42GG 98mh51UczGI5cUpws7jolZX5ZmWkukowoswJx3sWCo+9hSP5Ekm2ShXVLB0BEL/wvDx3 wTWpD8n5BtTCFVx4wSyFlzBHZxaDGVhqNa3vWhMtx81FXk3bevc6KKzNDOYqP+EQ/eJX JKvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=P3A2O71ftuJfSYcOjzG8n0G0DSSbzV3fpd6bic7USUM=; b=sOAiItAMtRcnezADmjABSuvwHhJMBv3IOKP97WFunkIW9Ze5HRtn5166pqVi2Mv/WE SVNkRJrgYQ64sy4AKyLAoE2CjEvwGPVqXTXlH9IlF964UpHhpSAJEaJguPTS//JwaliO LhQ15vr/KsBwUNBqEu+BqzYVRP2zXTBcRLdyKK5QAuAu8QKp0suNC2obRxViWZyDIll0 KjNtYrMkL4dRI5kdkQyspiA8L/+H86vQD0nfXRAVVY2bDXDP5j/p38MFt/4A4LIbpDqP Mk2AYcKk1GpkTxYbgHBOzbIzI9X2rVzMLuAwduxyxv87MA+c+I8kJfCtCtsJ84mBZgG1 e/oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=fJlv4zH8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si17583872ejo.534.2021.03.04.04.37.12; Thu, 04 Mar 2021 04:37:35 -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=@linux-foundation.org header.s=google header.b=fJlv4zH8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376627AbhCCTnT (ORCPT + 99 others); Wed, 3 Mar 2021 14:43:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240680AbhCCT0u (ORCPT ); Wed, 3 Mar 2021 14:26:50 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDD8CC061761 for ; Wed, 3 Mar 2021 11:25:54 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id u4so38983614lfs.0 for ; Wed, 03 Mar 2021 11:25:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P3A2O71ftuJfSYcOjzG8n0G0DSSbzV3fpd6bic7USUM=; b=fJlv4zH8GTkwLsBd+qX8OFR+earNuJHiLEuvYOwl3rNwh0Qticl4+a/PHzSKaRifKR wtUSTXlWKZe11OR4eXmAUXXnA4krJ07dpa0WsRUD7tFxvIxX3tWiNeIGVgjRkH9/OaAs dURJsQj/RGcwMDzmA+QLnZtjhPWSZpnRxGwpI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P3A2O71ftuJfSYcOjzG8n0G0DSSbzV3fpd6bic7USUM=; b=dzDUkar6cnIDrEHLV/vldC1RK7J71uO+fpm31VxrU6cBQHR1lQRWoIf5jOiM1sc1io TJCgQyV7YD59qMtZ27aHZgvkZ9HZnCuW1pIZdDGPpsILh85LLqqogPnkXqjEaj3KevdR fWGQC40dWK4sqEZ5eQo/LFsD1yZmTXFLX6dZuVu5N1TjQSAJIPzeUMf4YN4YvCVAtdtN nq2VUjXYD3eX8PjoUb253QO0qkGIXir10A3yo5ofytp8pOd2jwQzlYf13Ig5E7yO3hK3 4ownX+ECjz9SL95E79BVc7dSa9j0MrzGRvdjrSH+HLO0CfRHUoBy4R0EY/TzzS6nBxyW n7og== X-Gm-Message-State: AOAM531qwAEbxVBM9nfnwWHlMQS4CKjuCpc1H0KrbX3fO6g0KwvPfmun GoCAsGz3yYVVktBSJLHAXOXR66M2CaemQw== X-Received: by 2002:ac2:46f0:: with SMTP id q16mr71809lfo.589.1614799552878; Wed, 03 Mar 2021 11:25:52 -0800 (PST) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id g24sm3342869ljl.122.2021.03.03.11.25.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Mar 2021 11:25:51 -0800 (PST) Received: by mail-lf1-f48.google.com with SMTP id e7so39007020lft.2 for ; Wed, 03 Mar 2021 11:25:51 -0800 (PST) X-Received: by 2002:a19:ed03:: with SMTP id y3mr121436lfy.377.1614799550613; Wed, 03 Mar 2021 11:25:50 -0800 (PST) MIME-Version: 1.0 References: <20210302232649.y2tutffhxsblwqlb@treble> <20210303191516.6ksxmng4pis7ue4p@treble> In-Reply-To: <20210303191516.6ksxmng4pis7ue4p@treble> From: Linus Torvalds Date: Wed, 3 Mar 2021 11:25:34 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules To: Josh Poimboeuf Cc: Masahiro Yamada , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 3, 2021 at 11:15 AM Josh Poimboeuf wrote: > > Adding Linus, who indicated in another thread that we shouldn't force > exact GCC versions because there's no technical reason to do so. I do not believe we should recompile everything just because the gcc version changes. But gcc _plugins_ certainly should depend on the kernel version. Very few people should be enabling the gcc plugins in the first place. Honestly, most of them are bad, and the people who really care about those things have already moved to clang which does the important parts natively without the need for a plugin. I'm personally waiting for the day when we can just say "let's remove them". But in the meantime, making the plugins depend on the gcc version some way is certainly better than not doing so. Linus