summaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorEldad Zack2012-05-20 03:59:33 +0200
committerDavid S. Miller2012-05-20 22:58:39 +0200
commit9b905fe68433378032b851c4d81a59187689fa52 (patch)
tree307801197cf9ce8b520a026962bf1e73f0019f9f /drivers/net/virtio_net.c
parentUSB: qmi_wwan: Add ZTE (Vodafone) K3520-Z (diff)
downloadkernel-qcow2-linux-9b905fe68433378032b851c4d81a59187689fa52.tar.gz
kernel-qcow2-linux-9b905fe68433378032b851c4d81a59187689fa52.tar.xz
kernel-qcow2-linux-9b905fe68433378032b851c4d81a59187689fa52.zip
ipv6/exthdrs: strict Pad1 and PadN check
The following tightens the padding check from commit c1412fce7eccae62b4de22494f6ab3ff8a90c0c6 : * Take into account combinations of consecutive Pad1 and PadN. * Catch the corner case of when only padding is present in the header, when the extention header length is 0 (i.e., 8 bytes). In this case, the header would have exactly 6 bytes of padding: +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ : Next Header : Hdr Ext Len=0 : : +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + : Padding (Pad1 or PadN) : +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Signed-off-by: Eldad Zack <eldad@fogrefinery.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
0 files changed, 0 insertions, 0 deletions