Files
linux/drivers
Jason A. Donenfeld 71cbd32e3d wireguard: netlink: access device through ctx instead of peer
The previous commit fixed a bug that led to a NULL peer->device being
dereferenced. It's actually easier and faster performance-wise to
instead get the device from ctx->wg. This semantically makes more sense
too, since ctx->wg->peer_allowedips.seq is compared with
ctx->allowedips_seq, basing them both in ctx. This also acts as a
defence in depth provision against freed peers.

Cc: stable@vger.kernel.org
Fixes: e7096c131e ("net: WireGuard secure network tunnel")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-03-19 11:22:50 +01:00
..
2024-02-06 20:07:35 +02:00
2024-02-16 18:51:00 -05:00
2024-03-03 02:32:35 +00:00
2024-03-07 20:26:24 -08:00
2024-03-11 17:11:28 -07:00
2024-01-05 15:55:41 +05:30
2024-02-06 20:07:12 +02:00
2024-01-04 17:03:47 +01:00
2024-02-19 11:10:55 +01:00
2024-01-12 12:38:37 +01:00