diff options
author | Eric Dumazet <edumazet@google.com> | 2014-02-20 18:09:18 (GMT) |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-03-13 22:19:38 (GMT) |
commit | 10bbbd58f309101e93643637f784ee069785ace2 (patch) | |
tree | 425640eaac665ecd5a46a5badffaf13692896905 /lib | |
parent | cbf5a3f6866d1bd105da94090ce7446ef20c610b (diff) | |
download | linux-fsl-qoriq-10bbbd58f309101e93643637f784ee069785ace2.tar.xz |
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: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions