Skip to content

bonding: properly restore flags when non-eth dev enslave fails

Nikolay Aleksandrov netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bonding: restore bond's IFF_SLAVE flag if a non-eth dev enslave failsdrivers/net/bonding/bond_main.c+7 -10 replies
2/2selftests: rtnetlink: add a bond test trying to enslave non-eth devtools/testing/selftests/net/rtnetlink.sh+36 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/2] bonding: properly restore flags when non-eth dev enslave fails

Hi,
A bug was reported by syzbot[1] that causes a warning and a myriad of other potential issues if a bond that is also a slave fails to enslave a non-eth device. Patch 01 fixes the bug and patch 02 adds a selftest for bond flags restoration in such cases. For more information please see commit descriptions.

Thanks,
Nik

[1] https://syzkaller.appspot.com/bug?id=391c7b1f6522182899efba27d891f1743e8eb3ef

Nikolay Aleksandrov (2):
bonding: restore bond's IFF_SLAVE flag if a non-eth dev
enslave fails
selftests: rtnetlink: add a bond test trying to enslave non-eth dev

 drivers/net/bonding/bond_main.c          |  8 +++++-
 tools/testing/selftests/net/rtnetlink.sh | 36 ++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletion(-)
Signature · 1 line
2.39.2