Skip to content

ovpn: fix issues reported by Sashiko

Ralf Lici openvpn-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ovpn: reset dst cache before publishing a new binddrivers/net/ovpn/netlink.c drivers/net/ovpn/peer.c+11 -60 replies
2/3ovpn: release netdev reference from the peer RCU callbackdrivers/net/ovpn/peer.c+4 -10 replies
3/3selftests: ovpn: check the error of duplicate VPN address teststools/testing/selftests/net/ovpn/common.sh tools/testing/selftests/net/ovpn/test.sh+40 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Openvpn-devel] [PATCH ovpn net 0/3] ovpn: fix issues reported by Sashiko

Hi,

This series fixes a few issues that Sashiko reported while reviewing earlier ovpn patches and that were still present on current ovpn-net-next main. All of them are pre-existing problems, not regressions introduced by the patches under review, which is why they went unaddressed so far.

Patch 1 resets the peer dst cache before publishing a new bind when the remote or local endpoint changes. With the opposite order a concurrent TX could pair the new bind with a route cached for the old one, and on a cross-family float even get a dst of the wrong family.

Patch 2 drops the netdev reference from the peer RCU callback instead of right after call_rcu, where the peer could already have been freed.

Patch 3 makes the duplicate VPN address selftests require the expected error, so that they cannot pass on an unrelated failure.

Each patch links to the Sashiko report it addresses.

Thanks,

Ralf Lici
Mandelbit Srl

---
Ralf Lici (3):
ovpn: reset dst cache before publishing a new bind
ovpn: release netdev reference from the peer RCU callback
selftests: ovpn: check the error of duplicate VPN address tests

 drivers/net/ovpn/netlink.c                 |  7 +++++-
 drivers/net/ovpn/peer.c                    | 15 ++++++++-----
 tools/testing/selftests/net/ovpn/common.sh | 21 +++++++++++++++++
 tools/testing/selftests/net/ovpn/test.sh   | 26 ++++++++++++++++------
 4 files changed, 55 insertions(+), 14 deletions(-)

base-commit: 7ccc5e05043b1bb84326b19a2b05938d8f7a2ae6

Signature · 8 lines
2.56.0



_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel