From: Eric Dumazet Date: Thu, 20 Feb 2014 18:09:18 +0000 (-0800) Subject: net-tcp: fastopen: fix high order allocations X-Git-Tag: v3.14-rc6~30^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5ddcbbb40aa0ba7fbfe22355d287603dbeeaaac;p=pandora-kernel.git net-tcp: fastopen: fix high order allocations This patch fixes two bugs in fastopen : 1) The tcp_sendmsg(..., @size) argument was ignored. Code was relying on user not fooling the kernel with iovec mismatches 2) When MTU is about 64KB, tcp_send_syn_data() attempts order-5 allocations, which are likely to fail when memory gets fragmented. Fixes: 783237e8daf13 ("net-tcp: Fast Open client - sending SYN-data") Signed-off-by: Eric Dumazet Cc: Yuchung Cheng Acked-by: Yuchung Cheng Tested-by: Yuchung Cheng Signed-off-by: David S. Miller --- Reading git-diff-tree failed