Re: [PATCH net-next v1 1/2] net: pktgen: add strict buffer parsing index check

From: patchwork-bot+netdevbpf
Date: Mon Mar 24 2025 - 15:22:08 EST


Hello:

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

On Mon, 17 Mar 2025 10:04:00 +0100 you wrote:
> Add strict buffer parsing index check to avoid the following Smatch
> warning:
>
> net/core/pktgen.c:877 get_imix_entries()
> warn: check that incremented offset 'i' is capped
>
> Checking the buffer index i after every get_user/i++ step and returning
> with error code immediately avoids the current indirect (but correct)
> error handling.
>
> [...]

Here is the summary with links:
- [net-next,v1,1/2] net: pktgen: add strict buffer parsing index check
https://git.kernel.org/netdev/net-next/c/7151062c297c
- [net-next,v1,2/2] selftest: net: update proc_net_pktgen (add more imix_weights test cases)
https://git.kernel.org/netdev/net-next/c/3099f9e156b3

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html