Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752399AbdGGEtY (ORCPT ); Fri, 7 Jul 2017 00:49:24 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:33396 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751812AbdGGEtV (ORCPT ); Fri, 7 Jul 2017 00:49:21 -0400 MIME-Version: 1.0 In-Reply-To: References: <1495754003-21099-1-git-send-email-illusionist.neo@gmail.com> <593E6B0F.8070901@iogearbox.net> <59419D1E.2060303@iogearbox.net> <594813AA.5010001@iogearbox.net> <59495367.3080402@iogearbox.net> <594A9FA5.1080003@iogearbox.net> From: Shubham Bansal Date: Fri, 7 Jul 2017 10:19:19 +0530 Message-ID: Subject: Re: [PATCH v2] arm: eBPF JIT compiler To: Kees Cook Cc: Daniel Borkmann , Network Development , "David S. Miller" , Alexei Starovoitov , Russell King , "linux-arm-kernel@lists.infradead.org" , LKML , Andrew Lunn Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1072 Lines: 40 Okay Kees. I will take a look at it. Best, Shubham Bansal On Fri, Jul 7, 2017 at 10:12 AM, Kees Cook wrote: > On Wed, Jul 5, 2017 at 8:49 PM, Shubham Bansal > wrote: >> Hi Kees, >> >> Problem is my ARM machine don't have clang and iproute2 which is >> keeping me from testing the bpf tail calls. >> >> You should do the following to test it,. >> >> 1. tools/testing/selftests/bpf/ >> 2. make >> 3. sudo ./test_progs >> >> And, before testing, you have to do "make headers_install". >> These tests are for tail calls with the attached patch. If its too >> much work, Can you please upload your arm image so that I can test it? >> I just need a good machine. > > I've got all this set up now, and it faults during the test: > > Unable to handle kernel NULL pointer dereference at virtual address 00000008 > ... > CPU: 0 PID: 1922 Comm: test_progs Not tainted 4.12.0+ #60 > ... > PC is at __htab_map_lookup_elem+0x54/0x1f4 > > I'll see if I can send you this disk image... > > -Kees > > > -- > Kees Cook > Pixel Security