diff options
| author | Jakub Kicinski <[email protected]> | 2019-01-22 22:45:23 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2019-01-23 17:35:32 -0800 |
| commit | 9e4c24e7ee7dfd3898269519103e823892b730d8 (patch) | |
| tree | b62ec0289acccf464e0fc6bcee8fd3417f4bc24c /include/linux | |
| parent | cb05077508bf3635fcf1637fdb30136559555c65 (diff) | |
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.
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/bpf_verifier.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bpf_verifier.h b/include/linux/bpf_verifier.h index 573cca00a0e6..f3ae00ee5516 100644 --- a/include/linux/bpf_verifier.h +++ b/include/linux/bpf_verifier.h @@ -187,6 +187,7 @@ struct bpf_insn_aux_data { int sanitize_stack_off; /* stack slot to be cleared */ bool seen; /* this insn was processed by the verifier */ u8 alu_state; /* used in combination with alu_limit */ + unsigned int orig_idx; /* original instruction index */ }; #define MAX_USED_MAPS 64 /* max number of maps accessed by one eBPF program */ |