Re: [PATCH net] bonding: reject a non-Ethernet 802.3ad slave even when the type matches
From: Kyuwon Cho
Date: Sun Nov 22 2026 - 09:59:10 EST
On Sun, 22 Nov 2026 13:02:33 +0000, netdev-bot+sashiko@xxxxxxxxxx wrote:
> [Severity: High]
> Is this check enough to keep a non-Ethernet slave out of an 802.3ad bond?
> It only looks at the slave's type when the slave is enslaved. A slave that
> is itself a bond can still change type after that.
The issue is real: the nested case gives the same KASAN report in
bond_open(), also with v2 applied. v3 adds a second patch that refuses
NETDEV_PRE_TYPE_CHANGE for a slave of an 802.3ad bond, as team does for
its ports; other modes still allow it, as bond-eth-type-change.sh
expects.
Kyuwon Cho
pw-bot: cr