Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4857467rwb; Mon, 21 Nov 2022 12:55:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf528c7Q7YshNAV0Ecoy3H8rxs5lICj+hIIdFaUkSQpRPWzBVmYMG8sahS8OlBIGdIbKifp8 X-Received: by 2002:a05:6402:b55:b0:469:bd35:655c with SMTP id bx21-20020a0564020b5500b00469bd35655cmr2631723edb.245.1669064153676; Mon, 21 Nov 2022 12:55:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669064153; cv=none; d=google.com; s=arc-20160816; b=mJv97vTPI/9b7/y0p/1rhrwYZ3TGMsAsb+FFijfOdNhjqBKi/4Eb1gAuggchmuu1vn ToA11dWgigHyt64wlQd6jKm/kBk+EXhlnHWYpVgQRB7YLRo1L41x+g+LDs9YDD3fwjR6 G9GpfXifl2oIPUzC6XSqWabp4r635oOlsOEVVoJiXJpbZsBpQi5FXAuzv2ruKw3rM5TY bKHjdvjqfKuHeGKCNmaMqQ+sJ3Hh72k0Ezzmj14kUBrH99urIlC86xRCtXv6C/phGvr2 cnPliRvfUpBRFm+IIvBm7jhw9gx7vMY8/XLma0zoZys5c0TIO76wvY1SC/h6rIZ2D3Fu hDpg== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=HN21k88BYPW1IXLLNQAyuv3uXPjyMHl4EerDCx5rTIw=; b=CBXinwNL//WAHkEjfD17vYUlksHL4nMDo7GQwnDhZ7JpDueQNC+QJUBibU7Ae5znJQ LafAbGIkPR+lOxI1uu2mTz8T1ziNaiN4KoZcrZ0JS85cSsFQL/w7cllZUCaYBgs8wQIv ZZYvIpUspMs6BZLDRvW23JwUmX03LADeDcx29aKWbh7Fc/oVZ5/Uk5u//ueTR6kfyedv BwZPdFDDt35qcivglP3Z+ovY+oQ3XUaKdGQYfxUuyRSxLZZxDK/F/Qn+1OxrsfHoZz8o mULQHl7NbrxKTc/Yd4kA0SjcIRfg8iSEbxphuLofUU8A3WzvKYSNpiwcN0tADYX3hzVW i6lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=ciQVnzPe; 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 xh13-20020a170906da8d00b0078e2828052asi9931785ejb.638.2022.11.21.12.55.27; Mon, 21 Nov 2022 12:55:53 -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=ciQVnzPe; 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 S231641AbiKUTpp (ORCPT + 91 others); Mon, 21 Nov 2022 14:45:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231585AbiKUTpk (ORCPT ); Mon, 21 Nov 2022 14:45:40 -0500 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7441CFE9D; Mon, 21 Nov 2022 11:45:25 -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:References: Cc:To:From: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=HN21k88BYPW1IXLLNQAyuv3uXPjyMHl4EerDCx5rTIw=; b=ciQVnzPeChYZY2d0235iiTvSdi c8MR22HaUxDx84Rs3LamdRvRvSu+9bt3tbvHGrpPBOP22b57oPgy/+phkeftG+l0TLTjcX1V98Q/F Nrv2sSd3Cw4Sc8OTikN0eZFwV1fDi49wGoOi+gPBbBaXcr4lPArEXU5F6nWq6r3S0NnU=; 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 1oxCjD-003axr-3p; Mon, 21 Nov 2022 20:45:15 +0100 Message-ID: <3a9c2e94-3c45-5f83-c703-75e1cde13be1@nbd.name> Date: Mon, 21 Nov 2022 20:45:14 +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 From: Felix Fietkau To: netfilter-devel@vger.kernel.org, Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221121182615.90843-1-nbd@nbd.name> In-Reply-To: <20221121182615.90843-1-nbd@nbd.name> 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 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