]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 5 Apr 2023 09:16:39 +0000 (11:16 +0200)
commit42f016b0d5418867522ea40cb2c5b1bb133ec5b6
tree8ff079b670f87d051e6bcffa4270f519153863ef
parent57f8d987fee4015a167d1ac05abbc45b082af2fc
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/test_btf.c