Message-ID: <58E639E0.1010700@iogearbox.net> Date: Thu, 06 Apr 2017 14:51:44 +0200 From: Daniel Borkmann MIME-Version: 1.0 References: <20170315.145512.1542025976162251828.davem@davemloft.net> <58DAF908.8010404@iogearbox.net> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [kernel-hardening] Re: arch: arm: bpf: Converting cBPF to eBPF for arm 32 bit To: Shubham Bansal Cc: David Miller , Kees Cook , Mircea Gherzan , Network Development , kernel-hardening@lists.openwall.com, linux-arm-kernel@lists.infradead.org, ast@fb.com List-ID: On 04/06/2017 01:05 PM, Shubham Bansal wrote: > Gentle Reminder. Sorry for late reply. > Anybody can tell me how to test the JIT compiler ? There's lib/test_bpf.c, see Documentation/networking/filter.txt +1349 for some more information. It basically contains various test cases that have the purpose to test the JIT with corner cases. If you see a useful test missing, please send a patch for it, so all other JITs can benefit from this as well. For extracting disassembly from a generated test case, check out bpf_jit_disasm (Documentation/networking/filter.txt +486). Thanks, Daniel