diff options
author | Eric Dumazet <edumazet@google.com> | 2014-02-20 10:09:18 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-23 21:38:10 -0700 |
commit | fe42b170afae5978dc90641f29f2b39aefaa47fa (patch) | |
tree | 0bd4695bd5eab65f1815de7adf435c323791c081 /net/core | |
parent | dabdb40f7f934e78b9c0ea45d114d1494e4cd44a (diff) | |
download | linux-3.10-fe42b170afae5978dc90641f29f2b39aefaa47fa.tar.gz linux-3.10-fe42b170afae5978dc90641f29f2b39aefaa47fa.tar.bz2 linux-3.10-fe42b170afae5978dc90641f29f2b39aefaa47fa.zip |
net-tcp: fastopen: fix high order allocations
[ Upstream commit f5ddcbbb40aa0ba7fbfe22355d287603dbeeaaac ]
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 <edumazet@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Tested-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions