summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2016-09-23 02:28:35 +0300
committerDavid S. Miller <davem@davemloft.net>2016-09-23 15:40:27 +0300
commit2d48c5f9335e48ddac7a52db10bf3bfd01986b9c (patch)
tree8d151ae6b835443eed4fe639c90162a346fe0c7c /firmware
parentc14fec3969b0e8af5c38ad9f14198d6d7cca54d0 (diff)
downloadlinux-2d48c5f9335e48ddac7a52db10bf3bfd01986b9c.tar.xz
bpf: use skb_to_full_sk helper in bpf_skb_under_cgroup
We need to use skb_to_full_sk() helper introduced in commit bd5eb35f16a9 ("xfrm: take care of request sockets") as otherwise we miss tcp synack messages, since ownership is on request socket and therefore it would miss the sk_fullsock() check. Use skb_to_full_sk() as also done similarly in the bpf_get_cgroup_classid() helper via 2309236c13fe ("cls_cgroup: get sk_classid only from full sockets") fix to not let this fall through. Fixes: 4a482f34afcc ("cgroup: bpf: Add bpf_skb_in_cgroup_proto") Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions