diff options
| author | Eduard Zingerman <[email protected]> | 2024-01-27 17:52:37 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-02-02 21:22:14 +0000 |
| commit | 73a28d9d000e8d20b4b3c516b74ee92afe3ae4be (patch) | |
| tree | 3fc8bcaba15ec02e57e63eb576acba505394dd84 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | bpf: Handle scalar spill vs all MISC in stacksafe() (diff) | |
| download | kernel-73a28d9d000e8d20b4b3c516b74ee92afe3ae4be.tar.gz kernel-73a28d9d000e8d20b4b3c516b74ee92afe3ae4be.zip | |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
