Re: [net,v3] udp: revalidate socket family before publishing an IPv6 cork

From: Paolo Abeni

Date: Thu Sep 03 2026 - 09:58:49 EST


On 9/3/26 3:05 PM, netdev-bot+sashiko@xxxxxxxxxx wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issue(s) to consider:
>
> Critical: 0 · High: 2 · Medium: 0 · Low: 0
>
> - [High] Incomplete fix: the sibling IPv6 socket-dst publisher in the
> connect() path is not covered, so an IPv6 dst can still be installed…
> - [High] The fix is writer-side and after-the-fact, so the mixed-family
> socket dst it claims to eliminate remains observable by the unguarded…

It looks like fixing this kind of issues, if possible at all, would
require adding a significant complexity to the data-path.

I'm wondering if we could just remove setsockopt(IPV6_ADDRFORM) support?

/P