From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37FF5C7EE21 for ; Thu, 4 May 2023 23:44:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbjEDXo2 (ORCPT ); Thu, 4 May 2023 19:44:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbjEDXo1 (ORCPT ); Thu, 4 May 2023 19:44:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A769B76A2; Thu, 4 May 2023 16:44:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3CD1A63996; Thu, 4 May 2023 23:44:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77593C433EF; Thu, 4 May 2023 23:44:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683243865; bh=sqd3QxYIfp81aQWLqFP3GRC/sgGTwPJBsZB6PBO7r2Y=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=GD2uU/jjt2I4vxxcAYmCkSt9/FKI7Jo9pEiCdvmCuRLh2n2m9V9IlVd85TsMmmrjc 8Rsz6eBRutQE0tSg6DVUZDyfaYKsMC4IPAduSQKLhmUq8TjKV+FblEKicwIpI9X6iH IvCG5Nx+6ZvLCmQVY5QADGjtIkzMCx1fkHWMoGcDxs42e4twc4+iFe0JNKysHEp52f z9oPDg/X6kmOJY5yvwSJFMS3AuYPb7Db7HGpePcnLlwWlUJroLtEIqiBLUXNZy7F4S T7Ba/jTOM/plLO4CsuGcA0MqLn/akmND1F40hQf6g56VDttox+BRlNTSiMvDd8PiW+ 9HK0QpzS5edvA== Date: Thu, 04 May 2023 16:44:24 -0700 From: Kees Cook To: Miguel Ojeda , Kees Cook CC: Miguel Ojeda , Bill Wendling , Qing Zhao , "Gustavo A . R . Silva" , Nick Desaulniers , Nathan Chancellor , Tom Rix , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] Compiler Attributes: Add __counted_by macro User-Agent: K-9 Mail for Android In-Reply-To: References: <20230504181636.never.222-kees@kernel.org> Message-ID: <40D4BB7A-2583-45B9-B76A-E174CAC4B248@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On May 4, 2023 11:27:32 AM PDT, Miguel Ojeda wrote: >On Thu, May 4, 2023 at 8:16=E2=80=AFPM Kees Cook wrote: >> >> + * Optional: future support coming in clang 17 and gcc 14 > >Should we just say: > > Optional: only supported since clang >=3D 17 > Optional: only supported since gcc >=3D 14 > >even if they are in the future? That way we avoid changing it later=2E >If somebody asks, you already say it it is in the future the commit >message, so it should be clear enough=2E=2E=2E :) > >And if the compilers end up not supporting it on those versions for >some unexpected reason, well, we will need to fix the comment either >way=2E Yeah, fair point! > >(I can change it on my side if you prefer) Sure, thanks! (But I'm happy to send a v2 if that's easier for you, too=2E= ) -Kees --=20 Kees Cook