From: Hangbin Liu <liuhangbin@gmail.com>
To: Nikolay Aleksandrov <razor@blackwall.org>
Cc: netdev@vger.kernel.org, Jay Vosburgh <j.vosburgh@gmail.com>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Eric Dumazet <edumazet@google.com>,
Tariq Toukan <tariqt@nvidia.com>, Jianbo Liu <jianbol@nvidia.com>,
Sabrina Dubroca <sd@queasysnail.net>
Subject: Re: [PATCH net-next 0/2] Bonding: support new xfrm state offload functions
Date: Fri, 16 Aug 2024 16:32:58 +0800 [thread overview]
Message-ID: <Zr8Ouho0gi_oKIBu@Laptop-X1> (raw)
In-Reply-To: <334c87f5-cec8-46b5-a4d4-72b2165726d9@blackwall.org>
On Fri, Aug 16, 2024 at 09:06:12AM +0300, Nikolay Aleksandrov wrote:
> On 16/08/2024 06:55, Hangbin Liu wrote:
> > I planned to add the new XFRM state offload functions after Jianbo's
> > patchset [1], but it seems that may take some time. Therefore, I am
> > posting these two patches to net-next now, as our users are waiting for
> > this functionality. If Jianbo's patch is applied first, I can update these
> > patches accordingly.
> >
> > [1] https://lore.kernel.org/netdev/20240815142103.2253886-2-tariqt@nvidia.com
> >
> > Hangbin Liu (2):
> > bonding: Add ESN support to IPSec HW offload
> > bonding: support xfrm state update
> >
> > drivers/net/bonding/bond_main.c | 76 +++++++++++++++++++++++++++++++++
> > 1 file changed, 76 insertions(+)
> >
>
> (not related to this set, but to bond xfrm)
> By the way looking at bond's xfrm code, what prevents bond_ipsec_offload_ok()
> from dereferencing a null ptr?
> I mean it does:
> curr_active = rcu_dereference(bond->curr_active_slave);
> real_dev = curr_active->dev;
>
> If this is running only under RCU as the code suggests then
> curr_active_slave can change to NULL in parallel. Should there be a
> check for curr_active before deref or am I missing something?
Yes, we can do like
real_dev = curr_active ? curr_active->dev : NULL;
Thanks
Hangbin
next prev parent reply other threads:[~2024-08-16 8:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-16 3:55 [PATCH net-next 0/2] Bonding: support new xfrm state offload functions Hangbin Liu
2024-08-16 3:55 ` [PATCH net-next 1/2] bonding: Add ESN support to IPSec HW offload Hangbin Liu
2024-08-16 16:32 ` Simon Horman
2024-08-17 11:36 ` kernel test robot
2024-08-16 3:55 ` [PATCH net-next 2/2] bonding: support xfrm state update Hangbin Liu
2024-08-16 4:01 ` [PATCH net-next 0/2] Bonding: support new xfrm state offload functions Hangbin Liu
2024-08-16 6:00 ` Nikolay Aleksandrov
2024-08-16 8:35 ` Hangbin Liu
2024-08-16 6:06 ` Nikolay Aleksandrov
2024-08-16 8:32 ` Hangbin Liu [this message]
2024-08-16 8:37 ` Nikolay Aleksandrov
2024-08-16 9:04 ` Nikolay Aleksandrov
2024-08-16 9:58 ` Nikolay Aleksandrov
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=Zr8Ouho0gi_oKIBu@Laptop-X1 \
--to=liuhangbin@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=j.vosburgh@gmail.com \
--cc=jianbol@nvidia.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=razor@blackwall.org \
--cc=sd@queasysnail.net \
--cc=tariqt@nvidia.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