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 8539C28F7; Thu, 25 Apr 2024 09:36:14 +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=1714037776; cv=none; b=PfqC2BF1CA0X1otmjN9yBPu4nR/vb/Mz1p0WETVhXaoFpanBQChifQ4Ir7yWJH+427/7TA7WzripVCp5dAsyDOFSdCJmh2TNJ6yxZSxX650B+V5t7fJKdhk70/vusXE8joeQt9xV6aJK6YyvAM1VaT7nD54XunPMsV3dK8qy0rM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714037776; c=relaxed/simple; bh=Bj0ZQY1fsfYT5ptnAo2M/eBI3dM8XVsmZlPJfOdCnWM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DRJ2JhNCZ/T5unc2xqc+Cx/Ugjs5K8yru/mb6f1yD6LqFXm30bHIIFcdhy6lgn7IiWsT9T+JGxICQnzpKRcWFNygxN9/n64SAzXDA/BNegdXxXYsvVeCxCEiQbin36F5dcWI8gMXbaxfEzPj3gtcXzNDjoCJ+hGGhgAVcyEWz94= 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: Thu, 25 Apr 2024 11:36:11 +0200 From: Pablo Neira Ayuso To: linke li Cc: xujianhao01@gmail.com, Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] netfilter: mark racy access on ext->gen_id Message-ID: References: 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: On Tue, Apr 23, 2024 at 07:50:22PM +0800, linke li wrote: > In __nf_ct_ext_find(), ext->gen_id can be changed by > nf_ct_ext_valid_post(), using WRITE_ONCE. Mark data races on ext->gen_id > as benign using READ_ONCE. > > This patch is aimed at reducing the number of benign races reported by > KCSAN in order to focus future debugging effort on harmful races. There are a more uses ext->gen_id in the code, my understanding this patch is just a stub.