On Wed, 15 May 2024 at 08:24, Andrii Nakryiko <andrii@xxxxxxxxxx> wrote: > > ARRAY_OF_MAPS and HASH_OF_MAPS map types have special logic to save > a few extra fields required for correct operations of ARRAY maps, when > they are used as inner maps. PERCPU_ARRAY maps have similar > requirements as they now support generating inline element lookup > logic. So make sure that both classes of maps are handled correctly. > > Reported-by: Jakub Kicinski <kuba@xxxxxxxxxx> > Fixes: db69718b8efa ("bpf: inline bpf_map_lookup_elem() for PERCPU_ARRAY maps") > Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > --- Acked-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>