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: b1d18a7574d0 ("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
..
2022-07-29 15:30:06 -07:00
2022-07-29 15:30:06 -07:00
2022-06-28 13:13:32 -07:00
2022-06-28 13:13:32 -07:00
2022-07-29 15:30:06 -07:00
2022-06-28 13:13:32 -07:00
2021-10-01 22:54:38 +02:00