aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf
diff options
context:
space:
mode:
authorBrian Vazquez <brianvv@google.com>2020-01-19 11:40:40 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2020-01-20 22:27:51 +0100
commit2e3a94aa2bfc6de95a0700f0a868c6f5db3a9592 (patch)
tree18ee2f84509602f1383c1dcf8a55d49130bb342e /tools/testing/selftests/bpf
parentlibbpf: Load btf_vmlinux only once per object. (diff)
downloadlinux-dev-2e3a94aa2bfc6de95a0700f0a868c6f5db3a9592.tar.xz
linux-dev-2e3a94aa2bfc6de95a0700f0a868c6f5db3a9592.zip
bpf: Fix memory leaks in generic update/delete batch ops
Generic update/delete batch ops functions were using __bpf_copy_key without properly freeing the memory. Handle the memory allocation and copy_from_user separately. Fixes: aa2e93b8e58e ("bpf: Add generic support for update and delete batch ops") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Brian Vazquez <brianvv@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20200119194040.128369-1-brianvv@google.com
Diffstat (limited to 'tools/testing/selftests/bpf')
0 files changed, 0 insertions, 0 deletions