History

bpf: verifier: record original instruction index

The communication between the verifier and advanced JITs is based on instruction indexes. We have to keep them stable throughout the optimizations otherwise referring to a particular instruction gets messy quickly.

Jakub Kicinski committed 7 years ago

Commit 9e4c24e1 parent cb050772 files · +6 −3Browse files

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

Unified · Split

include/linux/bpf_verifier.h+1−0
@@ -187,6 +187,7 @@ struct bpf_insn_aux_data { · 186 unmodified lines
187 int sanitize_stack_off; /* stack slot to be cleared */187 int sanitize_stack_off; /* stack slot to be cleared */
188 bool seen; /* this insn was processed by the verifier */188 bool seen; /* this insn was processed by the verifier */
189 u8 alu_state; /* used in combination with alu_limit */189 u8 alu_state; /* used in combination with alu_limit */
190 unsigned int orig_idx; /* original instruction index */
190};191};
191 192
192#define MAX_USED_MAPS 64 /* max number of maps accessed by one eBPF program */193#define MAX_USED_MAPS 64 /* max number of maps accessed by one eBPF program */

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