]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Aug 2011 01:31:37 +0000 (18:31 -0700)
commit4339267bcded2540782c8f7587bc59434b89420c
treeaefdf4216b3dcb842766a91746560f34adbd9fe2
parent0671b3017cad5944fb2b63b5285802eeabb2cdd5
ipv4: Constrain UFO fragment sizes to multiples of 8 bytes

[ Upstream commit d9be4f7a6f5a8da3133b832eca41c3591420b1ca ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/ip_output.c