UPSTREAM: 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: e7096c13 ("net: WireGuard secure network tunnel")
Signed-off-by:
Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by:
Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 99fff526)
Bug: 187129171
Signed-off-by:
Connor O'Brien <connoro@google.com>
Change-Id: I5319983043b5205905268691a40bb779c88768e6
Loading
Please sign in to comment