Re: [PATCH net v4] ipv6: validate extension header length before copying to cmsg
From: Qi Tang
Date: Sat May 16 2026 - 11:32:14 EST
On Sat, 16 May 2026 at 09:41:07 -0400, Willem de Bruijn wrote:
> Jakub Kicinski wrote:
> > return (len <= skb_tail_pointer(skb) - ptr) ? len : 0;
>
> If making changes, also time to replace the open coded offset
> with sizeof ipv6_opt_hdr and opt_hdr->hdrlen?
> Or perhaps better left for net-next.
Thanks, both make sense. I'll fold the tail-ptr subtraction
into v5 and post the typed-access refactor against net-next
right after.
Qi