aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/uninit_stack.c
AgeCommit message (Collapse)AuthorFilesLines
2023-02-22selftests/bpf: Tests for uninitialized stack readsEduard Zingerman1-0/+87
Three testcases to make sure that stack reads from uninitialized locations are accepted by verifier when executed in privileged mode: - read from a fixed offset; - read from a variable offset; - passing a pointer to stack to a helper converts STACK_INVALID to STACK_MISC. Signed-off-by: Eduard Zingerman <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>