From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Kicinski Subject: Re: RCU callback crashes Date: Thu, 21 Dec 2017 13:45:11 -0800 Message-ID: <20171221134511.5bb80d0d@cakuba.netronome.com> References: <20171219175921.7db9b0e1@cakuba.netronome.com> <20171220061118.GB1916@nanopsycho> <20171219222227.402e684a@cakuba.netronome.com> <20171219223404.03786d66@cakuba.netronome.com> <20171220163710.7a5f06e5@cakuba.netronome.com> <20171220164058.2a862e27@cakuba.netronome.com> <20171220164419.42c63ebf@cakuba.netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: John Fastabend , Jiri Pirko , "netdev@vger.kernel.org" To: Cong Wang Return-path: Received: from mx4.wp.pl ([212.77.101.12]:7741 "EHLO mx4.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751705AbdLUVpT (ORCPT ); Thu, 21 Dec 2017 16:45:19 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 21 Dec 2017 13:31:01 -0800, Cong Wang wrote: > > 629 if (likely(skb)) { > > 630 qdisc_qstats_cpu_backlog_dec(qdisc, skb); > > 631 qdisc_bstats_cpu_update(qdisc, skb); > > 632 qdisc_qstats_cpu_qlen_dec(qdisc); > > 633 } > > 634 > > 635 return skb; > > 636 } > > Hi, Jakub > > Could you test the attached patch? It looks like the __skb_array_empty() > use is unsafe. I don't have a reproducer, unfortunately, I haven't seen the splat since :( FWIW the kernel config was with all debug/checks disabled, only KASAN on.