summaryrefslogtreecommitdiff
path: root/kernel/bpf/arraymap.c
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2017-04-11 14:08:08 -0400
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:51:10 +0300
commit92f7609bdf5f1ed96c461318bcac75074a823fa5 (patch)
treed4d68e826ce6bfccbbe2d62044ee84d75e582073 /kernel/bpf/arraymap.c
parentcbb19ce2324acc32e5491703bbc31f6d67e7ac1b (diff)
BACKPORT: UPSTREAM: bpf: pass sk to helper functions
Cherrypick from commit 8f917bba0042f1e3b7693743fbe9782709e936e7 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@google.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> Bug: 30950746 Change-Id: Ifcbcbe2ab2882dc79c56f9707be1d6aef08c7fd3 Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions