History

bpf: remove global variables

Move three global variables protected by bpf_verifier_lock into 'struct bpf_verifier_env' to allow parallel verification.

Alexei Starovoitov committed 7 years ago

Commit 7df737e1 parent 3b880242 files · +18 −12Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/bpf_verifier.h+5−0
@@ -295,6 +295,11 @@ struct bpf_verifier_env { · 294 unmodified lines
295295 const struct bpf_line_info *prev_linfo;
296296 struct bpf_verifier_log log;
297297 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;
298303 u32 subprog_cnt;
299304 /* number of instructions analyzed by the verifier */
300305 u32 insn_processed;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t