bpf: Fix map-in-map checking in the verifier
authorMartin KaFai Lau <kafai@fb.com>
Fri, 18 Aug 2017 01:14:43 +0000 (18:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Aug 2017 23:25:00 +0000 (16:25 -0700)
commit16a4362573782115096799aebd9862f8bb140169
tree79a3e599aa2f63666636ca3e8d04d5732838778d
parentbd1cc1a72981fb2846ea69a28407675d6d87fe50
bpf: Fix map-in-map checking in the verifier

In check_map_func_compatibility(), a 'break' has been accidentally
removed for the BPF_MAP_TYPE_ARRAY_OF_MAPS and BPF_MAP_TYPE_HASH_OF_MAPS
cases.  This patch adds it back.

Fixes: 174a79ff9515 ("bpf: sockmap with sk redirect support")
Cc: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/verifier.c