On 4/28/20 5:37 PM, Martin KaFai Lau wrote:
+ prog = bpf_iter_get_prog(seq, sizeof(struct bpf_iter_seq_map_info), + &meta.session_id, &meta.seq_num, + v == (void *)0);From looking at seq_file.c, when will show() be called with "v == NULL"?
that v == NULL here and the whole verifier change just to allow NULL... may be use seq_num as an indicator of the last elem instead? Like seq_num with upper bit set to indicate that it's last?