* Re: [MPTCP] [PATCH mptcp-net-next] tcp/mptcp: Purge write-queue of the sk not meta_sk in tcp_abort()
@ 2018-05-01 21:17 Mat Martineau
0 siblings, 0 replies; 2+ messages in thread
From: Mat Martineau @ 2018-05-01 21:17 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 931 bytes --]
On Tue, 1 May 2018, Christoph Paasch wrote:
> tcp_abort terminates a specific subflow (e.g., when the interface goes
> down).
>
> However, in tcp_abort() we should not purge the write-queue of the
> meta-sk but of the sk that we are removing.
>
> Fixes: 16b5a42fd18e ("Merge branch 'net-next/master'")
> Signed-off-by: Christoph Paasch <cpaasch(a)apple.com>
> ---
> net/ipv4/tcp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
> index eaa32600fe63..eeb98619b181 100644
> --- a/net/ipv4/tcp.c
> +++ b/net/ipv4/tcp.c
> @@ -3932,7 +3932,7 @@ int tcp_abort(struct sock *sk, int err)
>
> bh_unlock_sock(meta_sk);
> local_bh_enable();
> - tcp_write_queue_purge(meta_sk);
> + tcp_write_queue_purge(sk);
> release_sock(meta_sk);
> return 0;
> }
> --
> 2.16.2
Thanks for catching that, I've applied the patch.
--
Mat Martineau
Intel OTC
^ permalink raw reply [flat|nested] 2+ messages in thread
* [MPTCP] [PATCH mptcp-net-next] tcp/mptcp: Purge write-queue of the sk not meta_sk in tcp_abort()
@ 2018-05-01 20:44 Christoph Paasch
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Paasch @ 2018-05-01 20:44 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 757 bytes --]
tcp_abort terminates a specific subflow (e.g., when the interface goes
down).
However, in tcp_abort() we should not purge the write-queue of the
meta-sk but of the sk that we are removing.
Fixes: 16b5a42fd18e ("Merge branch 'net-next/master'")
Signed-off-by: Christoph Paasch <cpaasch(a)apple.com>
---
net/ipv4/tcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index eaa32600fe63..eeb98619b181 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -3932,7 +3932,7 @@ int tcp_abort(struct sock *sk, int err)
bh_unlock_sock(meta_sk);
local_bh_enable();
- tcp_write_queue_purge(meta_sk);
+ tcp_write_queue_purge(sk);
release_sock(meta_sk);
return 0;
}
--
2.16.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-01 21:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-01 21:17 [MPTCP] [PATCH mptcp-net-next] tcp/mptcp: Purge write-queue of the sk not meta_sk in tcp_abort() Mat Martineau
-- strict thread matches above, loose matches on Subject: below --
2018-05-01 20:44 Christoph Paasch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.