Netdev List
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Antonio Quartulli <antonio@openvpn.net>
Cc: netdev@vger.kernel.org, Sabrina Dubroca <sd@queasysnail.net>,
	Ralf Lici <ralf@mandelbit.com>, Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>
Subject: Re: [PATCH net 0/4] pull request: fixes for ovpn 2026-08-09
Date: Tue, 11 Aug 2026 11:51:25 +0100	[thread overview]
Message-ID: <20260811105125.GB51943@horms.kernel.org> (raw)
In-Reply-To: <20260809212142.2249027-1-antonio@openvpn.net>

On Sun, Aug 09, 2026 at 11:21:25PM +0200, Antonio Quartulli wrote:
> Hi all!
> 
> This is a resend of the patchset from Aug 7th, with the
> alloc_workqueue() warning fixed. I hope I am not too late!
> 
> This batch collects four ovpn fixes for net that I considered critical
> enough. Anything else has been postponed to after the release (or will
> directly go to net-next).
> 
> All patches in this set are from Ralf, addressing key-slot and workqueue
> lifetime issues:
> * a NULL dereference when killing a key that is not installed on the
>   peer;
> * crypto completion callbacks that could continue their cleanup after
>   releasing the peer reference gating netdev and module teardown;
> * deferred work running on the global workqueues with no driver-owned
>   drain point at module exit;
> * AEAD transforms being freed from an RCU callback even though
>   crypto_free_aead() may sleep.
> 
> The series went through six rounds of sashiko pre-review on
> openvpn-devel and should now be sashiko-free[tm].
> 
> Sashiko will still report pre-existing issues, but like I said above,
> they are not critical and will be addressed later.
> 
> 
> Please pull or let me know of any issue!
> 
> Thanks a lot,
> 	Antonio
> 
> The following changes since commit 594d905195024b228c962627ae5ae7c17bd582a4:
> 
>   af_unix: Unlink scc_entry in unix_del_edge(). (2026-08-06 11:52:48 -0700)
> 
> are available in the Git repository at:
> 
>   https://github.com/OpenVPN/ovpn-net-next.git tags/ovpn-net-20260809
> 
> for you to fetch changes up to 2da3dfa1ddfe55a065f484750c83660e3bd4ac00:
> 
>   ovpn: defer key slot crypto freeing to workqueue (2026-08-09 22:47:57 +0200)
> 
> ----------------------------------------------------------------
> Included fixes:
> * release key slot crypto transforms from a workqueue rather than an RCU
>   callback, because crypto_free_aead() may sleep with async or hardware
>   implementations
> * run all deferred ovpn work on a module-owned workqueue and drain it on
>   module exit, so no work item can still be executing module text after
>   the module is unloaded
> * finish crypto callback cleanup (key slot release and leftover skb)
>   before dropping the peer reference that gates netdev unregistration
>   and module removal
> * avoid dereferencing a NULL key slot when userspace asks to kill a key
>   that is not installed on the peer
> 
> ----------------------------------------------------------------
> Ralf Lici (4):
>       ovpn: fix NULL dereference when killing missing key
>       ovpn: finish crypto callback cleanup before peer release
>       ovpn: run deferred work on a module-owned workqueue
>       ovpn: defer key slot crypto freeing to workqueue

FTR, I reviewed this and it all looks good to me.

Reviewed-by: Simon Horman <horms@kernel.org>


      parent reply	other threads:[~2026-08-11 10:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-09 21:21 [PATCH net 0/4] pull request: fixes for ovpn 2026-08-09 Antonio Quartulli
2026-08-09 21:21 ` [PATCH net 1/4] ovpn: fix NULL dereference when killing missing key Antonio Quartulli
2026-08-09 21:21 ` [PATCH net 2/4] ovpn: finish crypto callback cleanup before peer release Antonio Quartulli
2026-08-09 21:21 ` [PATCH net 3/4] ovpn: run deferred work on a module-owned workqueue Antonio Quartulli
2026-08-09 21:21 ` [PATCH net 4/4] ovpn: defer key slot crypto freeing to workqueue Antonio Quartulli
2026-08-11 10:51 ` Simon Horman [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=20260811105125.GB51943@horms.kernel.org \
    --to=horms@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=antonio@openvpn.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=ralf@mandelbit.com \
    --cc=sd@queasysnail.net \
    /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