summaryrefslogtreecommitdiff
path: root/kernel/bpf/offload.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2023-01-21 05:52:41 +0530
committerAlexei Starovoitov <ast@kernel.org>2023-01-20 17:55:04 -0800
commitae8e354c497af625eaecd3d86e04f9087762d42b (patch)
tree75fef3d1c02d1cd14c176553806d1d49a675b4b8 /kernel/bpf/offload.c
parent011edc8e49b8551dfb6cfcc8601d05e029cf5994 (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 <joannelkoong@gmail.com> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20230121002241.2113993-13-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/offload.c')
0 files changed, 0 insertions, 0 deletions