Skip to content

RDMA: Annotate structs with __counted_by

Kees Cook linux-hardening linux-rdma lkml llvm 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7RDMA: Annotate struct rdma_hw_stats with __counted_byinclude/rdma/ib_verbs.h+1 -10 replies
2/7RDMA/core: Annotate struct ib_pkey_cache with __counted_bydrivers/infiniband/core/cache.c+1 -10 replies
3/7RDMA/usnic: Annotate struct usnic_uiom_chunk with __counted_bydrivers/infiniband/hw/usnic/usnic_uiom.h+1 -10 replies
4/7RDMA/siw: Annotate struct siw_pbl with __counted_bydrivers/infiniband/sw/siw/siw.h+1 -10 replies
5/7IB/srp: Annotate struct srp_fr_pool with __counted_bydrivers/infiniband/ulp/srp/ib_srp.h+1 -10 replies
6/7IB/mthca: Annotate struct mthca_icm_table with __counted_bydrivers/infiniband/hw/mthca/mthca_memfree.h+1 -10 replies
7/7IB/hfi1: Annotate struct tid_rb_node with __counted_bydrivers/infiniband/hw/hfi1/user_exp_rcv.h+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] RDMA: Annotate structs with __counted_by

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(-)
Signature · 1 line
2.34.1