selftests/bpf: check that modifier resolves after pointer
authorLorenz Bauer <lorenz.bauer@isovalent.com>
Mon, 6 Mar 2023 11:21:38 +0000 (11:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:17 +0000 (12:49 +0200)
commit95ba926edd651485f2bc632dd938a415df2e4876
tree82b8e7c20630befc636271f7d902c29b8a2cdf67
parent54fa25ffab2b700df5abd58c136d64a912c53953
selftests/bpf: check that modifier resolves after pointer

[ Upstream commit dfdd608c3b365f0fd49d7e13911ebcde06b9865b ]

Add a regression test that ensures that a VAR pointing at a
modifier which follows a PTR (or STRUCT or ARRAY) is resolved
correctly by the datasec validator.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
Link: https://lore.kernel.org/r/20230306112138.155352-3-lmb@isovalent.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/prog_tests/btf.c