bpf: create repeated fields for arrays.
authorKui-Feng Lee <thinker.li@gmail.com>
Thu, 23 May 2024 17:41:57 +0000 (10:41 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 4 Jun 2024 03:52:42 +0000 (20:52 -0700)
commit994796c0256c4001633488fd24c3d54691949f8d
tree2e419b5ab98ddee8e08aa29fb0fd8d183e02e1d9
parenta7db0d4f872a869feb7c0201c0fa736c309192d5
bpf: create repeated fields for arrays.

The verifier uses field information for certain special types, such as
kptr, rbtree root, and list head. These types are treated
differently. However, we did not previously support these types in
arrays. This update examines arrays and duplicates field information the
same number of times as the length of the array if the element type is one
of the special types.

Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Link: https://lore.kernel.org/r/20240523174202.461236-5-thinker.li@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c