Message ID | 20230929181042.work.990-kees@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp64287vqb; Fri, 29 Sep 2023 15:03:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzmTXjZqdTeQhwAVZPRXE3lRnfigsBZdmnddj72Vpz2l+Y+sjrfvdONV4VHwqHhiMtxqhR X-Received: by 2002:a05:6a21:1f08:b0:13f:1622:29de with SMTP id ry8-20020a056a211f0800b0013f162229demr4753194pzb.7.1696025037167; Fri, 29 Sep 2023 15:03:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696025037; cv=none; d=google.com; s=arc-20160816; b=G2bRBu3vo1YzC3CdVlaXwW7r9KYkjMBl6vC+tgA/oBsg0Aw5Z+j28GMHiD1FBPbOlQ k+xfZ8WsCY1VqFXHQfVY0W3CtlVwqVBxdujZcSCSU6JNUEnVtuHfHsGf2JDYrrhA7hyh s0Tp3g8Dm7kzitWfY5HH64fJjnOCIGcgCxtAvJy7OUYNiBXsFYvCSdIFgkBN/tE68QzA yhGCffEAclnTPWA6h0q044X1KmCXtT3yGUmfoxZrzufedF4Zk7pDMxMzpFQ9KU8G08zb DbqYdcaIlbLbpwZxHe43dVDiu7+QaoGFV5XvxrUdtDD3wSLNGnTctV9rKX25imugRSZL pjMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gRDHdIW5nw7N6euQ18/oNZUo9zrsO3GFIVaYI09JZgc=; fh=qlDFQ9wcDyTYZG1vZH34ssrY8zTEni/niicS8lJ74T8=; b=ypDMhtvzHKnh9JAIy48vpOvF6lqu2i4e6mV5JnUZALy4LA+pfVusgiSGai4c7XNdn4 fxqMYqoAO6hvdt+QdDN8LZTA1LQHQ6cK5WkBcTKtNTNuN0ywCkOHPKFJaiVCOYXpugNx HOD9+k8nZvt9jqiENmp3XNPMApK1Uc42DKz2Y4qTzvhO4lVoHHyNEFck0IVFgixJN4/y vLVu3yH9T7f0v59cS33nK7o0ZS6C21MrHgg9MAli3A8qwOw7On3uheQCYzIamENUHaAa xYdMqlinLcF4o+UR9AzERxOTPusvkkDu21TPhWfHfomKEXXAxTjyzBYOcXxSCqa1GmKG 0Jtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TT6RHtIW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id v202-20020a6361d3000000b00578bb707e70si14831766pgb.799.2023.09.29.15.03.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 15:03:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TT6RHtIW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A20EE82B2EAA; Fri, 29 Sep 2023 11:12:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233788AbjI2SMC (ORCPT <rfc822;pwkd43@gmail.com> + 19 others); Fri, 29 Sep 2023 14:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232985AbjI2SLy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 29 Sep 2023 14:11:54 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19E321B2 for <linux-kernel@vger.kernel.org>; Fri, 29 Sep 2023 11:11:52 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1c61acd1285so78262075ad.2 for <linux-kernel@vger.kernel.org>; Fri, 29 Sep 2023 11:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696011111; x=1696615911; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gRDHdIW5nw7N6euQ18/oNZUo9zrsO3GFIVaYI09JZgc=; b=TT6RHtIWvN95eCOp8T27vH9aEUCM96GdHzjX7zVPjXFzrBxOduTG9sPMU0q6ecfXst nQj/AJa2J+39HqqMmoLV4TtA5ZymJ5pYZMFLCIgHj1xQIX2IXa+ELSIB/8IEEqHk0CMj ohjTiWZP7xk4mQfuIvVT+Mq4lZaCOT103bjH0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696011111; x=1696615911; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gRDHdIW5nw7N6euQ18/oNZUo9zrsO3GFIVaYI09JZgc=; b=Pixyx7JjZV8mcHgwocUqDBKiik53F9woHX7HCOCFBILqRLu2QTOhsVcm2fvFCA/CiW DrlP7HhV3DU9Y2x08tGPM9/yBDHrkkLHEmfZyjf/AWtjpzsZUSMf/0315jka21QNjaf5 s0qoQsX6VYE+L+7Y9G/mD5Zy2CBu8OUHqh+jBD3p9QraNxjPqDZb2C9i3cF5gKtC6JL1 J9LOwTeqyxEr/08Xz4pJthWdttBlPPXBc1FN7jM20lTQEmZvVJx1895oRymcnsoYglJK NhHzPcUEMRTKm9Az1NTWoo2AY4I9YuKjY8zP0PV6BM38cFzsQjgQ8iWwcSGTQMEIRe82 5DcQ== X-Gm-Message-State: AOJu0Yztf/gXIzyAnq0hwgKa0OM/J6bluJwd0a91QH864tmi6WhklJRK U2QBOs3bbdShax3CgiMUQsgDuQ== X-Received: by 2002:a17:902:ef96:b0:1c4:6ca6:35b3 with SMTP id iz22-20020a170902ef9600b001c46ca635b3mr4090640plb.44.1696011111522; Fri, 29 Sep 2023 11:11:51 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id u11-20020a17090282cb00b001c3267ae317sm11820272plz.165.2023.09.29.11.11.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 11:11:50 -0700 (PDT) From: Kees Cook <keescook@chromium.org> To: Raju Rangoju <rajur@chelsio.com> Cc: Kees Cook <keescook@chromium.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, "Gustavo A. R. Silva" <gustavoars@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Tom Rix <trix@redhat.com>, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-hardening@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH 0/5] chelsio: Annotate structs with __counted_by Date: Fri, 29 Sep 2023 11:11:44 -0700 Message-Id: <20230929181042.work.990-kees@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1014; i=keescook@chromium.org; h=from:subject:message-id; bh=3BZuEw+lDTMcDOBdSeo10PeNdfF017VDbBDbHm/Aw7E=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBlFxNkPbApQM0PRdw5XGzeD4wn9M2Q4hhHg+EUI +pu8Y62/lCJAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCZRcTZAAKCRCJcvTf3G3A JlIdD/9vS8s1svUJVLgcGlTGpttcmgIm8uPBrJhQo4HWinroPvO700Ft2x5otrpS53fYgd4ez/+ WPqFs9/JAdy/isZcoif+wp3zPItQJL1mbd6XBZ7AqE08BIIHe0soj5AwkZddsRu1stIvvqutyt8 U7TP72+WR0Ok3zDICbfQO9uCyP+BjBoHuSH6ucZJzoW3OVKYbV6p/M+TtXWTObKU/DwwJSd/SCk JFjTMD+fB8l7T0B4WaHKQfCS/G4k2TTzLUcyGE5hx8e4LbFoOePuhvRanBZaTrGhEO2A0o6mb49 vky/90bG4LKQt7iH7qNg+2Tykp/lOCMEt+zukwV9h1OnEdizMGBACZ4YJmXs6ZYyzwlrr3lhwhr ZvdUFvTWhQieEVmwvmD6rMWGMeYuCIqzLhY/pV37OfULuVwFXrBv0yE+2wViXgZM4C7GVsLln/a Jmlfw4K6CR9jYPkBS5pqvlRe1bBIKIKmuajBDShyNb9S3oHaYLRtNfgsRayhrQxlqOBFxWf4UdH dEurVIiiI9K4ewqxSbjXG6BSggiyU2A2Nz5lW/DKUw3kqlxfoX12Jw5oa3uz3i6gUL5ww4ty4aF +BF/1xZdkmOevxftk80KwlQ3qA5n+Y7kq1jn5q9du5shipXVjNFoABZFtpj5aMAXE2Rh1v3Ry54 SKDEscG T2ujIL2A== X-Developer-Key: i=keescook@chromium.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 29 Sep 2023 11:12:11 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778410129270369273 X-GMAIL-MSGID: 1778411149474754593 |
Series |
chelsio: Annotate structs with __counted_by
|
|
Message
Kees Cook
Sept. 29, 2023, 6:11 p.m. UTC
Hi, This annotates several chelsio structures with the coming __counted_by attribute for bounds checking of flexible arrays at run-time. For more details, see commit dd06e72e68bc ("Compiler Attributes: Add __counted_by macro"). Thanks! -Kees Kees Cook (5): chelsio/l2t: Annotate struct l2t_data with __counted_by cxgb4: Annotate struct clip_tbl with __counted_by cxgb4: Annotate struct cxgb4_tc_u32_table with __counted_by cxgb4: Annotate struct sched_table with __counted_by cxgb4: Annotate struct smt_data with __counted_by drivers/net/ethernet/chelsio/cxgb3/l2t.h | 2 +- drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h | 2 +- drivers/net/ethernet/chelsio/cxgb4/l2t.c | 2 +- drivers/net/ethernet/chelsio/cxgb4/sched.h | 2 +- drivers/net/ethernet/chelsio/cxgb4/smt.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
Comments
On Fri, 29 Sep 2023 12:44:45 -0700 Kees Cook wrote: > On Fri, Sep 29, 2023 at 11:11:44AM -0700, Kees Cook wrote: > > Hi, > > > > This annotates several chelsio structures with the coming __counted_by > > attribute for bounds checking of flexible arrays at run-time. For more details, > > see commit dd06e72e68bc ("Compiler Attributes: Add __counted_by macro"). > > > > Thanks! > > > > -Kees > > > > Kees Cook (5): > > chelsio/l2t: Annotate struct l2t_data with __counted_by > > cxgb4: Annotate struct clip_tbl with __counted_by > > cxgb4: Annotate struct cxgb4_tc_u32_table with __counted_by > > cxgb4: Annotate struct sched_table with __counted_by > > cxgb4: Annotate struct smt_data with __counted_by > > > > drivers/net/ethernet/chelsio/cxgb3/l2t.h | 2 +- > > drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h | 2 +- > > drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h | 2 +- > > drivers/net/ethernet/chelsio/cxgb4/l2t.c | 2 +- > > drivers/net/ethernet/chelsio/cxgb4/sched.h | 2 +- > > drivers/net/ethernet/chelsio/cxgb4/smt.h | 2 +- > > 6 files changed, 6 insertions(+), 6 deletions(-) > > Hm, it looks like this is not "Supported" any more? I'm getting bounces > from "Raju Rangoju <rajur@chelsio.com>" ... > > CXGB4 ETHERNET DRIVER (CXGB4) > M: Raju Rangoju <rajur@chelsio.com> > L: netdev@vger.kernel.org > S: Supported > W: http://www.chelsio.com > F: drivers/net/ethernet/chelsio/cxgb4/ Hi Ayush, any idea who should be maintaining the Ethernet part of cxgb4 at this point?
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Fri, 29 Sep 2023 11:11:44 -0700 you wrote: > Hi, > > This annotates several chelsio structures with the coming __counted_by > attribute for bounds checking of flexible arrays at run-time. For more details, > see commit dd06e72e68bc ("Compiler Attributes: Add __counted_by macro"). > > Thanks! > > [...] Here is the summary with links: - [1/5] chelsio/l2t: Annotate struct l2t_data with __counted_by https://git.kernel.org/netdev/net-next/c/3bbae5f1c651 - [2/5] cxgb4: Annotate struct clip_tbl with __counted_by https://git.kernel.org/netdev/net-next/c/c3db467b0822 - [3/5] cxgb4: Annotate struct cxgb4_tc_u32_table with __counted_by https://git.kernel.org/netdev/net-next/c/157c56a4fede - [4/5] cxgb4: Annotate struct sched_table with __counted_by https://git.kernel.org/netdev/net-next/c/ceba9725fb45 - [5/5] cxgb4: Annotate struct smt_data with __counted_by https://git.kernel.org/netdev/net-next/c/1508cb7e0752 You are awesome, thank you!
On Fri, 6 Oct 2023 01:58:54 +0530 Ayush Sawal wrote: > The current maintainer for cxgb4 driver is Sourabh Sagar > <sourabh.sagar@chelsio.com>, I have added him in the CC. > He will update the MAINTAINERS file for cxgb4 driver. Thanks & looking forward to the update!