diff options
author | 2023-04-06 16:42:04 -0700 | |
---|---|---|
committer | 2023-04-11 18:05:44 +0200 | |
commit | be983f44274f575e42025130e3c62b8718b0a29a (patch) | |
tree | 1847ed5f0bbcc02a5f2c0b7824c7170cd9a97b5b /kernel/bpf/helpers.c | |
parent | selftests/bpf: Add tests to validate log_true_size feature (diff) | |
download | linux-rng-be983f44274f575e42025130e3c62b8718b0a29a.tar.xz linux-rng-be983f44274f575e42025130e3c62b8718b0a29a.zip |
selftests/bpf: Add testing of log_buf==NULL condition for BPF_PROG_LOAD
Add few extra test conditions to validate that it's ok to pass
log_buf==NULL and log_size==0 to BPF_PROG_LOAD command with the intent
to get log_true_size without providing a buffer.
Test that log_buf==NULL condition *does not* return -ENOSPC.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Lorenz Bauer <lmb@isovalent.com>
Link: https://lore.kernel.org/bpf/20230406234205.323208-19-andrii@kernel.org
Diffstat (limited to 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions