summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAndrey Ignatov <rdna@fb.com>2018-12-13 22:19:01 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2018-12-13 23:42:16 +0100
commit28c1272914613b6c5a0129d6d502c790d4f23d6c (patch)
tree111a70743c7fff1c8f4a0a1720203818f8d89bc6 /kernel
parentbpf: remove obsolete prog->aux sanitation in bpf_insn_prepare_dump (diff)
downloadlinux-28c1272914613b6c5a0129d6d502c790d4f23d6c.tar.xz
linux-28c1272914613b6c5a0129d6d502c790d4f23d6c.zip
selftests/bpf: Fix sk lookup usage in test_sock_addr
Semantic of netns_id argument of bpf_sk_lookup_tcp and bpf_sk_lookup_udp was changed (fixed) in f71c6143c203. Corresponding changes have to be applied to all call sites in selftests. The patch fixes corresponding call sites in test_sock_addr test: pass BPF_F_CURRENT_NETNS instead of 0 in netns_id argument. Fixes: f71c6143c203 ("bpf: Support sk lookup in netns with id 0") Reported-by: Yonghong Song <yhs@fb.com> Signed-off-by: Andrey Ignatov <rdna@fb.com> Acked-by: Joe Stringer <joe@wand.net.nz> Tested-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions