diff options
author | Kumar Kartikeya Dwivedi <[email protected]> | 2023-01-21 05:52:41 +0530 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-01-20 17:55:04 -0800 |
commit | ae8e354c497af625eaecd3d86e04f9087762d42b (patch) | |
tree | 75fef3d1c02d1cd14c176553806d1d49a675b4b8 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 011edc8e49b8551dfb6cfcc8601d05e029cf5994 (diff) |
selftests/bpf: Add dynptr helper tests
First test that we allow overwriting dynptr slots and reinitializing
them in unreferenced case, and disallow overwriting for referenced case.
Include tests to ensure slices obtained from destroyed dynptrs are being
invalidated on their destruction. The destruction needs to be scoped, as
in slices of dynptr A should not be invalidated when dynptr B is
destroyed. Next, test that MEM_UNINIT doesn't allow writing dynptr stack
slots.
Acked-by: Joanne Koong <[email protected]>
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions