Skip to content

chelsio: Annotate structs with __counted_by

Kees Cook linux-hardening lkml llvm netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 10 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5chelsio/l2t: Annotate struct l2t_data with __counted_bydrivers/net/ethernet/chelsio/cxgb3/l2t.h drivers/net/ethernet/chelsio/cxgb4/l2t.c+2 -22 repliesApplied
2/5cxgb4: Annotate struct clip_tbl with __counted_bydrivers/net/ethernet/chelsio/cxgb4/clip_tbl.h+1 -11 replyApplied
3/5cxgb4: Annotate struct cxgb4_tc_u32_table with __counted_bydrivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h+1 -11 replyApplied
4/5cxgb4: Annotate struct sched_table with __counted_bydrivers/net/ethernet/chelsio/cxgb4/sched.h+1 -11 replyApplied
5/5cxgb4: Annotate struct smt_data with __counted_bydrivers/net/ethernet/chelsio/cxgb4/smt.h+1 -11 replyApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchGustavo A. R. Silva
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] chelsio: Annotate structs with __counted_by

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