Re: [PATCH net v2] ipv6: fix Route Information option length validation

From: patchwork-bot+netdevbpf

Date: Mon Aug 03 2026 - 17:36:33 EST


Hello:

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

On Thu, 30 Jul 2026 11:52:32 +0800 you wrote:
> rt6_route_rcv() validates the Route Information option (RFC 4191) length
> against the prefix length, but both checks are off by one.
>
> rinfo->length is the ND option length in units of 8 octets and it
> *includes* the 8-byte option header, so an option carrying N bytes of
> prefix has length == 1 + N/8. RFC 4191 section 2.3 requires length 3
> when Prefix Length is greater than 64, and 2 or 3 when it is greater
> than 0. The code accepts length >= 2 and length >= 1 respectively.
>
> [...]

Here is the summary with links:
- [net,v2] ipv6: fix Route Information option length validation
https://git.kernel.org/netdev/net/c/d1ad8fb2ac6a

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