Skip to content

nexthop: Fix two nexthop group statistics issues

Ido Schimmel netdev 2 versions – 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 · linked by author and title

  1. v2 Latest4 patches 5 repliesApplied 4/4
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

* Only parse NHA_OP_FLAGS for messages that require it (patches #1-#2 are new)
* Resize 'tb' using ARRAY_SIZE (new change in patch #3)

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4nexthop: Only parse NHA_OP_FLAGS for get messages that require itnet/ipv4/nexthop.c+8 -81 replyApplied
2/4nexthop: Only parse NHA_OP_FLAGS for dump messages that require itnet/ipv4/nexthop.c+5 -51 replyApplied
3/4nexthop: Fix out-of-bounds access during attribute validationnet/ipv4/nexthop.c tools/testing/selftests/net/fib_nexthops.sh+23 -122 repliesApplied
4/4nexthop: Fix splat with CONFIG_DEBUG_PREEMPT=ynet/ipv4/nexthop.c+2 -11 replyApplied

Reviews trailers per patch

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

PatchDavid Ahern
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/4] nexthop: Fix two nexthop group statistics issues

Fix two issues that were introduced as part of the recent nexthop group statistics submission. See the commit messages for more details.

v2:
* Only parse NHA_OP_FLAGS for messages that require it (patches #1-#2 are new)
* Resize 'tb' using ARRAY_SIZE (new change in patch #3)

Ido Schimmel (4):
nexthop: Only parse NHA_OP_FLAGS for get messages that require it
nexthop: Only parse NHA_OP_FLAGS for dump messages that require it
nexthop: Fix out-of-bounds access during attribute validation
nexthop: Fix splat with CONFIG_DEBUG_PREEMPT=y

 net/ipv4/nexthop.c                          | 58 ++++++++++++---------
 tools/testing/selftests/net/fib_nexthops.sh |  6 +++
 2 files changed, 38 insertions(+), 26 deletions(-)
Signature · 1 line
2.43.0