]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bpf, sockmap: Let all kernel-land lookup values in SOCKMAP/SOCKHASH
authorJakub Sitnicki <jakub@cloudflare.com>
Tue, 18 Feb 2020 17:10:19 +0000 (17:10 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 21 Feb 2020 21:29:45 +0000 (22:29 +0100)
commit1d59f3bcee356caa933646dc45ff0836455535e8
tree140c09532c45a138d3f1415f4eeb3b65765dfabd
parentc1cdf65da060a8e047a9f4433306fd6dac1f51a6
bpf, sockmap: Let all kernel-land lookup values in SOCKMAP/SOCKHASH

Don't require the kernel code, like BPF helpers, that needs access to
SOCK{MAP,HASH} map contents to live in net/core/sock_map.c. Expose the
lookup operation to all kernel-land.

Lookup from BPF context is not whitelisted yet. While syscalls have a
dedicated lookup handler.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200218171023.844439-8-jakub@cloudflare.com
net/core/sock_map.c