]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Jul 2024 10:49:04 +0000 (12:49 +0200)
commite7d193073a223663612301c659e53795b991ca89
tree5c97604305bde32917f93ae30c3b259919ad7949
parenta1a629fc373c9179d34f5f86c1bc8222edfa0898
selftests/bpf: dummy_st_ops should reject 0 for non-nullable params

[ Upstream commit 6a2d30d3c5bf9f088dcfd5f3746b04d84f2fab83 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c