Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6058693rdb; Mon, 18 Sep 2023 02:53:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEI4GNnWMmfhRxAjF8MHJT8lUongK9jatTEjMiWwMqaPxgTTOK4dFULT3ptINIAgX9GCbQr X-Received: by 2002:a17:902:eaca:b0:1c3:ae56:4594 with SMTP id p10-20020a170902eaca00b001c3ae564594mr7158414pld.49.1695030809198; Mon, 18 Sep 2023 02:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695030809; cv=none; d=google.com; s=arc-20160816; b=Vc2/9Ftut6j34yNVbQTgtH1bOxSoYxyOuV7w9KP1dp7uDP1OWHg43XUHcAgXVlCZyy 8qQxyiG7k+JpJxko8Flg01l8/GsyuvjEgWwZwQEPQa9ukMIzcJD7LyLP6rDtJciqRPJJ Rup89PKM2oSA4QsubxOclQAfJ5ojBqe0ViGWrgWQBmycX4V7vmFkbrhaB+eXTpwPgh56 q65QH2jdpQrWBWnCbSgzfi7YZeSTP7hLgHSweeoQhgLcyLYp+Nv18UtNeQgx2JxU+LAp QzjCt4hEG5n6kSW6SYrQA2z8kwuyvHDBPq3eNUnc6ifI5Bf6bXwYyT/BdZKPjyPbN7i0 ip2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=6nzK9U2ao9cwE1Pnw/DCOrjjNLzAAh6dis1gMZQJYfA=; fh=vmzeqrc6XwhsSz7IxFV6aP9WHbljeMZckSOgws2/rEU=; b=s1nUJUo2bsmb1HH9UVJ+AX2AADELmALTz3VGFRPi9LjNMI+uaBE+meG0Q9Z7vpDxOh bIf7DJJsYasK1WcS1tsL4jMinjAY1wEUI9sUSX4jV6srdyG2GsB2j2osl9A4a7sXZ+LI a9h4KQIiW98GQh3EYosIJaKQ+sPzDmNVi642RmWE4iEF/kzUcJIMcqTpXH28A+jpV5s9 cuwwdJ7LRkIUISZwXFcuD23zYJLy9dicQTjg8ylSmZfHC1OZhH27v9spYXNqLhDNG5JX 3nUKSrKUGajG5Yuhg/raKnyy2cO/S/CudXOg0pqd+g8+5ETTRhyxyaqrHv/RA/Mhcgbf PbTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W+/CFp1V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l15-20020a170903244f00b001b178baf356si8166050pls.95.2023.09.18.02.53.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 02:53:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W+/CFp1V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4CC788065003; Mon, 18 Sep 2023 02:43:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240979AbjIRJml (ORCPT + 99 others); Mon, 18 Sep 2023 05:42:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240912AbjIRJmJ (ORCPT ); Mon, 18 Sep 2023 05:42:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57CDDE56; Mon, 18 Sep 2023 02:40:22 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id E1BCBC433CA; Mon, 18 Sep 2023 09:40:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695030022; bh=uRfOQOB0II5sP8GPpDWkYX/vEwWZ4Q9wf7azPLUxnI8=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=W+/CFp1VkUNvrkW4WOXwUNjeLGGda4LOtdSOhfnYStHDdLVlHuZgUtGJ6PmPrATSn s28+YAtvisNIxRfYRakr/TdDBQfPOITm9eY2KLuKlhFf7fRLLzxAzCpIU8BVq4gMlA 2m5g/NqQxmPK2TaBf3uef6ajyji2hvUJpAgnrzw42gtp6JqVnPPfl/n6qfFIe1v+z/ rOdSMU1EGbXcYtaU2Arp8vi41mRQEEuUBclAnxxeff6oAvSXhlA1PyrTDKyEWfLYBV IvBBO6M0C/3vulS+/41rNhmTpdXm3y0oi6nheA43JyCMotdTmfRmL0g+5Rzr/Mhuus +MIjX3Y5F4oiQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id C78EBE11F41; Mon, 18 Sep 2023 09:40:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] ceph: Annotate struct ceph_monmap with __counted_by From: patchwork-bot+netdevbpf@kernel.org Message-Id: <169503002181.24344.5873701629214587241.git-patchwork-notify@kernel.org> Date: Mon, 18 Sep 2023 09:40:21 +0000 References: <20230915201510.never.365-kees@kernel.org> In-Reply-To: <20230915201510.never.365-kees@kernel.org> To: Kees Cook Cc: idryomov@gmail.com, xiubli@redhat.com, jlayton@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ceph-devel@vger.kernel.org, netdev@vger.kernel.org, nathan@kernel.org, ndesaulniers@google.com, trix@redhat.com, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 18 Sep 2023 02:43:05 -0700 (PDT) Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller : On Fri, 15 Sep 2023 13:15:10 -0700 you wrote: > Prepare for the coming implementation by GCC and Clang of the __counted_by > attribute. Flexible array members annotated with __counted_by can have > their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS > (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family > functions). > > As found with Coccinelle[1], add __counted_by for struct ceph_monmap. > Additionally, since the element count member must be set before accessing > the annotated flexible array member, move its initialization earlier. > > [...] Here is the summary with links: - ceph: Annotate struct ceph_monmap with __counted_by https://git.kernel.org/netdev/net-next/c/1cb6422ecac8 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html