Revision 57031eb794906eea4e1c7b31dc1e2429c0af0c66 authored by Willem de Bruijn on 07 February 2017, 20:57:21 UTC, committed by David S. Miller on 08 February 2017, 18:56:37 UTC
Link layer protocols may unconditionally pull headers, as Ethernet does in eth_type_trans. Ensure that the entire link layer header always lies in the skb linear segment. tpacket_snd has such a check. Extend this to packet_snd. Variable length link layer headers complicate the computation somewhat. Here skb->len may be smaller than dev->hard_header_len. Round up the linear length to be at least as long as the smallest of the two. Reported-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 217e6fa
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 44 bytes |
Kconfig | -rw-r--r-- | 2.6 KB |
Makefile | -rw-r--r-- | 3.7 KB |
system_certificates.S | -rw-r--r-- | 917 bytes |
system_keyring.c | -rw-r--r-- | 6.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...