android_kernel_motorola_sm6375/tools/testing
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexei Starovoitov 2f168d7603
UPSTREAM: bpf: Add abnormal return checks.
LD_[ABS|IND] instructions may return from the function early. bpf_tail_call
pseudo instruction is either fallthrough or return. Allow them in the
subprograms only when subprograms are BTF annotated and have scalar return
types. Allow ld_abs and tail_call in the main program even if it calls into
subprograms. In the past that was not ok to do for ld_abs, since it was JITed
with special exit sequence. Since bpf_gen_ld_abs() was introduced the ld_abs
looks like normal exit insn from JIT point of view, so it's safe to allow them
in the main program.

Change-Id: I46141c0f33c94a5f84430820b1ce0d977bea0428
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2026-01-14 18:12:30 -08:00
..
fault-injection
ktest ktest.pl: Prevent recursion of default variable options 2025-08-28 16:21:26 +02:00
nvdimm
radix-tree
scatterlist
selftests UPSTREAM: bpf: Add abnormal return checks. 2026-01-14 18:12:30 -08:00
vsock