Re: [PATCH net] net: garp: fix unsigned integer underflow in garp_pdu_parse_attr
From: patchwork-bot+netdevbpf
Date: Tue Jun 02 2026 - 15:20:17 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Wed, 27 May 2026 16:31:58 +0800 you wrote:
> The receive-side GARP attribute parser computes dlen with reversed
> operands:
>
> dlen = sizeof(*ga) - ga->len;
>
> ga->len is the on-wire attribute length and includes the GARP attribute
> header. For normal attributes with data, ga->len is larger than
> sizeof(*ga), so the subtraction underflows in unsigned arithmetic.
>
> [...]
Here is the summary with links:
- [net] net: garp: fix unsigned integer underflow in garp_pdu_parse_attr
https://git.kernel.org/netdev/net/c/16e408e607a9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html