diff options
author | Andrii Nakryiko <[email protected]> | 2023-11-23 19:59:37 -0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-11-24 10:40:06 +0100 |
commit | e8a339b5235e294f29153149ea7cf26a9a87dbea (patch) | |
tree | 11c36122a9d80c9c3ad9525f47973326ae348c30 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 2afae08c9dcb8ac648414277cec70c2fe6a34d9e (diff) |
selftests/bpf: Add lazy global subprog validation tests
Add a few test that validate BPF verifier's lazy approach to validating
global subprogs.
We check that global subprogs that are called transitively through
another global subprog is validated.
We also check that invalid global subprog is not validated, if it's not
called from the main program.
And we also check that main program is always validated first, before
any of the subprogs.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions