diff options
author | Eduard Zingerman <eddyz87@gmail.com> | 2024-01-27 19:52:37 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-02-02 13:22:14 -0800 |
commit | 73a28d9d000e8d20b4b3c516b74ee92afe3ae4be (patch) | |
tree | 3fc8bcaba15ec02e57e63eb576acba505394dd84 /tools/testing/selftests/bpf/prog_tests/skb_load_bytes.c | |
parent | 6efbde200bf3cf2dbf6e7181893fed13a79c789b (diff) |
selftests/bpf: States pruning checks for scalar vs STACK_MISC
Check that stacksafe() compares spilled scalars with STACK_MISC.
The following combinations are explored:
- old spill of imprecise scalar is equivalent to cur STACK_{MISC,INVALID}
(plus error in unpriv mode);
- old spill of precise scalar is not equivalent to cur STACK_MISC;
- old STACK_MISC is equivalent to cur scalar;
- old STACK_MISC is not equivalent to cur non-scalar.
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240127175237.526726-7-maxtram95@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/skb_load_bytes.c')
0 files changed, 0 insertions, 0 deletions