angler-fishThe Vulnerability History Project

bpf: Add bpf_map_{value_size, update_value, map_copy_value} functions

      This commit moves reusable code from map_lookup_elem and map_update_elem
to avoid code duplication in kernel/bpf/syscall.c.

Signed-off-by: Brian Vazquez <brianvv@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200115184308.162644-2-brianvv@google.com
    
commit 15c14a3dca421f086c187155afba3222b879472d
+128 -152
expand_less