Philo Lu 9d482da9e1 bpf: allow invoking bpf_for_each_map_elem with different maps
Taking different maps within a single bpf_for_each_map_elem call is not
allowed before, because from the second map,
bpf_insn_aux_data->map_ptr_state will be marked as *poison*. In fact
both map_ptr and state are needed to support this use case: map_ptr is
used by set_map_elem_callback_state() while poison state is needed to
determine whether to use direct call.

Signed-off-by: Philo Lu <lulie@linux.alibaba.com>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20240405025536.18113-3-lulie@linux.alibaba.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2024-04-05 10:31:17 -07:00
..
2024-03-20 21:05:43 -07:00
2023-12-06 17:17:20 -08:00
2024-02-07 16:38:20 -08:00
2022-05-10 11:20:45 -07:00
2023-04-29 10:05:22 -07:00
2024-03-11 15:37:23 -07:00
2023-10-23 15:01:53 -07:00