[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<175348596749.3366157.11889906791238903563.git-patchwork-notify@kernel.org>
Date: Fri, 25 Jul 2025 23:26:07 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Kees Cook <kees@...nel.org>
Cc: marcelo.leitner@...il.com, kuba@...nel.org, Jason@...c4.com,
andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com, lucien.xin@...il.com, horms@...nel.org,
linux-kernel@...r.kernel.org, wireguard@...ts.zx2c4.com,
netdev@...r.kernel.org, linux-sctp@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH net-next 0/3] net: Add sockaddr_inet unified address
structure
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Tue, 22 Jul 2025 10:18:30 -0700 you wrote:
> Hi!
>
> Repeating patch 1, as it has the rationale:
>
> There are cases in networking (e.g. wireguard, sctp) where a union is
> used to provide coverage for either IPv4 or IPv6 network addresses,
> and they include an embedded "struct sockaddr" as well (for "sa_family"
> and raw "sa_data" access). The current struct sockaddr contains a
> flexible array, which means these unions should not be further embedded
> in other structs because they do not technically have a fixed size (and
> are generating warnings for the coming -Wflexible-array-not-at-end flag
> addition). But the future changes to make struct sockaddr a fixed size
> (i.e. with a 14 byte sa_data member) make the "sa_data" uses with an IPv6
> address a potential place for the compiler to get upset about object size
> mismatches. Therefore, we need a sockaddr that cleanly provides both an
> sa_family member and an appropriately fixed-sized sa_data member that does
> not bloat member usage via the potential alternative of sockaddr_storage
> to cover both IPv4 and IPv6, to avoid unseemly churn in the affected code
> bases.
>
> [...]
Here is the summary with links:
- [net-next,1/3] ipv6: Add sockaddr_inet unified address structure
https://git.kernel.org/netdev/net-next/c/463deed51796
- [net-next,2/3] wireguard: peer: Replace sockaddr with sockaddr_inet
https://git.kernel.org/netdev/net-next/c/9203e0a82c0b
- [net-next,3/3] sctp: Replace sockaddr with sockaddr_inet in sctp_addr union
https://git.kernel.org/netdev/net-next/c/511d10b4c2f9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists