From: Greg KH <gregkh@linuxfoundation.org>
To: Struan Bartlett <struan.bartlett@newsnow.co.uk>
Cc: stable@vger.kernel.org, Jay Vosburgh <jv@jvosburgh.net>,
Tonghao Zhang <tonghao@bamaicloud.com>,
Hangbin Liu <liuhangbin@gmail.com>,
netdev@vger.kernel.org
Subject: Re: [6.18.y] bonding: please apply 11ea9b8a88dd and 70fc6649b36c
Date: Sat, 31 Oct 2026 11:51:00 +0100 [thread overview]
Message-ID: <2026103152-plow-bounding-4370@gregkh> (raw)
In-Reply-To: <20261030225119.40765-1-struan.bartlett@newsnow.co.uk>
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
prev parent reply other threads:[~2026-10-31 10:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-30 22:51 [6.18.y] bonding: please apply 11ea9b8a88dd and 70fc6649b36c Struan Bartlett
2026-10-31 10:51 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2026103152-plow-bounding-4370@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=jv@jvosburgh.net \
--cc=liuhangbin@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=struan.bartlett@newsnow.co.uk \
--cc=tonghao@bamaicloud.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox