From: Nikolay Aleksandrov <razor@blackwall.org>
To: Kyuwon Cho <kyuwoncho18@gmail.com>, Hangbin Liu <hangbin.liu@linux.dev>
Cc: netdev@vger.kernel.org, Jay Vosburgh <jv@jvosburgh.net>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net v3 2/2] bonding: don't let an 802.3ad slave change its type
Date: Mon, 23 Nov 2026 14:43:06 +0200 [thread overview]
Message-ID: <9a533d71-7c7f-4946-9f5b-444db8737547@blackwall.org> (raw)
In-Reply-To: <179540710966.3093990.1416762538136490909@gmail.com>
On 23/11/2026 06:29, Kyuwon Cho wrote:
> On Mon, Nov 23, 2026 at 11:25:37AM +0800, Hangbin Liu wrote:
>> Hmm, I personally prefer the approach used by vlan and team, which disallows
>> changing the slave type after enslavement. If you think we should only disable
>> the 802.3ad-specific part, this change should be merged with patch 1, as they
>> address the same issue.
>
> For net I would keep it to 802.3ad, where the type change leads to the
> out-of-bounds read, and merge it into patch 1 as you suggest. Refusing
> the type change in every mode would also make the enslave of the nlmon
> device in bond-eth-type-change.sh fail. The test would still pass, as
> it does not check that enslave, but it would no longer change the type
> it is there to test, so that change seems better made in net-next.
>
> Nikolay, would you rather have the general check?
>
> I will send v4 with the two patches merged once this is settled.
>
> Thanks,
> Kyuwon Cho
Since this requires purposefully breaking the bond with CAP_NET_ADMIN,
I'd go for net-next. About the general check - unfortunately I don't
think we can do it at all due to one, rather weird, use case that comes
to mind - nested bonds. There are setups which use bonds of bonds and that
will put ordering on the setup, potentially could break scripts.
Cheers,
Nik
next prev parent reply other threads:[~2026-11-23 12:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 14:59 [PATCH net v3 0/2] bonding: keep non-Ethernet slaves out of 802.3ad bonds Kyuwon Cho
2026-11-22 14:59 ` [PATCH net v3 1/2] bonding: reject a non-Ethernet 802.3ad slave even when the type matches Kyuwon Cho
2026-11-23 3:17 ` Hangbin Liu
2026-11-22 14:59 ` [PATCH net v3 2/2] bonding: don't let an 802.3ad slave change its type Kyuwon Cho
2026-11-23 3:25 ` Hangbin Liu
2026-11-23 4:29 ` Kyuwon Cho
2026-11-23 12:43 ` Nikolay Aleksandrov [this message]
2026-11-23 12:46 ` Nikolay Aleksandrov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9a533d71-7c7f-4946-9f5b-444db8737547@blackwall.org \
--to=razor@blackwall.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hangbin.liu@linux.dev \
--cc=jv@jvosburgh.net \
--cc=kuba@kernel.org \
--cc=kyuwoncho18@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®