Re: [PATCH v3] ovpn: fix peer refcount leak in TCP error paths

From: Antonio Quartulli

Date: Thu May 28 2026 - 10:41:30 EST



On Sat, 23 May 2026 05:02:43 -0400, Pavitra Jha wrote:
> When either the TCP RX or TX error path calls ovpn_peer_hold() followed
> by schedule_work(&peer->tcp.defer_del_work), and the work item is already
> pending from the other path, schedule_work() returns false and the work
> runs only once. Since ovpn_tcp_peer_del_work() calls ovpn_peer_put()
> exactly once, the extra reference taken by the losing path is never
> dropped, leaking the peer object.
>
> [...]

Applied, thanks!

[1/1] ovpn: fix peer refcount leak in TCP error paths
commit: f9e5e5f464d7a7c5b71a48e06d616f57e05a66fd

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