diff options
author | Willem de Bruijn <willemb@google.com> | 2016-03-09 21:58:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-20 15:42:01 +0900 |
commit | edb60bc7bb4ee6e3862aa8840a65cce47e09dcfe (patch) | |
tree | 13a249f7f0d3332d9edbbf623d83924b2ab7ca1c /kernel | |
parent | abd42587771aff48c39312116e8b8db851ea0fa5 (diff) |
packet: validate variable length ll headers
[ Upstream commit 9ed988cd591500c040b2a6257bc68543e08ceeef ]
Replace link layer header validation check ll_header_truncate with
more generic dev_validate_header.
Validation based on hard_header_len incorrectly drops valid packets
in variable length protocols, such as AX25. dev_validate_header
calls header_ops.validate for such protocols to ensure correctness
below hard_header_len.
See also http://comments.gmane.org/gmane.linux.network/401064
Fixes 9c7077622dd9 ("packet: make packet_snd fail on len smaller than l2 header")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions