Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4387283ybb; Tue, 14 Apr 2020 06:22:55 -0700 (PDT) X-Google-Smtp-Source: APiQypI154VCi9JrMQzJ0nQGJnJMhQvHKEULpPDU9LRCFcY+0H8Qvu0AKfwDBZGkAFPIhw96Ylh9 X-Received: by 2002:a17:906:7486:: with SMTP id e6mr40485ejl.181.1586870575162; Tue, 14 Apr 2020 06:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586870575; cv=none; d=google.com; s=arc-20160816; b=YenS9eq1BMiqQ6QJt7MchJiBDAfYZC5tLrY2qeKdvxNO/MvhkPjQGM95rcBUyGkwti WQjJxBEarmgRV1X0sWqWSU7ScIGurQEdGnlb0F86SwUZ79n48rqvO2DvR9mDWRwcn0Px J4vCEIJ5zhFLWq98OE0js6fYDf+ajWdf1uvQHMjr/aZcstNP/ClbKj4419o/Se5sMZiH qylMAOmCnUPpfxHozLTqTzm6vSMy9SXwT4fOH+SqJxJKL+E7lt6B4QJHcwFhBDvaI/GL sQzgumvzhMRLb2Erk67KQz9Z/rFtKedr7sndVUnPIgGc6EOXu53YpsfEC4VsAULboQmy qYUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yj6VDSkpmsJfTn0YsrbZeLvfaDCWIcTDFfbjnREOyH0=; b=nR+RV47OIBf4LG6f+MCBW5j07samNfzFZ+N5J2iHl2SRtmmQnOz/2ylHHF+2duFTfV HTqLtAHV6cPmhSTltzPVUUr0tAuPHKN8C255O90Jwgg13Lk/ZvojtKRccy4TXkBLnUMq cv/dm5ai6mi7jrOch+T9wLFB46oR4ZlidhnS4lE/GLmKbcNWPCIGjwF50mEuRtiP1WlT mChZITNANRHlvke2iuB8uInRtWAIZw8HZQYeyv/rNY12H4xJDbyak8xa7CapndMNW+hI lVQCvgCV3yx+ihzbft8ShS4Xkt2ylGNKmBBQxylgQwscNtVvRdpNI1ogTbp/X2ddbBCN cTjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zk8qzDU1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si9201497ejk.498.2020.04.14.06.22.30; Tue, 14 Apr 2020 06:22:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zk8qzDU1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731678AbgDMQjD (ORCPT + 99 others); Mon, 13 Apr 2020 12:39:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:34310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731652AbgDMQjC (ORCPT ); Mon, 13 Apr 2020 12:39:02 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 949BE206DA; Mon, 13 Apr 2020 16:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586795941; bh=OoRhd3H2mZNy2v3zODygeRhXiEbly9vr7r5aIwvM+HE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zk8qzDU1IQ+8S+QvQhWMs74W6bhVLWxEUeR2CNxxy+o5BAY9TXg6p7nbw1gPyZ+6w xoplIxSndGoIZJbpZjc90Es57ebeXpWD0L8VDMsPAa7zEO/X+0e/5QidCGEyD//joL WnWqsUhYh3hhMglsrc/jxpa9jrkJpEkI9WBNZfpI= Date: Mon, 13 Apr 2020 12:39:00 -0400 From: Sasha Levin To: Stefano Brivio Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Pablo Neira Ayuso , Phil Sutter , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org Subject: Re: [PATCH AUTOSEL 5.5 27/35] netfilter: nf_tables: Allow set back-ends to report partial overlaps on insertion Message-ID: <20200413163900.GO27528@sasha-vm> References: <20200407000058.16423-1-sashal@kernel.org> <20200407000058.16423-27-sashal@kernel.org> <20200407021848.626df832@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200407021848.626df832@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 02:18:48AM +0200, Stefano Brivio wrote: >Hi Sasha, > >On Mon, 6 Apr 2020 20:00:49 -0400 >Sasha Levin wrote: > >> From: Pablo Neira Ayuso >> >> [ Upstream commit 8c2d45b2b65ca1f215244be1c600236e83f9815f ] > >This patch, together with 28/35 and 29/35 in this series, and all the >equivalent patches for 5.4 and 4.19, that is: > [PATCH AUTOSEL 5.5 27/35] netfilter: nf_tables: Allow set back-ends to report partial overlaps on insertion > [PATCH AUTOSEL 5.5 28/35] netfilter: nft_set_rbtree: Introduce and use nft_rbtree_interval_start() > [PATCH AUTOSEL 5.5 29/35] netfilter: nft_set_rbtree: Detect partial overlaps on insertion > [PATCH AUTOSEL 5.4 24/32] netfilter: nf_tables: Allow set back-ends to report partial overlaps on insertion > [PATCH AUTOSEL 5.4 25/32] netfilter: nft_set_rbtree: Introduce and use nft_rbtree_interval_start() > [PATCH AUTOSEL 5.4 26/32] netfilter: nft_set_rbtree: Detect partial overlaps on insertion > [PATCH AUTOSEL 4.19 08/13] netfilter: nf_tables: Allow set back-ends to report partial overlaps on insertion > [PATCH AUTOSEL 4.19 09/13] netfilter: nft_set_rbtree: Introduce and use nft_rbtree_interval_start() > [PATCH AUTOSEL 4.19 10/13] netfilter: nft_set_rbtree: Detect partial overlaps on insertion > >should only be backported together with nf.git commit > 72239f2795fa ("netfilter: nft_set_rbtree: Drop spurious condition for overlap detection on insertion") > >as they would otherwise introduce a regression. In general, those changes >are not really relevant before 5.6, as nft_set_pipapo wasn't there and the >main purpose here is to make the nft_set_rbtree back-end consistent with it: >they also prevent a malfunction in nft_set_rbtree itself, but nothing that >would be triggered using 'nft' alone, and no memory badnesses or critical >issues whatsoever. So it's also safe to drop them, in my opinion. > >Also patches for 4.14 and 4.9: > [PATCH AUTOSEL 4.14 6/9] netfilter: nf_tables: Allow set back-ends to report partial overlaps on insertion > [PATCH AUTOSEL 4.9 3/5] netfilter: nf_tables: Allow set back-ends to report partial overlaps on insertion > >can safely be dropped, because there are no set back-ends there, without >the following patches, that use this way of reporting a partial overlap. I've just dropped them all as 72239f2795fa ("netfilter: nft_set_rbtree: Drop spurious condition for overlap detection on insertion") didn't make it into Linus's tree yet. >I'm used to not Cc: stable on networking patches (Dave's net.git), >but I guess I should instead if they go through nf.git (Pablo's tree), >right? Yup, this confusion has caused for quite a few netfilter fixes to not land in -stable. If it goes through Pablo's tree (and unless he intructs otherwise), you should Cc stable. -- Thanks, Sasha