Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4822873rwb; Mon, 21 Nov 2022 12:23:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4E9vqNK+6LIBToBdeESksg8rgU5bKU3ipHpwZIzyTjLstTiHjBRb9dcvfmJ18eNJLD+e1j X-Received: by 2002:a17:903:1311:b0:189:1e5:8422 with SMTP id iy17-20020a170903131100b0018901e58422mr496435plb.17.1669062235848; Mon, 21 Nov 2022 12:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669062235; cv=none; d=google.com; s=arc-20160816; b=AZ0upGyrRn560vfLjnXgBjw/wHsNZWjxfa0K+3qklwTBupA1k7dr9862pf+M6GnVQA D5Oy2OGn78dSz/JBgHqcKiYi3HWSvbnx+dK1WkAxR7EYsshmvlg+3AuzU0KQK9ltAUm3 8i6BNkCTcGrzzVzg7VDZxlSdPsGdCSlBlh6k1MZ1/HvpWyND1wknkA3vZ81V9OIvXGfk 0wP5PcPNi1ze2XkvmOwww4gQ1VRDa+GXMvfF4eAY94774AMjMxdVtUGeK1Av7RGrQPf4 ljjSJb0++q8pe/BBgILzUNuy5PjWNVy9MXj823MracezGXTMSMdnOJT1smekm5mfrNS0 rMEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hWWAojqdsRSVQu9mmlJr+UEwHfZNqJ2JQR14vWSq+ZU=; b=xQ+9raVHuxnLiILrrgHqWU8c0bcuBAuf9zbEFAZi/vf83k3Np3Olxla7T5iEsXHjZ8 I2cSe9p6KLrFAbojPv7ukOgD6PYeMEsatZJuYaNOfHlN890LxfXt8o1ARVBSOzH/OtdH 0Db0bvNMvVscKU9GsrPtwtWNgtxrZS/JyGQ+6YwDsaKtNSehQDXG4ppVe3WZKnYFXB/j QcKw/8hioTiCd0xhHNoaYOaeeTyXi3CWFH6OgBiY2hN996iThDM5yfM3Zo3NknGs7PIG S51Os8Lg2++RRW3zO30ylLuO4MkL30vfKAXPTpWri09QJcq8ICFMWVQ2zwkZ3hosgbTp bV4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=V48oykoV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me18-20020a17090b17d200b00213cb58e47bsi8301871pjb.8.2022.11.21.12.23.44; Mon, 21 Nov 2022 12:23:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=V48oykoV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231812AbiKUUIY (ORCPT + 91 others); Mon, 21 Nov 2022 15:08:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbiKUUIW (ORCPT ); Mon, 21 Nov 2022 15:08:22 -0500 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AA4C15831; Mon, 21 Nov 2022 12:08:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hWWAojqdsRSVQu9mmlJr+UEwHfZNqJ2JQR14vWSq+ZU=; b=V48oykoV4CwB7MWCnl4eEysjLB 1CjUshTHpVjsaElOiqSY+vICHBA3usOUTQMgEI0qvidIJ8F8pInEGPiN/0UVuGftSKVjvkHxkTZdk 8UmR7gQiOzeE8eRe+C8UBY5JfZZR7WWdJssZ8ywY+PkGDAlEzcUKvOj0/dkpbeEUn/Hk=; Received: from p200300daa7225c007502151ad3a4cf6f.dip0.t-ipconnect.de ([2003:da:a722:5c00:7502:151a:d3a4:cf6f] helo=nf.local) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1oxD5R-003bHe-80; Mon, 21 Nov 2022 21:08:13 +0100 Message-ID: <441bcda3-403f-0bf6-2d6f-d8c9d2ce44d6@nbd.name> Date: Mon, 21 Nov 2022 21:08:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] netfilter: nf_flow_table: add missing locking Content-Language: en-US To: Eric Dumazet Cc: netfilter-devel@vger.kernel.org, Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Jakub Kicinski , Paolo Abeni , coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221121182615.90843-1-nbd@nbd.name> <3a9c2e94-3c45-5f83-c703-75e1cde13be1@nbd.name> From: Felix Fietkau In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21.11.22 20:47, Eric Dumazet wrote: > On Mon, Nov 21, 2022 at 11:45 AM Felix Fietkau wrote: >> >> On 21.11.22 19:26, Felix Fietkau wrote: >> > nf_flow_table_block_setup and the driver TC_SETUP_FT call can modify the flow >> > block cb list while they are being traversed elsewhere, causing a crash. >> > Add a write lock around the calls to protect readers >> > >> > Signed-off-by: Felix Fietkau >> Sorry, I forgot to add this: >> >> Reported-by: Chad Monroe >> >> - Felix > > Hi Felix > > Could you also add a Fixes: tag ? I don't know which commit to use for that tag. - Felix