Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Kyuwon Cho
Tue, 24 Nov 2026 05:13
[PATCH net-next v4 0/1] bonding: keep non-Ethernet slaves out of 802.3ad bonds
Author: Kyuwon Cho
Date: Tue, 24 Nov 2026 05:13
Date: Tue, 24 Nov 2026 05:13
39 lines
12297 bytes
12297 bytes
bond_open() adds the 8-byte lacpdu_mcast_addr to every slave of an 802.3ad bond, so a slave whose addr_len is 16, such as an ip6tnl device, makes dev_mc_add() read past it. The patch rejects such a slave at enslave time in every case and stops a slave of an 802.3ad bond from changing its type afterwards. The issue was found by an LLM-guided test generator that we are developing as a research prototype. v4: - Target net-next (Nikolay). - Merge the two patches into one (Hangbin). - Drop the Reviewed-by tags of Eric and Hangbin, as the patch changed. - Keep the type change veto to 802.3ad. Refusing type changes after enslave in every mode, as Nikolay noted, would only affect nested non-Ethernet setups and can be discussed separately. v3: https://lore.kernel.org/netdev/179535729502.2645501.5219010464870440@gmail.com/ - Add a patch that refuses NETDEV_PRE_TYPE_CHANGE for 802.3ad slaves (Sashiko review). v2: https://lore.kernel.org/netdev/179505868590.3571070.12381528230330714812@gmail.com/ - Move the check above the type handling, as Jay suggested. v1: https://lore.kernel.org/netdev/179500849159.1877154.14715369660816392826@gmail.com/ The patch was written with LLM assistance; we reviewed and tested it. With it, neither the direct nor the nested reproducer triggers the report. Enslaving Ethernet devices into an 802.3ad bond, a non-Ethernet device into an active-backup bond, and the type change of a bond enslaved to a balance-rr bond, as in bond-eth-type-change.sh, work as before. Kyuwon Cho (1): bonding: keep non-Ethernet slaves out of 802.3ad bonds drivers/net/bonding/bond_main.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) -- 2.43.0
Re: [PATCH net-next v4 0/1] bonding: keep non-Ethernet slaves out of 802.3ad bonds
Author: patchwork-bot+netdevbpf
Date: Mon, 30 Nov 2026 03:50
Date: Mon, 30 Nov 2026 03:50
26 lines
8743 bytes
8743 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Willem de Bruijn <willemb@google.com>:
On Tue, 24 Nov 2026 14:13:02 +0900 you wrote:
> bond_open() adds the 8-byte lacpdu_mcast_addr to every slave of an
> 802.3ad bond, so a slave whose addr_len is 16, such as an ip6tnl device,
> makes dev_mc_add() read past it. The patch rejects such a slave at
> enslave time in every case and stops a slave of an 802.3ad bond from
> changing its type afterwards.
>
> The issue was found by an LLM-guided test generator that we are
> developing as a research prototype.
>
> [...]
Here is the summary with links:
- [net-next,v4,1/1] bonding: keep non-Ethernet slaves out of 802.3ad bonds
https://git.kernel.org/netdev/net-next/c/c1e33e4b3afa
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads