ovpn: fix issues reported by Sashiko
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ovpn: reset dst cache before publishing a new binddrivers/ drivers/ | +11 | 0 replies | |
| 2/3 | ovpn: release netdev reference from the peer RCU callbackdrivers/ | +4 | 0 replies | |
| 3/3 | selftests: ovpn: check the error of duplicate VPN address teststools/ tools/ | +40 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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