diff options
author | Willem de Bruijn <willemb@google.com> | 2014-11-19 13:10:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-21 14:43:07 -0500 |
commit | 9c7077622dd917457ced680a23b7f175769471d9 (patch) | |
tree | 8c162e5ef188298d9fce81c7d2a6fb216f2d0a5c /mm/gup.c | |
parent | df6ce47091620d76bbe036d0af3dc1abad4576c1 (diff) | |
download | op-kernel-dev-9c7077622dd917457ced680a23b7f175769471d9.zip op-kernel-dev-9c7077622dd917457ced680a23b7f175769471d9.tar.gz |
packet: make packet_snd fail on len smaller than l2 header
When sending packets out with PF_PACKET, SOCK_RAW, ensure that the
packet is at least as long as the device's expected link layer header.
This check already exists in tpacket_snd, but not in packet_snd.
Also rate limit the warning in tpacket_snd.
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/gup.c')
0 files changed, 0 insertions, 0 deletions