From: Antonio Quartulli <[email protected]>
On Wed, 18 Nov 2026 16:25:07 +0800, liuchong via Openvpn-devel wrote:
> ovpn_tcp_read_sock() uses sock->peer without taking a reference.
> ovpn_peer_del() can drop the last hash-table reference while the
> TCP data_ready callback is still attached, so peer->refcount may
> already be zero when ovpn_peer_hold() is later called for
> ovpn_recv(). That leads to a WARN_ON and a refcount underflow when
> the async path puts the peer.
>
> [...]
Applied, thanks!
[1/1] ovpn-dco: hold peer ref in ovpn_tcp_read_sock under RCU
commit: af0f8bda7f8394e98943835d173d82d4f67d9392
Best regards,
--
Antonio Quartulli <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel