Re: [PATCH bpf v2] bpf: relax return code check for subprograms

2020-11-14 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf.git (refs/heads/master): On Fri, 13 Nov 2020 17:17:56 + you wrote: > Currently verifier enforces return code checks for subprograms in the > same manner as it does for program entry points. This prevents returning > arbitrary scalar values from subprog

Re: [PATCH bpf v2] bpf: relax return code check for subprograms

2020-11-13 Thread Andrii Nakryiko
On Fri, Nov 13, 2020 at 9:18 AM Dmitrii Banshchikov wrote: > > Currently verifier enforces return code checks for subprograms in the > same manner as it does for program entry points. This prevents returning > arbitrary scalar values from subprograms. Scalar type of returned values > is checked by

[PATCH bpf v2] bpf: relax return code check for subprograms

2020-11-13 Thread Dmitrii Banshchikov
Currently verifier enforces return code checks for subprograms in the same manner as it does for program entry points. This prevents returning arbitrary scalar values from subprograms. Scalar type of returned values is checked by btf_prepare_func_args() and hence it should be safe to allow only sca