bpf: bpf_prog_array_copy() should return -ENOENT if exclude_prog not found
authorSean Young <sean@mess.org>
Sun, 27 May 2018 11:24:08 +0000 (12:24 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 30 May 2018 10:37:38 +0000 (12:37 +0200)
commit170a7e3ea0709eae12c8f944b9f33c54fe80c6c1
treee15d4fd9b40404cba75181c70d53f7ad3ef72f22
parent9ce64f192d161acff17c99ceec7d9ce3db9252fa
bpf: bpf_prog_array_copy() should return -ENOENT if exclude_prog not found

This makes is it possible for bpf prog detach to return -ENOENT.

Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/core.c
kernel/trace/bpf_trace.c