Skip to content

wireguard/siphash patches for 5.16-rc6

Jason A. Donenfeld netdev stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10wireguard: allowedips: add missing __rcu annotation to satisfy sparsedrivers/net/wireguard/allowedips.c+1 -10 replies
2/10wireguard: selftests: increase default dmesg log sizetools/testing/selftests/wireguard/qemu/kernel.config+1 -00 replies
3/10wireguard: selftests: actually test for routing loopstools/testing/selftests/wireguard/netns.sh+5 -10 replies
4/10wireguard: main: rename 'mod_init' & 'mod_exit' functions to be module-specificdrivers/net/wireguard/main.c+4 -40 replies
5/10wireguard: selftests: rename DEBUG_PI_LIST to DEBUG_PLISTtools/testing/selftests/wireguard/qemu/debug.config+1 -10 replies
6/10wireguard: device: reset peer src endpoint when netns exitsdrivers/net/wireguard/device.c drivers/net/wireguard/socket.c include/net/dst_cache.h +2 more+57 -21 reply
7/10wireguard: receive: use ring buffer for incoming handshakesdrivers/net/wireguard/device.c drivers/net/wireguard/device.h drivers/net/wireguard/queueing.c +2 more+37 -430 replies
8/10wireguard: receive: drop handshakes if queue lock is contendeddrivers/net/wireguard/receive.c+13 -30 replies
9/10wireguard: ratelimiter: use kvcalloc() instead of kvzalloc()drivers/net/wireguard/ratelimiter.c+2 -20 replies
10/10siphash: use _unaligned version by defaultinclude/linux/siphash.h lib/siphash.c+10 -160 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchJason A. DonenfeldArd BiesheuvelHangbin LiuToke Høiland-Jørgensen
1/10
2/10
3/10
4/10
5/10
6/10Test-by A-b
7/10
8/10
9/10
10/10R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH net 00/10] wireguard/siphash patches for 5.16-rc6

Hi Dave/Jakub,

Here's quite a largeish set of stable patches I've had queued up and testing for a number of months now:

- Patch (1) squelches a sparse warning by fixing an annotation.
- Patches (2), (3), and (5) are minor improvements and fixes to the test suite.
- Patch (4) is part of a tree-wide cleanup to have module-specific init and exit functions.
- Patch (6) fixes a an issue with dangling dst references, by having a function to release references immediately rather than deferring, and adds an associated test case to prevent this from regressing.
- Patches (7) and (8) help mitigate somewhat a potential DoS on the ingress path due to the use of skb_list's locking hitting contention on multiple cores by switching to using a ring buffer and dropping packets on contention rather than locking up another core spinning.
- Patch (9) switches kvzalloc to kvcalloc for better form.
- Patch (10) fixes alignment traps in siphash with clang-13 (and maybe other compilers) on armv6, by switching to using the unaligned functions by default instead of the aligned functions by default.

Thanks,
Jason

Arnd Bergmann (1):
siphash: use _unaligned version by default

Gustavo A. R. Silva (1):
wireguard: ratelimiter: use kvcalloc() instead of kvzalloc()

Jason A. Donenfeld (6):
wireguard: allowedips: add missing __rcu annotation to satisfy sparse
wireguard: selftests: increase default dmesg log size
wireguard: selftests: actually test for routing loops
wireguard: device: reset peer src endpoint when netns exits
wireguard: receive: use ring buffer for incoming handshakes
wireguard: receive: drop handshakes if queue lock is contended

Li Zhijian (1):
wireguard: selftests: rename DEBUG_PI_LIST to DEBUG_PLIST

Randy Dunlap (1):
wireguard: main: rename 'mod_init' & 'mod_exit' functions to be
module-specific

 drivers/net/wireguard/allowedips.c            |  2 +-
 drivers/net/wireguard/device.c                | 39 ++++++++++---------
 drivers/net/wireguard/device.h                |  9 ++---
 drivers/net/wireguard/main.c                  |  8 ++--
 drivers/net/wireguard/queueing.c              |  6 +--
 drivers/net/wireguard/queueing.h              |  2 +-
 drivers/net/wireguard/ratelimiter.c           |  4 +-
 drivers/net/wireguard/receive.c               | 39 +++++++++++--------
 drivers/net/wireguard/socket.c                |  2 +-
 include/linux/siphash.h                       | 14 ++-----
 include/net/dst_cache.h                       | 11 ++++++
 lib/siphash.c                                 | 12 +++---
 net/core/dst_cache.c                          | 19 +++++++++
 tools/testing/selftests/wireguard/netns.sh    | 30 +++++++++++++-
 .../selftests/wireguard/qemu/debug.config     |  2 +-
 .../selftests/wireguard/qemu/kernel.config    |  1 +
 16 files changed, 129 insertions(+), 71 deletions(-)
Signature · 1 line
2.34.1