Thread (10 messages) 10 messages, 3 authors, 2022-02-03

Re: [PATCH 3/5] bpf, docs: Better document the legacy packet access instruction

From: Alexei Starovoitov <hidden>
Date: 2022-02-03 17:32:51
Also in: bpf, linux-doc

On Mon, Jan 31, 2022 at 10:36 AM Christoph Hellwig [off-list ref] wrote:
+These instructions are used to access packet data and can only be used when
+the interpreter context is a pointer to networking packet.  ``BPF_ABS``
...
+These instructions have an implicit program exit condition as well. When an
+eBPF program is trying to access the data beyond the packet boundary, the
+interpreter will abort the execution of the program.
These two places make it sound like it's interpreter only behavior.
I've reworded it like:
-the interpreter context is a pointer to networking packet.  ``BPF_ABS``
+the program context is a pointer to networking packet.  ``BPF_ABS``

-interpreter will abort the execution of the program.
+program execution will be aborted.

and pushed to bpf-next with the rest of patches.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help