Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751868AbaANLKx (ORCPT ); Tue, 14 Jan 2014 06:10:53 -0500 Received: from mail-qa0-f52.google.com ([209.85.216.52]:64015 "EHLO mail-qa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751468AbaANLKv (ORCPT ); Tue, 14 Jan 2014 06:10:51 -0500 MIME-Version: 1.0 In-Reply-To: <20140114105147.GA14538@paralelels.com> References: <1389188841.26646.87.camel@edumazet-glaptop2.roam.corp.google.com> <1389549033-23523-1-git-send-email-avagin@openvz.org> <1389558074.31367.187.camel@edumazet-glaptop2.roam.corp.google.com> <20140114105147.GA14538@paralelels.com> Date: Tue, 14 Jan 2014 15:10:50 +0400 Message-ID: Subject: Re: [PATCH] netfilter: nf_conntrack: fix RCU race in nf_conntrack_find_get (v3) From: Andrey Wagin To: Andrew Vagin Cc: Eric Dumazet , Florian Westphal , netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, LKML , vvs@openvz.org, Pablo Neira Ayuso , Patrick McHardy , Jozsef Kadlecsik , "David S. Miller" , Cyrill Gorcunov Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Eh, looks like this path is incomplete too:( > > I think we can't set a reference counter for objects which is allocated > from a SLAB_DESTROY_BY_RCU cache. Look at the following backtrace. > > cpu1 cpu2 > ct = ____nf_conntrack_find() > destroy_conntrack > atomic_inc_not_zero(ct) ct->ct_general.use is zero after destroy_conntrack(). Sorry for the noise. -- 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/