From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B136339AC for ; Mon, 20 May 2024 09:53:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.188.207 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198840; cv=none; b=BJLvDwG/kTKkH0Q85hCIgNJJZ5PTKXi69isoL7pVx5Qovx+kJW4vCV8bJf3H7aMNjNqd362NqtPPUOUpQTbAXHUNIhDZm5gzMB7PeF7hJlon+wJt55zpCzcvdtuwhYrcgMdObHtc2rVSfFLr4bJdfrPUm6mzSd7mzoDQ8YvlF34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198840; c=relaxed/simple; bh=0BwzRSg1foVoUDXOdl8wEblzTh6aygyztZVXFRPUx3Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XeCJ6276BpIGJiyRsYQJk6JJl6CMQzLrn2UYHWNV+5rU1hdYZQ+JB+EIE8x8IxFnP8ZuOMpRuNlVgezL8qg4p2ohYRqWUSr6KhdpYsrcsUCzT/FXqdOYUQxcDtnMkhwnLCEo+1R249P6qzk7lE+gfLIDpQT9oai7Q9i3DBpjQ3s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org; spf=pass smtp.mailfrom=netfilter.org; arc=none smtp.client-ip=217.70.188.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org Date: Mon, 20 May 2024 11:53:53 +0200 From: Pablo Neira Ayuso To: Alexander Maltsev Cc: netfilter-devel@vger.kernel.org, Jozsef Kadlecsik Subject: Re: [PATCH] netfilter: ipset: Add list flush to cancel_gc Message-ID: References: <20240417135141.18288-1-keltar.gw@gmail.com> Precedence: bulk X-Mailing-List: netfilter-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240417135141.18288-1-keltar.gw@gmail.com> On Wed, Apr 17, 2024 at 06:51:41PM +0500, Alexander Maltsev wrote: > Flushing list in cancel_gc drops references to other lists right away, > without waiting for RCU to destroy list. Fixes race when referenced > ipsets can't be destroyed while referring list is scheduled for destroy. For the record, I have applied this patch to nf.git with this tag: Fixes: 97f7cf1cd80e ("netfilter: ipset: fix performance regression in swap operation") I overlook this patch, apologies for the delay.