[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH3MdRU-Pybev5tubDAeSE=4tb8AkHMbUKoRiG0ye-D4uVT5Mw@mail.gmail.com>
Date: Mon, 17 Sep 2018 13:49:38 -0700
From: Y Song <ys114321@...il.com>
To: John Fastabend <john.fastabend@...il.com>
Cc: edumazet@...gle.com, Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
netdev <netdev@...r.kernel.org>
Subject: Re: [bpf PATCH 1/3] bpf: sockmap only allow ESTABLISHED sock state
On Mon, Sep 17, 2018 at 10:32 AM John Fastabend
<john.fastabend@...il.com> wrote:
>
> After this patch we only allow socks that are in ESTABLISHED state or
> are being added via a sock_ops event that is transitioning into an
> ESTABLISHED state. By allowing sock_ops events we allow users to
> manage sockmaps directly from sock ops programs. The two supported
> sock_ops ops are BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB and
> BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB.
>
> Similar to TLS ULP this ensures sk_user_data is correct.
>
> Reported-by: Eric Dumazet <edumazet@...gle.com>
> Fixes: 1aa12bdf1bfb ("bpf: sockmap, add sock close() hook to remove socks")
> Signed-off-by: John Fastabend <john.fastabend@...il.com>
Acked-by: Yonghong Song <yhs@...com>
Powered by blists - more mailing lists