Files
linux-st/kernel/bpf
Jiong Wang 4cb3d99c84 bpf: add faked "ending" subprog
There are quite a few code snippet like the following in verifier:

       subprog_start = 0;
       if (env->subprog_cnt == cur_subprog + 1)
               subprog_end = insn_cnt;
       else
               subprog_end = env->subprog_info[cur_subprog + 1].start;

The reason is there is no marker in subprog_info array to tell the end of
it.

We could resolve this issue by introducing a faked "ending" subprog.
The special "ending" subprog is with "insn_cnt" as start offset, so it is
serving as the end mark whenever we iterate over all subprogs.

Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-05-04 11:58:36 +02:00
..
2018-04-23 11:32:01 +02:00
2018-03-31 02:15:18 +02:00
2017-01-09 16:56:27 -05:00
2018-04-30 10:55:56 +02:00
2017-11-15 19:46:32 +09:00
2018-04-29 08:45:53 -07:00
2018-05-04 11:58:36 +02:00