]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb47770fe0469f4af45f947cc679c02d5b0a0b27e
tree438012f22c81f3d109849a12a14acfbcf5bb9837
parentf56f4f34ed726e9133e8a55710fcb5556e91d042
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