netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf: set inner_map_meta->spin_lock_off correctly
@ 2019-02-27 21:22 Yonghong Song
  2019-02-27 21:22 ` [PATCH bpf-next 1/2] " Yonghong Song
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Yonghong Song @ 2019-02-27 21:22 UTC (permalink / raw)
  To: netdev; +Cc: Alexei Starovoitov, Daniel Borkmann, kernel-team, Yonghong Song

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(+)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-02-28  1:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-27 21:22 [PATCH bpf-next 0/2] bpf: set inner_map_meta->spin_lock_off correctly Yonghong Song
2019-02-27 21:22 ` [PATCH bpf-next 1/2] " Yonghong Song
2019-02-27 23:34   ` Andrii Nakryiko
2019-02-28  0:19     ` Yonghong Song
2019-02-28  0:28       ` Andrii Nakryiko
2019-02-28  0:40         ` Yonghong Song
2019-02-28  0:43           ` Andrii Nakryiko
2019-02-28  0:56         ` Alexei Starovoitov
2019-02-27 21:22 ` [PATCH bpf-next 2/2] tools/bpf: selftests: add map lookup to test_map_in_map bpf prog Yonghong Song
2019-02-27 23:36   ` Andrii Nakryiko
2019-02-28  1:07 ` [PATCH bpf-next 0/2] bpf: set inner_map_meta->spin_lock_off correctly Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).