diff options
| author | Matt Bobrowski <[email protected]> | 2024-06-25 06:28:57 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-06-26 20:17:32 +0000 |
| commit | aa293983d2020390e286544b120f3cd0a3d40749 (patch) | |
| tree | a62f7dab25bae1f0f0ccd09e75b75c85ff97e2e7 /tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c | |
| parent | bpf: add missing check_func_arg_reg_off() to prevent out-of-bounds memory acc... (diff) | |
| download | kernel-aa293983d2020390e286544b120f3cd0a3d40749.tar.gz kernel-aa293983d2020390e286544b120f3cd0a3d40749.zip | |
bpf: add new negative selftests to cover missing check_func_arg_reg_off() and reg->type check
Add new negative selftests which are intended to cover the
out-of-bounds memory access that could be performed on a
CONST_PTR_TO_DYNPTR within functions taking a ARG_PTR_TO_DYNPTR |
MEM_RDONLY as an argument, and acceptance of invalid register types
i.e. PTR_TO_BTF_ID within functions taking a ARG_PTR_TO_DYNPTR |
MEM_RDONLY.
Reported-by: Kumar Kartikeya Dwivedi <[email protected]>
Acked-by: Kumar Kartikeya Dwivedi <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Signed-off-by: Matt Bobrowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c')
0 files changed, 0 insertions, 0 deletions
