linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kees Cook <keescook@chromium.org>
To: Jason Gunthorpe <jgg@ziepe.ca>
Cc: "Kees Cook" <keescook@chromium.org>,
	"Dennis Dalessandro" <dennis.dalessandro@cornelisnetworks.com>,
	"Leon Romanovsky" <leon@kernel.org>,
	"Håkon Bugge" <haakon.bugge@oracle.com>,
	"Avihai Horon" <avihaih@nvidia.com>,
	"Anand Khoje" <anand.a.khoje@oracle.com>,
	"Mark Bloch" <mbloch@nvidia.com>,
	"Christian Benvenuti" <benve@cisco.com>,
	"Nelson Escobar" <neescoba@cisco.com>,
	"Bernard Metzler" <bmt@zurich.ibm.com>,
	"Bart Van Assche" <bvanassche@acm.org>,
	"Gustavo A. R. Silva" <gustavoars@kernel.org>,
	"Nathan Chancellor" <nathan@kernel.org>,
	"Nick Desaulniers" <ndesaulniers@google.com>,
	"Tom Rix" <trix@redhat.com>,
	"Patrisious Haddad" <phaddad@nvidia.com>,
	"Chuck Lever" <chuck.lever@oracle.com>,
	"Tom Talpey" <tom@talpey.com>, wangjianli <wangjianli@cdjrlc.com>,
	linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org,
	linux-hardening@vger.kernel.org, llvm@lists.linux.dev
Subject: [PATCH 0/7] RDMA: Annotate structs with __counted_by
Date: Fri, 29 Sep 2023 11:04:23 -0700	[thread overview]
Message-ID: <20230929180305.work.590-kees@kernel.org> (raw)

Hi,

This annotates several 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 (7):
  RDMA: Annotate struct rdma_hw_stats with __counted_by
  RDMA/core: Annotate struct ib_pkey_cache with __counted_by
  RDMA/usnic: Annotate struct usnic_uiom_chunk with __counted_by
  RDMA/siw: Annotate struct siw_pbl with __counted_by
  IB/srp: Annotate struct srp_fr_pool with __counted_by
  IB/mthca: Annotate struct mthca_icm_table with __counted_by
  IB/hfi1: Annotate struct tid_rb_node with __counted_by

 drivers/infiniband/core/cache.c             | 2 +-
 drivers/infiniband/hw/hfi1/user_exp_rcv.h   | 2 +-
 drivers/infiniband/hw/mthca/mthca_memfree.h | 2 +-
 drivers/infiniband/hw/usnic/usnic_uiom.h    | 2 +-
 drivers/infiniband/sw/siw/siw.h             | 2 +-
 drivers/infiniband/ulp/srp/ib_srp.h         | 2 +-
 include/rdma/ib_verbs.h                     | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.34.1


             reply	other threads:[~2023-09-29 18:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-29 18:04 Kees Cook [this message]
2023-09-29 18:04 ` [PATCH 1/7] RDMA: Annotate struct rdma_hw_stats with __counted_by Kees Cook
2023-09-29 18:04 ` [PATCH 2/7] RDMA/core: Annotate struct ib_pkey_cache " Kees Cook
2023-09-29 18:04 ` [PATCH 3/7] RDMA/usnic: Annotate struct usnic_uiom_chunk " Kees Cook
2023-09-29 18:04 ` [PATCH 4/7] RDMA/siw: Annotate struct siw_pbl " Kees Cook
2023-09-29 18:04 ` [PATCH 5/7] IB/srp: Annotate struct srp_fr_pool " Kees Cook
2023-09-29 18:04 ` [PATCH 6/7] IB/mthca: Annotate struct mthca_icm_table " Kees Cook
2023-09-29 18:04 ` [PATCH 7/7] IB/hfi1: Annotate struct tid_rb_node " Kees Cook
2023-10-02 11:45 ` [PATCH 0/7] RDMA: Annotate structs " Leon Romanovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230929180305.work.590-kees@kernel.org \
    --to=keescook@chromium.org \
    --cc=anand.a.khoje@oracle.com \
    --cc=avihaih@nvidia.com \
    --cc=benve@cisco.com \
    --cc=bmt@zurich.ibm.com \
    --cc=bvanassche@acm.org \
    --cc=chuck.lever@oracle.com \
    --cc=dennis.dalessandro@cornelisnetworks.com \
    --cc=gustavoars@kernel.org \
    --cc=haakon.bugge@oracle.com \
    --cc=jgg@ziepe.ca \
    --cc=leon@kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mbloch@nvidia.com \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=neescoba@cisco.com \
    --cc=phaddad@nvidia.com \
    --cc=tom@talpey.com \
    --cc=trix@redhat.com \
    --cc=wangjianli@cdjrlc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).