From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.81 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796262053; b=iwaDOs1kpaGPpILd4Nxg8iTemu+VrMf4RAOW8C5NPIGD/K/mI9rxznybSbP2Q90Adora NhNSOI6/Kr/wODaWrbG/kZgPmt7BrLYyjPm61JlfvTSF5GFJ+m7Tz1ziXop/06jI5vekF FpUsd4jo1f7ptvMDczDln7tHBSdOwRqrV5/xZx5ZZwn67N+iUXl/kKnX8MlxJkosHayqE YOYyODkJOCLNi6T2pPd1ee060Tr3FyCdqGv0Ey8R4nduK8tJanXOaemnhT0w2oOgUWiWm 4cgqbBbqx1v2y1C0ZJhA50ibpP03rO/ZZ5KceEJ8BLtwqBi52fSacfa2k8/tJdq/XOg== 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=xLRq+K0/3BFzo0QUMt5PxvH/epiS2CIZdJV12RXBp+7RWN2C3sKdiSn0fBNQKaFa2Lvy oartV9XZumwBf70U6dQ16QC2jgpeHFPtI9BgDdvuI2PWJkVm+Bj5QMr4zMzUsW3eGl3Ll uu0R4X8uyuxt1828bEfjIeIhMV7GX0Wv96jSOdCDHA8dnYEep8JnnPwux/ViGfu0Fnfzz xeKqYmf1xrIgAH4QOo6OaKkEvvRGn81SED1cxPiE12K9pmNypvpQ/g6042Rmn90IEKNO0 /CWwDFt3hiU9rs2qp2zPIwaLqCJ4Bx5bLRg3BGSYfJgVPFSajHfOhxe5DsC341ifYvg== 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=95.215.58.81 Received: from mta1.migadu.com (out-81.mta1.migadu.com [95.215.58.81]) (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 4663A606A32C for ; Thu, 3 Dec 2026 01:40:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4663A606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev 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-Envelope-To: linux-kernel@vger.kernel.org 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: linux-kernel@vger.kernel.org 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 Date: Thu, 3 Dec 2026 09:40:39 +0800 From: Hangbin Liu To: Paolo Abeni Cc: netdev-bot+sinfo@kernel.org, Jay Vosburgh , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] bonding: roll back fail_over_mac if enslave fails Message-ID: References: <20261124-bond_fail_over_mac-v1-1-9caee319331f@kylinos.cn> <179552388563.3294.14587394953378202358@kernel.org> <7b2988d2-732c-4de2-8f54-8e6ecb08ef3b@redhat.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7b2988d2-732c-4de2-8f54-8e6ecb08ef3b@redhat.com> 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