[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1f40d981-b6b9-b674-8777-1e2bb466a35a@iogearbox.net>
Date: Thu, 9 Jan 2020 23:16:02 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: Lingpeng Chen <forrest0579@...il.com>,
John Fastabend <john.fastabend@...il.com>
Cc: Song Liu <songliubraving@...com>, netdev@...r.kernel.org,
bpf@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH v2] bpf/sockmap: read psock ingress_msg before
sk_receive_queue
On 1/9/20 2:48 AM, Lingpeng Chen wrote:
> Right now in tcp_bpf_recvmsg, sock read data first from sk_receive_queue
> if not empty than psock->ingress_msg otherwise. If a FIN packet arrives
> and there's also some data in psock->ingress_msg, the data in
> psock->ingress_msg will be purged. It is always happen when request to a
> HTTP1.0 server like python SimpleHTTPServer since the server send FIN
> packet after data is sent out.
>
> Fixes: 604326b41a6fb ("bpf, sockmap: convert to generic sk_msg interface")
> Reported-by: Arika Chen <eaglesora@...il.com>
> Suggested-by: Arika Chen <eaglesora@...il.com>
> Signed-off-by: Lingpeng Chen <forrest0579@...il.com>
> Signed-off-by: John Fastabend <john.fastabend@...il.com>
> Cc: stable@...r.kernel.org # v4.20+
> Acked-by: Song Liu <songliubraving@...com>
Applied to bpf, thanks!
Powered by blists - more mailing lists