path: root/tools/testing/ktest
diff options
authorJason A. Donenfeld <Jason@zx2c4.com>2021-08-13 03:00:08 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-09-08 19:37:09 +0200
commit42249dba6b4695c53b12545eda4f06eb90dc5ff8 (patch)
tree449dcea2977a8b2c5ca19f1eb69afa282bba5a71 /tools/testing/ktest
parentwireguard: receive: use ring buffer for incoming handshakes (diff)
wireguard: receive: drop handshakes if queue lock is contended
If we're being delivered packets from multiple CPUs so quickly that the ring lock is contended for CPU tries, then it's safe to assume that the queue is near capacity anyway, so just drop the packet rather than spinning. This helps deal with multicore DoS that can interfere with data path performance. It _still_ does not completely fix the issue, but it again chips away at it. Reported-by: Streun Fabio <fstreun@student.ethz.ch> Cc: stable@vger.kernel.org Fixes: e7096c131e51 ("net: WireGuard secure network tunnel") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tools/testing/ktest')
0 files changed, 0 insertions, 0 deletions