Home
last modified time | relevance | path

Searched hist:"99 fff5264e7ab06f45b0ad60243475be0a8d0559" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/wireguard/
H A Ddevice.cdiff 99fff5264e7ab06f45b0ad60243475be0a8d0559 Mon Feb 22 10:25:47 CST 2021 Jason A. Donenfeld <Jason@zx2c4.com> wireguard: device: do not generate ICMP for non-IP packets

If skb->protocol doesn't match the actual skb->data header, it's
probably not a good idea to pass it off to icmp{,v6}_ndo_send, which is
expecting to reply to a valid IP packet. So this commit has that early
mismatch case jump to a later error label.

Fixes: e7096c131e51 ("net: WireGuard secure network tunnel")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>