diff options
author | Alexei Starovoitov <ast@kernel.org> | 2022-08-08 20:58:09 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-08-10 09:43:07 -0700 |
commit | 86f44fcec22ce2979507742bc53db8400e454f46 (patch) | |
tree | b583467f4aa9b030f49db5feab726942c681fb19 /scripts/gcc-goto.sh | |
parent | aada476655461a9ab491d8298a415430cdd10278 (diff) | |
download | linux-86f44fcec22ce2979507742bc53db8400e454f46.tar.gz linux-86f44fcec22ce2979507742bc53db8400e454f46.tar.bz2 linux-86f44fcec22ce2979507742bc53db8400e454f46.zip |
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>
Diffstat (limited to 'scripts/gcc-goto.sh')
0 files changed, 0 insertions, 0 deletions