wireguard fixes for 5.13-rc5
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | wireguard: selftests: remove old conntrack kconfig valuetools/ | +0 | 0 replies | |
| 2/9 | wireguard: selftests: make sure rp_filter is disabled on vethctools/ | +1 | 0 replies | |
| 3/9 | wireguard: do not use -O3drivers/ | +1 | 0 replies | |
| 4/9 | wireguard: use synchronize_net rather than synchronize_rcudrivers/ drivers/ | +4 | 0 replies | |
| 5/9 | wireguard: peer: allocate in kmem_cachedrivers/ drivers/ drivers/ | +27 | 0 replies | |
| 6/9 | wireguard: allowedips: initialize list head in selftestdrivers/ | +2 | 0 replies | |
| 7/9 | wireguard: allowedips: remove nodes in O(1)drivers/ drivers/ | +57 | 0 replies | |
| 8/9 | wireguard: allowedips: allocate nodes in kmem_cachedrivers/ drivers/ drivers/ | +38 | 0 replies | |
| 9/9 | wireguard: allowedips: free empty intermediate nodes when removing single nodedrivers/ drivers/ drivers/ | +137 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net 0/9] wireguard fixes for 5.13-rc5
Hi Dave/Jakub,
Here are bug fixes to WireGuard for 5.13-rc5:
1-2,6) These are small, trivial tweaks to our test harness.
3) Linus thinks -O3 is still dangerous to enable. The code gen wasn't so much different with -O2 either.
4) We were accidentally calling synchronize_rcu instead of synchronize_net while holding the rtnl_lock, resulting in some rather large stalls that hit production machines.
5) Peer allocation was wasting literally hundreds of megabytes on real world deployments, due to oddly sized large objects not fitting nicely into a kmalloc slab.
7-9) We move from an insanely expensive O(n) algorithm to a fast O(1)
algorithm, and cleanup a massive memory leak in the process, in which allowed ips churn would leave danging nodes hanging around without cleanup until the interface was removed. The O(1) algorithm eliminates packet stalls and high latency issues, in addition to bringing operations that took as much as 10 minutes down to less than a second.
Thanks,
Jason