diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-11-29 19:50:50 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-29 19:50:51 -0800 |
commit | afd02352ddd8fd448620078b1a2784b71b74e60a (patch) | |
tree | 92b3d56e173a3bf1b17a9387f5d126a2f3dfb216 /drivers/net/wireguard/socket.c | |
parent | e295886bcbaef6f7e4740d16d12d9f6b72908226 (diff) | |
parent | 0065ed65b309439c1ea2d70c717c73672550ae6a (diff) | |
download | wireguard-linux-trimmed-afd02352ddd8fd448620078b1a2784b71b74e60a.tar.gz wireguard-linux-trimmed-afd02352ddd8fd448620078b1a2784b71b74e60a.zip |
Merge branch 'wireguard-siphash-patches-for-5-16-rc6'
Jason A. Donenfeld says:
====================
wireguard/siphash patches for 5.16-rc
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.
====================
Link: https://lore.kernel.org/r/20211129153929.3457-1-Jason@zx2c4.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/wireguard/socket.c')
-rw-r--r-- | drivers/net/wireguard/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireguard/socket.c b/drivers/net/wireguard/socket.c index 8c496b7..6f07b94 100644 --- a/drivers/net/wireguard/socket.c +++ b/drivers/net/wireguard/socket.c @@ -308,7 +308,7 @@ void wg_socket_clear_peer_endpoint_src(struct wg_peer *peer) { write_lock_bh(&peer->endpoint_lock); memset(&peer->endpoint.src6, 0, sizeof(peer->endpoint.src6)); - dst_cache_reset(&peer->endpoint_cache); + dst_cache_reset_now(&peer->endpoint_cache); write_unlock_bh(&peer->endpoint_lock); } |