diff options
| author | Ying Xue <ying.xue@windriver.com> | 2012-08-16 12:09:12 +0000 | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-08-20 02:26:31 -0700 | ||||||||||||||||||||||
| commit | 61cdd4d80b29cfdee45920238eea2d1fbb51f922 (patch) | |||||||||||||||||||||||
| tree | 44df7d9694b581afae71955030ffbad25a4aee15 /net/tipc | |||||||||||||||||||||||
| parent | f046e7d9be1cbb3335694c7f9a31d18e1f998ff5 ([ Upstream commit 57031eb794906eea4e1c7b31dc1e2429c0af0c66 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
ould cause cacheline
bouncing.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
3 files changed, 11 insertions, 11 deletions
| |||||||||||||||||||||||
