Date: Sat, 06 May 2017 14:38:16 -0400 (EDT) Message-Id: <20170506.143816.2259768618578706384.davem@davemloft.net> From: David Miller In-Reply-To: References: <58E639E0.1010700@iogearbox.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [kernel-hardening] Re: arch: arm: bpf: Converting cBPF to eBPF for arm 32 bit To: illusionist.neo@gmail.com Cc: daniel@iogearbox.net, keescook@chromium.org, mgherzan@gmail.com, netdev@vger.kernel.org, kernel-hardening@lists.openwall.com, linux-arm-kernel@lists.infradead.org, ast@fb.com List-ID: From: Shubham Bansal Date: Sat, 6 May 2017 22:18:16 +0530 > Hi Daniel, > > Thanks for the last reply about the testing of eBPF JIT. > > I have one issue though, I am not able to find what BPF_ABS and > BPF_IND instruction does exactly. They are not instructions, they are modifiers for the BPF_LD instruction which indicate an SKB load is to be performed. You never need to ask what a BPF instruction does, it is clear defined in the BPF interperter found in kernel/bpf/core.c Look for the case statement LD_ABS_W and friends in __bpf_prog_run().