File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Some documentation links include:
7
7
* https://docs.cilium.io/en/stable/bpf/
8
8
* https://www.kernel.org/doc/Documentation/networking/filter.txt
9
9
* https://pchaigno.github.io/bpf/2021/10/20/ebpf-instruction-sets.html
10
+ * https://www.kernel.org/doc/html/latest/bpf/bpf_design_QA.html#instruction-level-questions
10
11
11
12
Some implementation links include:
12
13
Original file line number Diff line number Diff line change @@ -185,6 +185,13 @@ The 4-bit 'code' field encodes the operation as follows:
185
185
BPF_END 0xd0 byte swap operations (see `Byte swap instructions `_ below)
186
186
======== ===== =================================================
187
187
188
+ Underflow and overflow are allowed during arithmetic operations,
189
+ meaning the 64-bit or 32-bit value will wrap.
190
+
191
+ ``BPF_DIV `` has an implicit program exit condition as well. If
192
+ eBPF program execution would result in division by zero,
193
+ program execution must be gracefully aborted.
194
+
188
195
Examples:
189
196
190
197
``BPF_ADD | BPF_X | BPF_ALU `` (0x0c) means::
You can’t perform that action at this time.
0 commit comments