ipv4: Constrain UFO fragment sizes to multiples of 8 bytes
authorBill Sommerfeld <wsommerfeld@google.com>
Tue, 19 Jul 2011 15:22:33 +0000 (15:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jul 2011 04:31:41 +0000 (21:31 -0700)
commitd9be4f7a6f5a8da3133b832eca41c3591420b1ca
tree438012f22c81f3d109849a12a14acfbcf5bb9837
parent2e66f55b3afa290337a47e6ea134ac071c5dd9a7
ipv4: Constrain UFO fragment sizes to multiples of 8 bytes

Because the ip fragment offset field counts 8-byte chunks, ip
fragments other than the last must contain a multiple of 8 bytes of
payload.  ip_ufo_append_data wasn't respecting this constraint and,
depending on the MTU and ip option sizes, could create malformed
non-final fragments.

Google-Bug-Id: 5009328
Signed-off-by: Bill Sommerfeld <wsommerfeld@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c