Article View: linux.kernel.netdev
Article #26087Re: [PATCH net-next] bonding: roll back fail_over_mac if enslave fails
From: Hangbin Liu
Date: Thu, 03 Dec 2026 01:40
Date: Thu, 03 Dec 2026 01:40
62 lines
10959 bytes
10959 bytes
Hi Paolo,
On Wed, Dec 02, 2026 at 10:35:53AM +0100, Paolo Abeni wrote:
> On 11/24/26 13:38, netdev-bot+sinfo@kernel.org wrote:
> > Hi!
> >
> > This is an automated message. This series looks like a fix, but its
> > commit messages seem to be missing some information:
> >
> > - How the issue was discovered, e.g. hit in production, hit during
> > development, syzbot report, manual code inspection, LLM or static
> > analysis tool scan.
> >
> > - Whether the issue was actually triggered, or is only theoretical
> > (e.g. found by LLM and not proven at runtime). If it was triggered
> > please include the symptoms, like the stack trace or kernel messages.
> >
> > Please do not repost the series just to address the above. Instead,
> > reply to this email with the missing information, so that reviewers
> > can take it into account.
> >
> > *IMPORTANT*: If you do repost (for other reasons) - please include
> > the relevant info in the cover letter or commit messages.
>
> Please answer the above questions.
Oh, I thought this is only for fixes to net.
The issue is discovered when I tried to restruct bond_enslave().
It could be reproduced via
bash-5.3# ip link add wg0 type wireguard
bash-5.3# ip link add bond0 type bond mode active-backup
bash-5.3# ip link set bond0 xdpdrv obj xdp_dummy.bpf.o sec xdp
bash-5.3# ip -d -j -p link show bond0 | grep fail_over_mac
"fail_over_mac": "none",
bash-5.3# ip link set wg0 master bond0
Error: Slave does not support XDP.
bash-5.3# ip -d -j -p link show bond0 | grep fail_over_mac
"fail_over_mac": "active",
After the patch, the fail_over_mac will not be changed by a failed enslave.
bash-5.3# ip -d -j -p link show bond0 | grep fail_over_mac
"fail_over_mac": "none",
> Also any changes to have this scenario covered by self-tests?
We generally try our best to avoid failures during enslavement, since we have
a lot of rollback work to handle. The reproducer for these bond_enslave
rollback paths relies on XDP checking failures. I’ve moved that XDP check
earlier in bond_enslave with the patch:
"bonding: check XDP support before enslaving changes state" [1].
Once that XDP patch is applied, this class of issue will become difficult
to reproduce. Therefore, I do not plan to add a selftest for it.
[1] https://lore.kernel.org/all/20261130-bond_xdp_fix-v3-1-49be5fcd9376@kylinos.cn/
Thanks
Hangbin
Technical Details
Message-ID:
<axDIJYh7OVeBqfQl@fedora>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376197-linux-kernel-netdev=dewy.ruReferences:
<20261124-bond_fail_over_mac-v1-1-9caee319331f@kylinos.cn> <179552388563.3294.14587394953378202358@kernel.org> <7b2988d2-732c-4de2-8f54-8e6ecb08ef3b@redhat.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376197-linux-kernel-netdev=dewy.ru From: hangbin.liu@linux.dev (Hangbin Liu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next] bonding: roll back fail_over_mac if enslave fails Date: Thu, 3 Dec 2026 09:40:39 +0800 Organization: Usenet Network Message-ID: <axDIJYh7OVeBqfQl@fedora> References: <20261124-bond_fail_over_mac-v1-1-9caee319331f@kylinos.cn> <179552388563.3294.14587394953378202358@kernel.org> <7b2988d2-732c-4de2-8f54-8e6ecb08ef3b@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2107474"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:CZTqxKGx3mw7m0wPtxwqJnBfQ1U= sha256:nloXloHceNFQVlql+1oi4tTVoC9zJA10Mju/P0WMvWc= sha1:J2C8SZo+QgOK8kMLySa1QVl4Z24= sha256:B1QEsA0Y65YkjKvCa7uIigoKjBk5dwkr1Ev37/f6VM4= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 1BE2F1177DC; Thu, 3 Dec 2026 04:41:21 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.dev X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vyn2KYrOYsAc; Thu, 3 Dec 2026 04:41:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376197-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id AA4F51177CB; Thu, 3 Dec 2026 04:41:05 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id D9F5C29B16; Thu, 3 Dec 2026 01:40:59 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796262059; b=2pSZSsLoG3Dk6S1KNm14HAw+0Cq4jSr3FFzlA5286IofcOW+6s4f2/6dGPJmZb78sbSA KWZrEYJbkymOgsLnXPCkS8T2Bj9TI+fkT1impzxYCVc40rQOc2Cw0mbh0fBf6sakeL5dt 0TIG4qNscgnAeYTmrtgdf58gd79/azu0uA/NNIRlhr3yMk2MKvJfZNeE3cOmw2zh5OVBW 2JZo2Az2wzKW1d3xJ6ijed3qVMU88wHD0I71PViZcgThpezwGBKWfWNHhKByPNJftolz8 JMgtA4b52IxWsusvBufJ7Lk1PNUhBI+FsYW/BWk2hbhN+o9jJEs5NjKU940iEwEl47Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796262059; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=g2yHHKswGUO7Rp6unIjMTP4walSGHDMOMK+qip3SO4s=; b=vj+QCH5YPiZqfsAoPKx1lfd/RQ+yyO237SqfcxLD441xlMfV9ULALBLV6KzvLQzPZ1zj YQeGwsreDLj8V/h8ZqnI6vY2MIrFds2ZyY7HXCUB28xSdxaeaMHhgZ5dSuA/VjY72Nvlf k8sdWcIJXoXFgJQ9g0Crkckjb68LBytGoQPxMrtcAzQv7AKbIa2igSN0n/9JVgtqMWNtJ F+A01eHKACl3QrJ4BaSPccnoZybboeo2r6TI59P3r9xAaTOsyj1OIKreiR1vrYwZ/7R68 rgSLoQ4soYyzbTUXlobwPhYLQk/A2fNugdJDSEYWzAaZ4jciGC4jM3lgg8ePINIoP6w== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=FIj1doZT; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D007606A32F; Thu, 3 Dec 2026 01:40:59 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=FIj1doZT X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.161 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796262053; b=E/iEkyc1c8RT/uT1cB6xzJS/vFedQQicyNNFjYyI1y2YM96Ne7AKMlZOSWwDkDBW1ETY wRHrHhJH3NnHkwVcdJAwWN4KYaXCXoP8s0SAsYd8TiPXcLXj8y9kHv/XvPJv1H/n8YwYA Z0gxC3XixAC5Zowp0Np+377COCmffWbMFzYWq+8iHzZAPxx6a6kKTBrJ3NMJG0WtDi+jW b/bO94S8EQ2mXrou7NgaJh9BQHKv1YrLDOMzd2SmaTX5REzRujreDKXvxLfZhRueFd7tT By0kSba13X/CCsfM2c8XZ+4+9ylpoF3Sq3X2BwFaQOgsIc21QzX7eQWIbupI+fREf+g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796262053; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=g2yHHKswGUO7Rp6unIjMTP4walSGHDMOMK+qip3SO4s=; b=Qdw6YSPpuGo4FFV99vNiIVgheU0KuZSek2buditLI9qIutT+ndU2ZNQS+iDouhNRat0u 7la9TjQ0hXyhX5xMfJk8JfZHtVuIRH+K5thNcX8o/BuSpV2P4LAoTvGbbht0KCsyMysjA oCEmfy0+hr4jhlksbZmJf3CSPjNTHwN5fw7AbEf67wF1Mqk8ohZFoR75ArHx+ZFbw7wQs sZ24BYmkqW1qdgNNhK67GRcT3fD6vn+E5ppbHLoFnkHuaLufasQkmuZBx6iZzy93UlIcB WtwMhSu/EtE9doOudpFjArvKdhIwkUgn5HAr4mAqv8MSgb88m/0yYjlQW0aly82cZxg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=FIj1doZT; arc=none smtp.remote-ip=91.218.175.161 X-Received: from mta0.migadu.com (out-161.mta0.migadu.com [91.218.175.161]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46276606A322 for <netdev@vger.kernel.org>; Thu, 3 Dec 2026 01:40:51 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46276606A322 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=f77DSBFyyoz8vhG4srljna96UGyKHYq51rPtQDDZa+Q=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796262050; v=1; x=1796866850; b=FIj1doZTt3rTPOYGIr7zqbbRIv9AsiIcAYagz5/lf4o3cVY7hKCNSx81I+6XHtiTrj7Imrhm RwneLiak5xJrPuKqN3IqJR3aw2Rak6F1ivUmg6GMeiRovEyRgWqlLCE4O3A0MQRpJuLp9Bsv8+s 2Bu85Ac7tkNyIZoi3pMXEj3I= X-Envelope-To: netdev@vger.kernel.org X-Received: by mta12.migadu.com with ESMTPS id dd0ec7c90abeaeab; Thu, 03 Dec 2026 01:40:49 +0000 X-Mizu-Trace-ID: dd0ec7c90abeaeab X-Migadu-Flow: FLOW_OUT X-Cc: netdev-bot+sinfo@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>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <7b2988d2-732c-4de2-8f54-8e6ecb08ef3b@redhat.com>