[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170411.145446.1300958521081310466.davem@davemloft.net>
Date: Tue, 11 Apr 2017 14:54:46 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: willemdebruijn.kernel@...il.com
Cc: netdev@...r.kernel.org, ast@...com, daniel@...earbox.net,
fengc@...gle.com, lorenzo@...gle.com, willemb@...gle.com
Subject: Re: [PATCH net-next v2] bpf: pass sk to helper functions
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
Date: Tue, 11 Apr 2017 14:08:08 -0400
> From: Willem de Bruijn <willemb@...gle.com>
>
> BPF helper functions access socket fields through skb->sk. This is not
> set in ingress cgroup and socket filters. The association is only made
> in skb_set_owner_r once the filter has accepted the packet. Sk is
> available as socket lookup has taken place.
>
> Temporarily set skb->sk to sk in these cases.
>
> Signed-off-by: Willem de Bruijn <willemb@...gle.com>
Applied, thank you.
Powered by blists - more mailing lists