summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorAlexander Drozdov2015-07-28 12:57:01 +0200
committerDavid S. Miller2015-07-29 09:09:58 +0200
commitdbd46ab412b8fb395f2b0ff6f6a7eec9df311550 (patch)
tree119701e15a3be300e89a3cfd2860e51f16ea86ad /Documentation
parentarp: filter NOARP neighbours for SIOCGARP (diff)
downloadkernel-qcow2-linux-dbd46ab412b8fb395f2b0ff6f6a7eec9df311550.tar.gz
kernel-qcow2-linux-dbd46ab412b8fb395f2b0ff6f6a7eec9df311550.tar.xz
kernel-qcow2-linux-dbd46ab412b8fb395f2b0ff6f6a7eec9df311550.zip
packet: tpacket_snd(): fix signed/unsigned comparison
tpacket_fill_skb() can return a negative value (-errno) which is stored in tp_len variable. In that case the following condition will be (but shouldn't be) true: tp_len > dev->mtu + dev->hard_header_len as dev->mtu and dev->hard_header_len are both unsigned. That may lead to just returning an incorrect EMSGSIZE errno to the user. Fixes: 52f1454f629fa ("packet: allow to transmit +4 byte in TX_RING slot for VLAN case") Signed-off-by: Alexander Drozdov <al.drozdov@gmail.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions