Re: [PATCH net-next 1/4] bpf: Fix and simplifications on inline map lookup

2017-03-22 Thread Daniel Borkmann
On 03/22/2017 06:00 PM, Martin KaFai Lau wrote: Fix in verifier: For the same bpf_map_lookup_elem() instruction (i.e. "call 1"), a broken case is "a different type of map could be used for the same lookup instruction". For example, an array in one case and a hashmap in another. We have to

[PATCH net-next 1/4] bpf: Fix and simplifications on inline map lookup

2017-03-22 Thread Martin KaFai Lau
Fix in verifier: For the same bpf_map_lookup_elem() instruction (i.e. "call 1"), a broken case is "a different type of map could be used for the same lookup instruction". For example, an array in one case and a hashmap in another. We have to resort to the old dynamic call behavior in this case.