linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] RDMA: Annotate structs with __counted_by
@ 2023-09-29 18:04 Kees Cook
  2023-09-29 18:04 ` [PATCH 1/7] RDMA: Annotate struct rdma_hw_stats " Kees Cook
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Kees Cook @ 2023-09-29 18:04 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Kees Cook, Dennis Dalessandro, Leon Romanovsky, Håkon Bugge,
	Avihai Horon, Anand Khoje, Mark Bloch, Christian Benvenuti,
	Nelson Escobar, Bernard Metzler, Bart Van Assche,
	Gustavo A. R. Silva, Nathan Chancellor, Nick Desaulniers, Tom Rix,
	Patrisious Haddad, Chuck Lever, Tom Talpey, wangjianli,
	linux-kernel, linux-rdma, linux-hardening, llvm

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-10-02 11:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-29 18:04 [PATCH 0/7] RDMA: Annotate structs with __counted_by Kees Cook
2023-09-29 18:04 ` [PATCH 1/7] RDMA: Annotate struct rdma_hw_stats " 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

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).