Skip to content

mlxsw: 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 8 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5mlxsw: Annotate struct mlxsw_linecards with __counted_bydrivers/net/ethernet/mellanox/mlxsw/core.h+1 -11 replyApplied
2/5mlxsw: core: Annotate struct mlxsw_env with __counted_bydrivers/net/ethernet/mellanox/mlxsw/core_env.c+1 -11 replyApplied
3/5mlxsw: spectrum: Annotate struct mlxsw_sp_counter_pool with __counted_bydrivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c+1 -12 repliesApplied
4/5mlxsw: spectrum_router: Annotate struct mlxsw_sp_nexthop_group_info with __counted_bydrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+1 -12 repliesApplied
5/5mlxsw: spectrum_span: Annotate struct mlxsw_sp_span with __counted_bydrivers/net/ethernet/mellanox/mlxsw/spectrum_span.c+1 -12 repliesApplied

Reviews trailers per patch

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

PatchIdo SchimmelJustin Stitt
1/5R-b
2/5R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b R-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] mlxsw: Annotate structs with __counted_by

Hi,

This annotates several mlxsw 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):
mlxsw: Annotate struct mlxsw_linecards with __counted_by
mlxsw: core: Annotate struct mlxsw_env with __counted_by
mlxsw: spectrum: Annotate struct mlxsw_sp_counter_pool with
__counted_by
mlxsw: spectrum_router: Annotate struct mlxsw_sp_nexthop_group_info
with __counted_by
mlxsw: spectrum_span: Annotate struct mlxsw_sp_span with __counted_by

 drivers/net/ethernet/mellanox/mlxsw/core.h            | 2 +-
 drivers/net/ethernet/mellanox/mlxsw/core_env.c        | 2 +-
 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c    | 2 +-
 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 2 +-
 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c   | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.34.1