Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4987010rwb; Mon, 21 Nov 2022 14:58:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf6+/Ivdv/83Qc2vBq/APDqIhsDuOaQwdDWCFF091zIRqVchoxgJaoesrqPh06R3yPwEq2ft X-Received: by 2002:a17:90a:f489:b0:212:f516:edfb with SMTP id bx9-20020a17090af48900b00212f516edfbmr22942233pjb.156.1669071496991; Mon, 21 Nov 2022 14:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669071496; cv=none; d=google.com; s=arc-20160816; b=AFzFlZO9O2HlCCS+5jM7k9DXfpdQ51JSvpNUA40uqVGDFjie2hTifU5Ihy44ZFNnaA bIW4zbPC1Y48bcYTqYjZ5lGV9S3aPliagWpkwjt3nwbessY/y0V8jplwTNF6z4TAy0Zx K6c/HV2rMsY5OKPddkaaKRn7ZNgUiFnxR9G6sfANIWF/R5zOnWk9UlyqR+IMOnBr86nW y5yOYfDYPULznPuBNzNYm2fX0tM+h9whStIlqzKStYNOAKe2YeSy6ggoF/XP1WOyYu2w TCOfnybyGfPVzrPiNLFN0aP+3dK63K8tL88WZzHEt6db/kDciI0wo9cr2le9SwiV2GrI optQ== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=uxuIYSshrqEsvoKJWcNOpfY8vHfrYW3veh9MBfAIpnU=; b=KI2DQqHwTVQTjOeYHN4sfi7FRTfMX7qnhLqj/mVrQaFBkeXp9T4YYreIfJYjMnWX5F bc0sfirocWUYfQSaDbjNZ14ZFyn3QPc/L88p0u/mgtlNrny7vWEq9jgeFJLPs2P2p31M 8cBdoAZ3zTiVx7h3uXzwOSK0SpyB5wks2N57/JXyGq6yyNOXWrRlKeNXiZtNhj2Sudn8 X8AA0L6ItTuISmYe5E7VE8TDlnl9fxLvJZ1nPhPrZEGtqVBUvgZwJ6sTUjhVmbvlWvr/ h7+nEXpq1XAjE7Zm+n1HtWmi6+W48lJrW7h/SzV6zcNhP9Ucd8wOXON2PE8fUwiz9pqX 04Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=qZ3Of+Zy; 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 x20-20020a056a00189400b00573f637f587si183983pfh.227.2022.11.21.14.58.05; Mon, 21 Nov 2022 14:58:16 -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=qZ3Of+Zy; 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 S231676AbiKUWac (ORCPT + 91 others); Mon, 21 Nov 2022 17:30:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbiKUWaa (ORCPT ); Mon, 21 Nov 2022 17:30:30 -0500 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7845C694B; Mon, 21 Nov 2022 14:30:29 -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:Subject:From :References:Cc:To: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=uxuIYSshrqEsvoKJWcNOpfY8vHfrYW3veh9MBfAIpnU=; b=qZ3Of+ZyrkGSar9m0nqK8N1r8X PHYAtBzewU9ZqZ7rL5jKRrWaAbsUC2jOKte/CWHIfmgXdK/mkxxvhPS4WdGrzdOOfmLvcbJuZRYZE ab0ZWMrOUK5e0j7cKYl8/mcJvykUen18FsEUINr6LJpOdYnmmAIRaZI/4na2Wovgb1KY=; 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 1oxFIx-003cZx-Qy; Mon, 21 Nov 2022 23:30:19 +0100 Message-ID: <12f33881-4b6c-c4d4-1c2e-27bf93921536@nbd.name> Date: Mon, 21 Nov 2022 23:30:19 +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 Content-Language: en-US To: Jakub Kicinski Cc: Eric Dumazet , netfilter-devel@vger.kernel.org, Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , 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> <441bcda3-403f-0bf6-2d6f-d8c9d2ce44d6@nbd.name> <20221121123552.16c00373@kernel.org> From: Felix Fietkau Subject: Re: [PATCH] netfilter: nf_flow_table: add missing locking In-Reply-To: <20221121123552.16c00373@kernel.org> 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 21:35, Jakub Kicinski wrote: > On Mon, 21 Nov 2022 21:08:12 +0100 Felix Fietkau wrote: >> > Could you also add a Fixes: tag ? >> >> I don't know which commit to use for that tag. > > The oldest upstream commit where the problem you're solving > can trigger? I know, but I'm having a hard time figuring that out. The initial version of that file came without locking. Later on some locking was added for supporting an extra API for registering to flow table events, but it didn't cover the cases that I'm fixing. My guess is that the locking should have been present from the start, so: Fixes: c29f74e0df7a ("netfilter: nf_flow_table: hardware offload support") - Felix