pull request: ovpn for net 2026-02-12
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ovpn: set sk_user_data before overriding callbacksdrivers/ drivers/ drivers/ | +29 | 0 replies | Applied |
| 2/3 | ovpn: fix possible use-after-free in ovpn_net_xmitdrivers/ | +31 | 0 replies | Applied |
| 3/3 | ovpn: fix VPN TX bytes countingdrivers/ | +4 | 0 replies | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Sabrina Dubroca |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net 0/3] pull request: ovpn for net 2026-02-12
Hi netdev-team,
In this batch you can three fixes:
1) ensure that sk_user_data is set before configuring socket callbacks. This way we avoid dropping early packets received by the CB when the ovpn data is not yet configured.
2) fix use-after-free in ovpn_net_xmit by not blindly assuming that the first skb segment will always be valid. It may actually be released by skb_share_check.
3) properly increase TX stats, by counting bytes of all segments that have been properly processed, instead of just counting the first segment only.
Please pull or let me know of any issue!
Thanks a lot.
Antonio,
The following changes since commit bf9cf80cab81e39701861a42877a28295ade266f:
net: macb: Fix tx/rx malfunction after phy link down and up (2026-02-11 13:13:41 +0100)
are available in the Git repository at:
https://github.com/OpenVPN/ovpn-net-next.git tags/ovpn-net-20260212
for you to fetch changes up to b660b13d4c6379ca6360f24aaef8c5807fefd237:
ovpn: fix VPN TX bytes counting (2026-02-12 15:28:59 +0100)
----------------------------------------------------------------
This batch includes the following fixes:
* set sk_user_data before installing callbacks, to avoid dropping early packets
* fix use-after-free in ovpn_net_xmit when accessing shared skbs that got released
* fix TX bytes stats by adding-up every positively processed GSO segment
----------------------------------------------------------------
Ralf Lici (3):
ovpn: set sk_user_data before overriding callbacks
ovpn: fix possible use-after-free in ovpn_net_xmit
ovpn: fix VPN TX bytes counting
drivers/net/ovpn/io.c | 55 +++++++++++++++++++++++++++++------------------ drivers/net/ovpn/socket.c | 39 +++++++++++++++++---------------- drivers/net/ovpn/tcp.c | 9 ++++++-- drivers/net/ovpn/udp.c | 1 + 4 files changed, 63 insertions(+), 41 deletions(-)