Article View: linux.kernel.netdev
Article #9120Re: [6.18.y] bonding: please apply 11ea9b8a88dd and 70fc6649b36c
From: Greg KH
Date: Sat, 31 Oct 2026 10:51
Date: Sat, 31 Oct 2026 10:51
59 lines
10282 bytes
10282 bytes
On Fri, Oct 30, 2026 at 10:51:18PM +0000, Struan Bartlett wrote:
> Hello,
>
> Please apply these two mainline commits (v7.0) to 6.18.y, in this
> order:
>
> 11ea9b8a88dd ("net: bonding: use workqueue to make sure peer notify updated in lacp mode")
> 70fc6649b36c ("net: bonding: move bond_should_notify_peers, e.g. into rtnl lock block")
>
> 70fc6649b36c fixes a fault from 7a9214f3d88c ("bonding: ARP monitor
> spams NETDEV_NOTIFY_PEERS notifiers") that is present in 6.18.y: in
> active-backup mode with the ARP monitor, if bond_ab_arp_commit() fails
> over while a peer notification is pending, bond_activebackup_arp_mon()
> decrements send_peer_notif a second time, on the strength of
> should_notify_peers computed before the failover. The counter wraps
> from 0 to UINT_MAX, and the bond then sends NETDEV_NOTIFY_PEERS every
> arp_interval for years. At boot this happens whenever a backup slave's
> link comes up shortly before the primary's. On our servers FRR's zebra
> counted each notification as the bond's link coming up, and ntpd never
> rescanned its interfaces, so the clock went unsynchronised.
>
> 11ea9b8a88dd is a prerequisite: it adds bond_peer_notify_may_events(),
> which 70fc6649b36c uses. Neither commit is tagged for stable. Both
> apply cleanly, in this order, to v6.18.60 and v6.18.9.
>
> Testing: Debian's 6.18.9-1~bpo13+1 kernel, booted in a VM, with the
> bonding module built from v6.18.9 against Debian's headers. A
> reproducer (two network namespaces: an active-backup bond with the ARP
> monitor over two veths to a bridge holding the ARP target; it fails
> over to the backup with num_grat_arp 255, then lets the ARP monitor
> fail back to the primary with num_grat_arp 1 while a notification is
> pending) counted the bond's NETDEV_NOTIFY_PEERS events for 3 s just
> after the failback and, if there were any, for 3 s again 30 s later,
> after the 255 would have run out. With arp_interval 100, a bond that
> notifies on every ARP monitor run sends about 30 in 3 s:
>
> bonding module after 30 s later
> Debian's 29 28
> v6.18.9, unchanged 29 29
> v6.18.9 + 11ea9b8a88dd + 70fc6649b36c 0 -
>
> Neither commit applies to 6.12.y, so I am sending a minimal equivalent
> patch for 6.12.y separately, with the reproducer:
> "[PATCH 6.12.y] bonding: re-check pending peer notification under RTNL
> in ARP monitor".
>
> An AI coding assistant (Claude, model claude-opus-5-5) helped trace
> the fault, wrote this request and the reproducer, and built and ran
> the tests above under my direction. I have reviewed this request.
>
> Thank you,
>
> Struan Bartlett
>
Now queued up, thanks.
greg k-h
Technical Details
Message-ID:
<2026103152-plow-bounding-4370@gregkh>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354062-linux-kernel-netdev=dewy.ruReferences:
<20261030225119.40765-1-struan.bartlett@newsnow.co.uk>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354062-linux-kernel-netdev=dewy.ru From: gregkh@linuxfoundation.org (Greg KH) Newsgroups: linux.kernel.netdev Subject: Re: [6.18.y] bonding: please apply 11ea9b8a88dd and 70fc6649b36c Date: Sat, 31 Oct 2026 11:51:00 +0100 Organization: Usenet Network Message-ID: <2026103152-plow-bounding-4370@gregkh> References: <20261030225119.40765-1-struan.bartlett@newsnow.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2437354"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:R2neBug2VfmZV4wCXAu29VT5ORQ= sha256:OCk8sR+e6/jj8VxDOpFAYCPHzli4w36LFO1faBbgui8= sha1:K1T49t5bcqCGXmcdMH8Z9JA8pM4= sha256:prI5+SJVgDkNVdPMQsjhWeiceKp7BC76y+ktN/4ZeHw= 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 6E13C125CB5; Sat, 31 Oct 2026 13:51:32 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linuxfoundation.org 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 j3wF-g3RHehB; Sat, 31 Oct 2026 13:51:30 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-354062-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 60A211239A3; Sat, 31 Oct 2026 13:51:18 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 1F604266C5; Sat, 31 Oct 2026 10:51:12 +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=1793443869; b=MnvNzaQVk1v6Hnfw6MocWBGdjKTAURUzwWAIwUUX+DLQEkOKmNSnhH6OUIWJcGk0CdZk 1IwT1umZrmyaSHX3Ff2A8syfze85NlemLRL0yLcomWSZiU1MVetEgwuaF8Qr3xI0dWXO5 x5OfdHhDmAfsQKBhJdiC7XyBDyVMHqvmaq7UCQ+UB6HAKuThlS3gX26OEqD1py+u7p75z ii2Kvljms+2ZzNoZvbiKvaMhAjs2l808QAbcymZn9g8K9OE9gOOJdILQniqpZ8xzxPuue sBrnS9AEPFyAoANCdLLFUTx7XH+trWVmoZEhQunbjix7/ZL50XcpXI9GYXUmBdU1T7A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793443869; h=X-Original-To:Received:Received:DKIM-Signature: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:In-Reply-To; bh=B+jxDJoZ2NJnuhxlFqog+6PCeIn6ndLBhf8KyfLiV6k=; b=5pHDk3nmEiCB+x8sXrPWODX2HoSxiIjqyoerMjKIvpCUmAoE864a9Abw3QS36FTIg6BV oLZtDYEBgtrcb96CUECGleUCM2Wm7V/lwVXZWpTApkMj9r/3ppIfWhM1upy6dZNQ3WWPF V/lRjxl4u/nakvXVRdzTMxxarFaK0dlBTAufNuuHfrVcm9vGoMEKrNXrq6hreFaFOeMuG x0jkadpCBFDrm/4LDqD8BJsSIC+8BwuLb3WUOiQXSIr3lTUJgKHLzTqCsXXAlBkLTMaV1 H4wZ9uqnhCXIEvBcWA4rty70pP9kBCu8yyVLMnNKHVLbYokNkRhardNKVzWxrZOmKHg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Jva9haJ+; 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 A243B606A323; Sat, 31 Oct 2026 10:51:09 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Jva9haJ+ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793443868; b=lvp1KxwUEvMPtpD6ydChzHBEXPU/j6FKTA9iBKWGjxCxzvxRNAuzIJMlP4fT3Dx0U5sm 21VzVkmDYAGJ/gRfA9d9L7TcQwQiwyuY+h/Si6CKWSwL9hNjqWQUvtPTTE3p8nBx+RAFK iZXpzU3wcqUvLQn5WoVPAdZbNWkmnMnYLs7lyhwLMcjXCksQqn0C/hGGDg0FDvsOqOKxe Z7+sK/0yzaEj8u7+6ymfSYFYnNJDzOPJ7vs4x9mNVrGFsVfQJ6c/4XxgGHijzMp8dwmLa u6wKro/9HO88x+/DR3ZL6V6a4ou4E/wYbek6ixGMtdcCFzvzJNj7orc55AfQpmD6/hg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793443868; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=B+jxDJoZ2NJnuhxlFqog+6PCeIn6ndLBhf8KyfLiV6k=; b=Yqum4gK7s9XRSVbOaOiF3WkATic99A5LK2P72yUKh02yiyvsAewJZt68fFmaGts1mPvw dP0ACmboklmT1GMBo8eG3y5UVSrE7HfA7gTH56oPRuwVkmoqrgyoJ8UwWEjPGzANM8IPw ZQ+yrA3KPjI2s/ggwKnUSHJj3BV35hT1FL0e2MmLmqHP60mzOa99h1cnzsU5+9h6xLdxx +FyDZEiVWNEUMGyS3i+MJ9G93EPw/Iu86Rt0MmHvAQYyRsNLdPqLTOM6Zaayk6MbXvQIM cHBVvq2X5KPoauHfnzn3OxWmf1sQyfgLugyXRoFkCdXmGmuwwGiUAPWomn7hmRvvcBw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Jva9haJ+; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78D31606A31A; Sat, 31 Oct 2026 10:51:08 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3054C1F000C1; Sat, 31 Oct 2026 10:51:07 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793443868; bh=B+jxDJoZ2NJnuhxlFqog+6PCeIn6ndLBhf8KyfLiV6k=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Jva9haJ+ipJNYhfANxPztypI3ud9UGF+NpPwp+IoM8fuKJtLIWnQAa12TjZhTMUXm HXjxlEeIJ6ozR3hBLCnXpnvttKpSekaWRc9uwodgoihZl4uvmOgmD395n47ZWwhsgb GWnMvciZCDWg1G9JJcNu7MoJew5MJ3MYxwSCgNSM= X-Cc: stable@vger.kernel.org, Jay Vosburgh <jv@jvosburgh.net>, Tonghao Zhang <tonghao@bamaicloud.com>, Hangbin Liu <liuhangbin@gmail.com>, netdev@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: <20261030225119.40765-1-struan.bartlett@newsnow.co.uk>