diff options
author | Dmitrii Banshchikov | 2020-11-13 17:17:56 +0000 |
---|---|---|
committer | Alexei Starovoitov | 2020-11-14 08:17:27 -0800 |
commit | f782e2c300a717233b64697affda3ea7aac00b2b (patch) | |
tree | 7fa16ea50da2ef7daa298a339b156ef137224861 /kernel/groups.c | |
parent | 50431b45685b600fc2851a3f2b53e24643efe6d3 (diff) |
bpf: Relax return code check for subprograms
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 scalars for now. Relax return code checks for subprograms and
allow any correct scalar values.
Fixes: 51c39bb1d5d10 (bpf: Introduce function-by-function verification)
Signed-off-by: Dmitrii Banshchikov <me@ubique.spb.ru>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201113171756.90594-1-me@ubique.spb.ru
Diffstat (limited to 'kernel/groups.c')
0 files changed, 0 insertions, 0 deletions