From: sashiko-bot@kernel.org
To: "Hangbin Liu" <hangbin.liu@linux.dev>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH net-next 1/6] bonding: check XDP support before enslaving changes state
Date: Sat, 14 Nov 2026 14:06:50 +0000 [thread overview]
Message-ID: <sashiko-outbox-214603@kernel.org> (raw)
In-Reply-To: <20261113-bond_enslave_restruct-v1-1-364c549e78db@kylinos.cn>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] bonding: missing Fixes trailer for bond_enslave() XDP check fix
--
commit 13721b74b0f4f7f2e2971839a9fe53fd558da85a
Author: Hangbin Liu <hangbin.liu@linux.dev>
> bonding: check XDP support before enslaving changes state
>
> The XDP capability checks (ndo_bpf/ndo_xdp_xmit) and the slave XDP
> program count check in bond_enslave() run after the slave has already
> been opened, attached and made visible to the datapath. In particular
> the slave can become bond->curr_active_slave, or be published via
> bond->slave_cnt, before we verify that slave_dev->netdev_ops->ndo_xdp_xmit
> exists, so bond_xdp_xmit() may call a NULL ndo_xdp_xmit.
>
> Move both checks to the validation section at the top of bond_enslave(),
> before the first state change. On failure nothing has been mutated yet,
> so the function can return directly. The dev_xdp_propagate() setup is
> left in place for now and still uses the same error path.
>
> Error messages and errno values are unchanged (-EOPNOTSUPP with the
> same netlink extack strings), and the success path is unaffected
> beyond running the read-only checks earlier.
>
> Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn>
[Severity: Low]
Since this fixes a NULL ndo_xdp_xmit dereference when enslaving a slave
on an XDP-enabled bond, should it include a Fixes: tag?
Fixes: 9e2ee5c7e7c3 ("net, bonding: Add XDP support to the bonding driver")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261113-bond_enslave_restruct-v1-0-364c549e78db@kylinos.cn?part=1
next prev parent reply other threads:[~2026-11-14 14:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 14:04 [PATCH net-next 0/6] bonding: refactor bond_enslave() to fix XDP ordering and error rollback Hangbin Liu
2026-11-13 14:04 ` [PATCH net-next 1/6] bonding: check XDP support before enslaving changes state Hangbin Liu
2026-11-14 14:06 ` sashiko-bot [this message]
2026-11-13 14:04 ` [PATCH net-next 2/6] bonding: finish XDP setup before publishing the slave Hangbin Liu
2026-11-14 14:06 ` sashiko-bot
2026-11-13 14:04 ` [PATCH net-next 3/6] bonding: complete rollback of bond_enslave() error paths Hangbin Liu
2026-11-14 14:06 ` sashiko-bot
2026-11-13 14:04 ` [PATCH net-next 4/6] bonding: factor out slave publication Hangbin Liu
2026-11-13 14:04 ` [PATCH net-next 5/6] bonding: factor out XDP slave check Hangbin Liu
2026-11-13 14:04 ` [PATCH net-next 6/6] bonding: factor out bond_enslave_validate Hangbin Liu
2026-11-13 14:11 ` [PATCH net-next 0/6] bonding: refactor bond_enslave() to fix XDP ordering and error rollback netdev-bot+sinfo
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=sashiko-outbox-214603@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=hangbin.liu@linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.