Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <[email protected]>:

On Thu, 15 Oct 2026 10:00:03 -0700 you wrote:
> GCC 15.1 and later can compute an object size of 0 for a pointer that
> container_of() derives from a pointer into a __counted_by flexible array
> member[1]; Clang gets it right. netdev_from_priv() does this with struct
> net_device's "priv" array, so when GCC can see that its argument came
> from netdev_priv(), FORTIFY_SOURCE sees a zero-sized net_device. Since
> commit 9027497a25e3c ("team: use netdev_from_priv()"), adding a port of
> another type to a team device can then fail the memcpy() to
> "dev->broadcast" in team_setup_by_port(), which GCC sees through after
> inlining team_port_add() into team_add_slave():
> 
> [...]

Here is the summary with links:
  - [net-next,net] netdev: Hide the netdev_priv() origin from GCC in 
netdev_from_priv()
    https://git.kernel.org/netdev/net-next/c/56f8d919739b

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



Reply via email to