diff options
author | Willem de Bruijn <willemb@google.com> | 2014-11-19 18:10:16 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-21 19:43:07 (GMT) |
commit | 9c7077622dd917457ced680a23b7f175769471d9 (patch) | |
tree | 8c162e5ef188298d9fce81c7d2a6fb216f2d0a5c /drivers/ata/pata_atp867x.c | |
parent | df6ce47091620d76bbe036d0af3dc1abad4576c1 (diff) | |
download | linux-9c7077622dd917457ced680a23b7f175769471d9.tar.xz |
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 'drivers/ata/pata_atp867x.c')
0 files changed, 0 insertions, 0 deletions