Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp478416pxb; Thu, 21 Oct 2021 03:29:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPlde1INdRGn8xfWUhug+C7FX1oLhv2uk03WBgE16kK67HK8NYjEhS4/xOPzhFXf9AlIxI X-Received: by 2002:a05:6a00:2343:b0:44d:2e13:3edf with SMTP id j3-20020a056a00234300b0044d2e133edfmr4790727pfj.72.1634812191450; Thu, 21 Oct 2021 03:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634812191; cv=none; d=google.com; s=arc-20160816; b=aBltSXOMAeFepe3XU7UX1X9ujgR3k0NzYi0HnPdhD9CDP5M6Ra5Jls5yTDB0GOkAFS Xt9vWngsGXEJElanntktqW8j+qcfqgzd1Bd612xNwMc37K9Ne8XZ7uGeBCybR2yr4i8S glj1cP5yWpWO0t1sMBwJe10qFDOGRS+ZPCCp41tVuTcW+h/reDAQqPuA6gDkEMxv8U+n yxTsKyi+HSv2As/GIWkyugfQ5VFe3sCaOxCbFaVragUiL6GT8toCCC/aux2/hzprRMbv 5+KH0YDeFhPhG03m8iMrd/t1RvFuVvdipvuekQrQYT5k/QpVJIGKgleYSlbCIDsPTyWX tVkA== 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=gww/X6ijDQuhCiMd3Km6LnEtb+G07kwa5rG69c7ewGI=; b=VXxzcyOmyEyVQY8qs2VXOYNf1zj/DK4X2G7yY6LhWkDW3Oi3tGnftsDfCsXo+iPQCv MguVWpvp8L3CTTpbdYQNBNSw9Ty0ULWqCeOgbRB4y0XmYv0QH6joV+X3Cx+oI6dKcuti fs3vO7WwyhYWkfrIdXMajPucl8PjM0P+GE0PThgZRU2hRwDP7N58cpIaDztB4gPgUChc I4iJbEx6QvUJcg7sQS5g0oP6oS9RJdaI9QVppDTDjAexlSOwCRqLcKLru0XZxlp/A9nt IPe/3gXxKUs+97psWCVMtG0U9RPQRSEZc1itQl5qRzTzsEx0lQtmDL2xABQzOKzaKwKs 6g+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LSIZboXe; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e25si7575450pgv.258.2021.10.21.03.29.38; Thu, 21 Oct 2021 03:29:51 -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=@kernel.org header.s=k20201202 header.b=LSIZboXe; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230350AbhJUKar (ORCPT + 99 others); Thu, 21 Oct 2021 06:30:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:54196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbhJUKah (ORCPT ); Thu, 21 Oct 2021 06:30:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 874596120C; Thu, 21 Oct 2021 10:28:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634812101; bh=XZqwcRi8eGbcHfTa8FsBo0CyV+VMmanZEXSL34v2xNA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LSIZboXeBiM2XeY8Wt+EdS5vzOT0y1ZBbT9bRqQsj3JP7BP/yWGDJFdQJDSckB09B 7uqGgy/9ZJHs5HkWP1mzK+b4YDPzJqFGxOwtsNXcSuJd++RJzuPnbSBghUV5uvPrQr 48FXQ0hb3XPEUFdAkHZ8go/OfpfNzL7Oi+qwtMWOwsIoe54SPCBCf3WNrap+GInr0V yGABj0eWy+Oy4uHPhX+84IqzwjRnnFriSooLwDn9DdP3ldmXSfRxTG8Sqpob+snAai xloBuBSX8vt6kna/4iXumpsepFj39VfqjUz5ICYwwc7ll2r4XouRi6EbQQOqDpLgmh FssfdAsIY4+8g== Received: by mail-oi1-f170.google.com with SMTP id o83so295125oif.4; Thu, 21 Oct 2021 03:28:21 -0700 (PDT) X-Gm-Message-State: AOAM532DDyVNWD56Lze+VMe2j0wrKXyHFoz1vzJF7HGTawJ3pxUd+IoB fsnsREcnrxDYexSext4MlwHcM8cep6MuXn6B43k= X-Received: by 2002:aca:4bc4:: with SMTP id y187mr3602617oia.174.1634812100804; Thu, 21 Oct 2021 03:28:20 -0700 (PDT) MIME-Version: 1.0 References: <20211020173554.38122-1-keescook@chromium.org> In-Reply-To: <20211020173554.38122-1-keescook@chromium.org> From: Ard Biesheuvel Date: Thu, 21 Oct 2021 12:28:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] gcc-plugins: Explicitly document purpose and deprecation schedule To: Kees Cook Cc: Dan Li , Miguel Ojeda , Masahiro Yamada , Michal Marek , Nick Desaulniers , Jonathan Corbet , James Morris , "Serge E. Hallyn" , Nathan Chancellor , Linux Kernel Mailing List , linux-hardening@vger.kernel.org, Linux Kbuild mailing list , Linux Doc Mailing List , linux-security-module@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Oct 2021 at 19:35, Kees Cook wrote: > > Hi, > > GCC plugins should only exist when some compiler feature needs to be > proven but does not exist in either GCC nor Clang. For example, if a > desired feature is already in Clang, it should be added to GCC upstream. > Document this explicitly. > > I'll put this in -next unless there are objections. :) > > Thanks! > > -Kees > > > Kees Cook (2): > gcc-plugins: Explicitly document purpose and deprecation schedule > gcc-plugins: Remove cyc_complexity > Acked-by: Ard Biesheuvel > Documentation/kbuild/gcc-plugins.rst | 28 ++++++++- > scripts/Makefile.gcc-plugins | 2 - > scripts/gcc-plugins/Kconfig | 20 +----- > scripts/gcc-plugins/cyc_complexity_plugin.c | 69 --------------------- > security/Kconfig.hardening | 9 ++- > 5 files changed, 34 insertions(+), 94 deletions(-) > delete mode 100644 scripts/gcc-plugins/cyc_complexity_plugin.c > > -- > 2.30.2 >