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 | const struct bpf_line_info *prev_linfo; | 295 | const struct bpf_line_info *prev_linfo; |
| 296 | struct bpf_verifier_log log; | 296 | struct bpf_verifier_log log; |
| 297 | struct bpf_subprog_info subprog_info[BPF_MAX_SUBPROGS + 1]; | 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 | u32 subprog_cnt; | 303 | u32 subprog_cnt; |
| 299 | /* number of instructions analyzed by the verifier */ | 304 | /* number of instructions analyzed by the verifier */ |
| 300 | u32 insn_processed; | 305 | u32 insn_processed; |