diff options
author | Eduard Zingerman <eddyz87@gmail.com> | 2024-01-27 20:52:37 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-02-03 00:22:14 +0300 |
commit | 73a28d9d000e8d20b4b3c516b74ee92afe3ae4be (patch) | |
tree | 3fc8bcaba15ec02e57e63eb576acba505394dd84 /kernel/bpf/bpf_struct_ops.c | |
parent | 6efbde200bf3cf2dbf6e7181893fed13a79c789b (diff) | |
download | linux-73a28d9d000e8d20b4b3c516b74ee92afe3ae4be.tar.xz |
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 'kernel/bpf/bpf_struct_ops.c')
0 files changed, 0 insertions, 0 deletions