mbox series

[net,0/2] wireguard: device: fix metadata_dst xmit null pointer dereference

Message ID 20220414104458.3097244-1-razor@blackwall.org (mailing list archive)
Headers show
Series wireguard: device: fix metadata_dst xmit null pointer dereference | expand

Message

Nikolay Aleksandrov April 14, 2022, 10:44 a.m. UTC
Hi,
Patch 01 fixes a null pointer dereference in wireguard's xmit path when
transmitting skbs with metadata_dst attached. Patch 02 adds a selftest for
that case using bpf_skb_set_tunnel_key on wg device's egress path.

Thanks,
 Nik

Nikolay Aleksandrov (2):
  wireguard: device: fix metadata_dst xmit null pointer dereference
  wireguard: selftests: add metadata_dst xmit selftest

 drivers/net/wireguard/device.c             |  3 +-
 tools/testing/selftests/wireguard/netns.sh | 63 ++++++++++++++++++++++
 2 files changed, 65 insertions(+), 1 deletion(-)