Move three global variables protected by bpf_verifier_lock into 'struct bpf_verifier_env' to allow parallel verification.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -295,6 +295,11 @@ struct bpf_verifier_env { · 294 unmodified lines | ||
| 295 | 295 | const struct bpf_line_info *prev_linfo; |
| 296 | 296 | struct bpf_verifier_log log; |
| 297 | 297 | struct bpf_subprog_info subprog_info[BPF_MAX_SUBPROGS + 1]; |
| 298 | + struct { | |
| 299 | + int *insn_state; | |
| 300 | + int *insn_stack; | |
| 301 | + int cur_stack; | |
| 302 | + } cfg; | |
| 298 | 303 | u32 subprog_cnt; |
| 299 | 304 | /* number of instructions analyzed by the verifier */ |
| 300 | 305 | u32 insn_processed; |