Re: [PATCH] ovpn: avoid putting unrelated P2P peer on socket release

From: Antonio Quartulli

Date: Wed May 27 2026 - 08:45:30 EST



On Sat, 23 May 2026 16:15:43 +0800, Qing Ming wrote:
> ovpn_peer_release_p2p() is called when an OVPN UDP socket is being
> destroyed. It checks the currently published P2P peer and releases it only
> if that peer still uses the socket being destroyed.
>
> A peer replacement can publish a new peer before the old UDP socket is
> destroyed. When the old socket destruction path runs afterwards,
> ovpn_peer_release_p2p() observes the new peer through ovpn->peer. Since the
> new peer uses a different socket, the function takes the socket mismatch
> branch.
>
> [...]

Applied, thanks!

[1/1] ovpn: avoid putting unrelated P2P peer on socket release
commit: 532692e621e44252c99a3322c0604889f0af7dee

Best regards,
--
Antonio Quartulli <antonio@xxxxxxxxxxx>