Re: [PATCH][next] net: dev: Convert sa_data to flexible array in struct sockaddr
From: patchwork-bot+netdevbpf
Date: Tue Oct 25 2022 - 17:30:24 EST
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 18 Oct 2022 02:56:03 -0700 you wrote:
> One of the worst offenders of "fake flexible arrays" is struct sockaddr,
> as it is the classic example of why GCC and Clang have been traditionally
> forced to treat all trailing arrays as fake flexible arrays: in the
> distant misty past, sa_data became too small, and code started just
> treating it as a flexible array, even though it was fixed-size. The
> special case by the compiler is specifically that sizeof(sa->sa_data)
> and FORTIFY_SOURCE (which uses __builtin_object_size(sa->sa_data, 1))
> do not agree (14 and -1 respectively), which makes FORTIFY_SOURCE treat
> it as a flexible array.
>
> [...]
Here is the summary with links:
- [next] net: dev: Convert sa_data to flexible array in struct sockaddr
https://git.kernel.org/netdev/net-next/c/b5f0de6df6dc
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html