selftests/bpf: dummy_st_ops should reject 0 for non-nullable params
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 24 Apr 2024 01:28:21 +0000 (18:28 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 25 Apr 2024 19:42:43 +0000 (12:42 -0700)
commit6a2d30d3c5bf9f088dcfd5f3746b04d84f2fab83
treedce5b752510c9ff8741a4cac01ea49fb0a7d3d99
parent980ca8ceeae69ddf362870ea9183f389ae26324a
selftests/bpf: dummy_st_ops should reject 0 for non-nullable params

Check if BPF_PROG_TEST_RUN for bpf_dummy_struct_ops programs
rejects execution if NULL is passed for non-nullable parameter.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20240424012821.595216-6-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c