diff options
author | Paolo Abeni <pabeni@redhat.com> | 2020-05-15 19:22:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-15 21:30:13 +0200 |
commit | 729cd6436f359b6e618c2f14836d419f40444503 (patch) | |
tree | dd27101a3b5e26414458c2d0e9180a30d66025bd /samples/trace_events/trace-events-sample.h | |
parent | inet_connection_sock: factor out destroy helper. (diff) | |
download | linux-729cd6436f359b6e618c2f14836d419f40444503.tar.xz linux-729cd6436f359b6e618c2f14836d419f40444503.zip |
mptcp: cope better with MP_JOIN failure
Currently, on MP_JOIN failure we reset the child
socket, but leave the request socket untouched.
tcp_check_req will deal with it according to the
'tcp_abort_on_overflow' sysctl value - by default the
req socket will stay alive.
The above leads to inconsistent behavior on MP JOIN
failure, and bad listener overflow accounting.
This patch addresses the issue leveraging the infrastructure
just introduced to ask the TCP stack to drop the req on
failure.
The child socket is not freed anymore by subflow_syn_recv_sock(),
instead it's moved to a dead state and will be disposed by the
next sock_put done by the TCP stack, so that listener overflow
accounting is not affected by MP JOIN failure.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Christoph Paasch <cpaasch@apple.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/trace_events/trace-events-sample.h')
0 files changed, 0 insertions, 0 deletions