mbox series

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

Message ID 20240311162307.545385-1-idosch@nvidia.com (mailing list archive)
Headers show
Series nexthop: Fix two nexthop group statistics issues | expand

Message

Ido Schimmel March 11, 2024, 4:23 p.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org March 12, 2024, 3:40 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 11 Mar 2024 18:23:03 +0200 you wrote:
> 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)
> 
> [...]

Here is the summary with links:
  - [net-next,v2,1/4] nexthop: Only parse NHA_OP_FLAGS for get messages that require it
    https://git.kernel.org/netdev/net-next/c/dc5e0141ff19
  - [net-next,v2,2/4] nexthop: Only parse NHA_OP_FLAGS for dump messages that require it
    https://git.kernel.org/netdev/net-next/c/262a68aa46f8
  - [net-next,v2,3/4] nexthop: Fix out-of-bounds access during attribute validation
    https://git.kernel.org/netdev/net-next/c/d8a21070b6e1
  - [net-next,v2,4/4] nexthop: Fix splat with CONFIG_DEBUG_PREEMPT=y
    https://git.kernel.org/netdev/net-next/c/e006858f1a1c

You are awesome, thank you!