linux/tools/testing/selftests/net/ovpn
Jakub Kicinski d73a2e81f3 Included fixes:
* ensure keepalive timestamps are computed using monotonic source
 * avoid UAF in unlock_ovpn() when iterating over release_list
 * fix memleak in selftest tool
 * ensure reference to peer is acquired before scheduling worker
   (which may drop the not-yet-taken ref)
 * fix refcount leak in case of concurrent TX and RX TCP error
 * fix potential refcount unbalance in case of sock release in
   P2P mode
 -----BEGIN PGP SIGNATURE-----
 
 iJEEABYIADkWIQQr0db7q+Rc7Zog28Fc8QQzwdnOtwUCal4xNRsUgAAAAAAEAA5t
 YW51MiwyLjUrMS4xMiwyLDIACgkQXPEEM8HZzrcjWQEAzhUfvdvKlB0R3IjYs5ze
 xUocdtTNVf3B2mOzRDMeu9oA/0PlyHorMDIi5l4ffiz+yzqbsul3929KjsRwTWnd
 E8gI
 =sQH6
 -----END PGP SIGNATURE-----

Merge tag 'ovpn-net-20260720' of https://github.com/OpenVPN/ovpn-net-next

Antonio Quartulli says:

====================
Included fixes:
* ensure keepalive timestamps are computed using monotonic source
* avoid UAF in unlock_ovpn() when iterating over release_list
* fix memleak in selftest tool
* ensure reference to peer is acquired before scheduling worker
  (which may drop the not-yet-taken ref)
* fix refcount leak in case of concurrent TX and RX TCP error
* fix potential refcount unbalance in case of sock release in
  P2P mode

* tag 'ovpn-net-20260720' of https://github.com/OpenVPN/ovpn-net-next:
  ovpn: use monotonic clock for peer keepalive timeouts
  ovpn: fix use after free in unlock_ovpn()
  selftests/net: ovpn: fix getaddrinfo memory leak in ovpn_parse_remote()
  ovpn: hold peer before scheduling keepalive work
  ovpn: fix peer refcount leak in TCP error paths
  ovpn: avoid putting unrelated P2P peer on socket release
====================

Link: https://patch.msgid.link/20260720144131.3657121-1-antonio@openvpn.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-07-23 10:04:17 -07:00
..
json selftests: ovpn: check asymmetric peer-id 2026-03-17 11:09:05 +01:00
.gitignore
common.sh selftests: ovpn: align command flow with TAP 2026-04-17 10:54:03 +02:00
config selftests: ovpn: add IPV6 and VETH configs 2026-07-21 15:01:30 -07:00
data64.key selftests: ovpn: allow compiling ovpn-cli.c with mbedtls3 2026-03-17 11:08:54 +01:00
Makefile selftests: ovpn: add test for the FW mark feature 2026-03-17 11:09:20 +01:00
ovpn-cli.c selftests/net: ovpn: fix getaddrinfo memory leak in ovpn_parse_remote() 2026-07-20 15:49:55 +02:00
settings selftests: ovpn: increase timeout 2026-07-21 15:01:30 -07:00
tcp_peers.txt selftests: ovpn: check asymmetric peer-id 2026-03-17 11:09:05 +01:00
test-chachapoly.sh selftests: ovpn: add prefix to helpers and shared variables 2026-04-17 10:54:03 +02:00
test-close-socket-tcp.sh selftests: ovpn: add prefix to helpers and shared variables 2026-04-17 10:54:03 +02:00
test-close-socket.sh selftests: ovpn: reduce remaining ping flood counts 2026-05-14 16:24:45 +02:00
test-float.sh selftests: ovpn: add prefix to helpers and shared variables 2026-04-17 10:54:03 +02:00
test-large-mtu.sh selftest/net/ovpn: fix missing file 2025-06-03 13:08:15 +02:00
test-mark.sh selftests: ovpn: reduce remaining ping flood counts 2026-05-14 16:24:45 +02:00
test-symmetric-id-float.sh selftests: ovpn: add prefix to helpers and shared variables 2026-04-17 10:54:03 +02:00
test-symmetric-id-tcp.sh selftests: ovpn: add prefix to helpers and shared variables 2026-04-17 10:54:03 +02:00
test-symmetric-id.sh selftests: ovpn: add prefix to helpers and shared variables 2026-04-17 10:54:03 +02:00
test-tcp.sh selftests: ovpn: add prefix to helpers and shared variables 2026-04-17 10:54:03 +02:00
test.sh selftests: ovpn: reduce remaining ping flood counts 2026-05-14 16:24:45 +02:00
udp_peers.txt selftests: ovpn: check asymmetric peer-id 2026-03-17 11:09:05 +01:00