Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756198AbbFPGyl (ORCPT ); Tue, 16 Jun 2015 02:54:41 -0400 Received: from mail.bmw-carit.de ([62.245.222.98]:50672 "EHLO mail.bmw-carit.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755703AbbFPGyb (ORCPT ); Tue, 16 Jun 2015 02:54:31 -0400 X-CTCH-RefID: str=0001.0A0C0205.557FC823.01F3,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Message-ID: <557FC822.2040405@bmw-carit.de> Date: Tue, 16 Jun 2015 08:54:26 +0200 From: Daniel Wagner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Alexei Starovoitov , CC: LKML Subject: Re: call_rcu from trace_preempt References: <557F509D.2000509@plumgrid.com> <20150615230702.GB3913@linux.vnet.ibm.com> <557F7764.5060707@plumgrid.com> <20150616021458.GE3913@linux.vnet.ibm.com> <557FB7E1.6080004@plumgrid.com> <557FBCCD.4050804@bmw-carit.de> <557FC14C.9080901@plumgrid.com> <557FC35F.1020506@bmw-carit.de> <557FC657.9080705@plumgrid.com> In-Reply-To: <557FC657.9080705@plumgrid.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1914 Lines: 46 On 06/16/2015 08:46 AM, Alexei Starovoitov wrote: > On 6/15/15 11:34 PM, Daniel Wagner wrote: >> On 06/16/2015 08:25 AM, Alexei Starovoitov wrote: >>> On 6/15/15 11:06 PM, Daniel Wagner wrote: >>>>> with the above 'fix' the trace.patch is now passing. >>>> It still crashes for me with the original test program >>>> >>>> [ 145.908013] [] ? __rcu_reclaim+0x101/0x3d0 >>>> [ 145.908013] [] ? rcu_barrier_func+0x250/0x250 >>>> [ 145.908013] [] ? >>>> trace_hardirqs_on_caller+0xf3/0x240 >>>> [ 145.908013] [] rcu_do_batch+0x2ea/0x6b0 >>> >>> yes. full bpf test still crashes. >>> That's why I said trace.patch is passing ;) >>> There is something else in there. One 'fix' at a time. >> >> Ah, sorry, I read it is working now :) Anyway, I'll keep looking >> as well. >> >> Yesterday I wrote a small torture program for the map >> implementation. Just to rule out memory corruption there. >> Are you interested in it? If yes I could clean it a bit. > > of course! > We already have samples/bpf/test_maps.c that stresses map > access from user space and lib/test_bpf.c that stress JIT > and interpreter from the kernel. > Looking at your test, I think it doesn't buy as much doing it > from the kernel? No, it doesn't really buy you anything compared to test_maps.c. I was just ignored to the fact that test_maps.c exists. My goal was to reduce the problem to a smallest unit and therefore tried to do it inside the kernel without any additional layers. > If so, I think would be great to add it to test_maps.c > > Will read it more carefully tomorrow. No need, test_maps.c is far better. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/