summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorEduard Zingerman <eddyz87@gmail.com>2026-02-28 21:47:57 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-03-03 19:47:23 +0300
commit69ca55e63101001997c960abdce35869102577c2 (patch)
tree86318184b48ef4839a9cbaed4d4432f191bd8f7f /tools/testing
parent63ec29623943bd55fa026017a93b2d739fcdbb32 (diff)
downloadlinux-69ca55e63101001997c960abdce35869102577c2.tar.xz
bpf: extract check_global_subprog_return_code() for clarity
From: Eduard Zingerman <eddyz87@gmail.com> Both main progs and subprogs use the same function in the verifier, check_return_code, to verify the type and value range of the register being returned. However, subprogs only need a subset of the logic in check_return_code. this also goes the way - check_return_code explicitly checks whether it is handling a subprogram in multiple places, complicating the logic. Separate the handling of the two into separate functions. Signed-off-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com> Link: https://lore.kernel.org/r/20260228184759.108145-4-emil@etsalapatis.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions