bonding: fail to enslave an up interface with one netlink message

Bug #2064730 reported by Nicolas Dichtel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

[Impact]

After the linux upstream commit a4abfa627c38 ("net: rtnetlink: Enslave device before bringing it up"), pushed in v6.1, the following set of commands fails:
$ ip link add dummy0 type dummy
$ ip link add bond0 type bond
$ ip link set dummy0 up
$ ip link set dummy0 master bond0 down
Error: Device can not be enslaved while up.

This breaks existing scripts.

This problem has been fixed upstream with the commit ec4ffd100ffb ("Revert "net: rtnetlink: Enslave device before bringing it up""). The commit has been backported in upstream stable kernels (v6.1.75, v6.6.14, v6.7.2) but is missing the 23.10 kernel (6.5).

[Test Case]

$ ip link add dummy0 type dummy
$ ip link add bond0 type bond
$ ip link set dummy0 up
$ ip link set dummy0 master bond0 down
=> no error should happen

[Regression Potential]

The patch is a straight revert of the faulty commit, so it goes back to the original code, which has been there for decades. It has been backported successfully in upstream kernels.

description: updated
Revision history for this message
Nicolas Dichtel (nicolas-dichtel) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.