Skip to content

bpf: set inner_map_meta->spin_lock_off correctly

Yonghong Song netdev 1 version Applied

Status from this message: Applied, Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2bpf: set inner_map_meta->spin_lock_off correctlykernel/bpf/map_in_map.c+1 -06 replies
2/2tools/bpf: selftests: add map lookup to test_map_in_map bpf progtools/testing/selftests/bpf/progs/test_map_in_map.c+4 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndrii Nakryiko
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] bpf: set inner_map_meta->spin_lock_off correctly

The inner_map_meta->spin_lock_off is not set correctly during map creation for BPF_MAP_TYPE_ARRAY_OF_MAPS and BPF_MAP_TYPE_HASH_OF_MAPS. This may lead verifier error due to misinformation.
This patch set fixed the issue with Patch #1 for the kernel change and Patch #2 for enhanced selftest test_maps.

Yonghong Song (2):
bpf: set inner_map_meta->spin_lock_off correctly tools/bpf: selftests: add map lookup to test_map_in_map bpf prog

 kernel/bpf/map_in_map.c                             | 1 +
 tools/testing/selftests/bpf/progs/test_map_in_map.c | 4 ++++
 2 files changed, 5 insertions(+)
Signature · 1 line
2.17.1