acrn-kernel/tools/lib/bpf
Alexei Starovoitov 86f44fcec2 bpf: Disallow bpf programs call prog_run command.
The verifier cannot perform sufficient validation of bpf_attr->test.ctx_in
pointer, therefore bpf programs should not be allowed to call BPF_PROG_RUN
command from within the program.
To fix this issue split bpf_sys_bpf() bpf helper into normal kern_sys_bpf()
kernel function that can only be used by the kernel light skeleton directly.

Reported-by: YiFei Zhu <zhuyifei@google.com>
Fixes: b1d18a7574 ("bpf: Extend sys_bpf commands for bpf_syscall programs.")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2022-08-10 09:43:07 -07:00
..
.gitignore
Build libbpf: move xsk.{c,h} into selftests/bpf 2022-06-28 13:13:32 -07:00
Makefile libbpf: move xsk.{c,h} into selftests/bpf 2022-06-28 13:13:32 -07:00
bpf.c libbpf: Add bpf_obj_get_opts() 2022-07-29 15:30:06 -07:00
bpf.h libbpf: Add bpf_obj_get_opts() 2022-07-29 15:30:06 -07:00
bpf_core_read.h libbpf: add bpf_core_type_matches() helper macro 2022-07-05 21:15:19 -07:00
bpf_endian.h
bpf_gen_internal.h
bpf_helpers.h libbpf: Disable SEC pragma macro on GCC 2022-07-08 15:11:34 -07:00
bpf_prog_linfo.c
bpf_tracing.h libbpf: Extend BPF_KSYSCALL documentation 2022-07-26 16:27:21 +02:00
btf.c libbpf: remove deprecated BTF APIs 2022-06-28 13:13:32 -07:00
btf.h libbpf: remove deprecated BTF APIs 2022-06-28 13:13:32 -07:00
btf_dump.c libbpf: Fix sign expansion bug in btf_dump_get_enum_value() 2022-07-21 14:24:18 +02:00
gen_loader.c libbpf: fix an snprintf() overflow check 2022-07-19 10:47:31 -07:00
hashmap.c
hashmap.h
libbpf.c libbpf: Support PPC in arch_specific_syscall_pfx 2022-07-28 16:11:18 -07:00
libbpf.h libbpf: add ksyscall/kretsyscall sections support for syscall kprobes 2022-07-19 09:33:18 -07:00
libbpf.map libbpf: Add bpf_obj_get_opts() 2022-07-29 15:30:06 -07:00
libbpf.pc.template
libbpf_common.h libbpf: cleanup LIBBPF_DEPRECATED_SINCE supporting macros for v0.x 2022-06-28 13:13:33 -07:00
libbpf_errno.c
libbpf_internal.h libbpf: Fix str_has_sfx()'s return value 2022-07-21 14:30:25 +02:00
libbpf_legacy.h libbpf: fix up few libbpf.map problems 2022-06-28 13:13:33 -07:00
libbpf_probes.c libbpf: remove deprecated probing APIs 2022-06-28 13:13:32 -07:00
libbpf_version.h libbpf: start 1.0 development cycle 2022-05-19 09:03:31 -07:00
linker.c libbpf: Add enum64 support for bpf linking 2022-06-07 10:20:43 -07:00
netlink.c libbpf: remove deprecated XDP APIs 2022-06-28 13:13:32 -07:00
nlattr.c
nlattr.h
relo_core.c bpf: Correctly propagate errors up from bpf_core_composites_match 2022-07-08 15:31:43 -07:00
relo_core.h bpf, libbpf: Add type match support 2022-07-05 21:14:25 -07:00
ringbuf.c
skel_internal.h bpf: Disallow bpf programs call prog_run command. 2022-08-10 09:43:07 -07:00
str_error.c
str_error.h
strset.c
strset.h
usdt.bpf.h libbpf: generalize virtual __kconfig externs and use it for USDT 2022-07-19 09:33:17 -07:00
usdt.c libbpf: Remove unnecessary usdt_rel_ip assignments 2022-07-06 16:46:19 +02:00