Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp124639imb; Thu, 28 Feb 2019 18:14:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwY8ar9eS8fK0N8qPIgURlEpUbCpXlDcu9B9LdUTW0Qo8i02pMmu3bHtW0sXQsz9nM8g+Kr X-Received: by 2002:a62:1283:: with SMTP id 3mr3060262pfs.122.1551406458422; Thu, 28 Feb 2019 18:14:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551406458; cv=none; d=google.com; s=arc-20160816; b=PbiOArD49VoQuE571fV7XF5I6zvENZoS4CQNzHtEWq3wLmrUte/igN3uR+JPW6Z2aV bPdCZ9ciUlDNrDdRqnUGroaKaBSXSMljmv8hlxRVHjk7K0CXhgm6sgcO51i3/BP5n+GE cR2L52lFsjgz1HAC3APXsD7oPs2OxTEcbNSkvP5GZcGCTbz8J0FZxzMuF8OdA8RGBflf EjCLaLNUswJ1mS6CPwmMuDeemSBNmXMIxTVEZ6T21Zl5IVDzqiwtOz1c3gCm7b74JQS6 28CAx1S+eA+U1eoHt3FV/do12XnN/2g9IamR+rdxoELBG+GlGLXWCxvrvfIJdOURcbJe 30xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=kW1lVWjP15SVW+z2gZtvXNErCLUalagi938hTF7VSI4=; b=i45IAqS1Bs9auVPi8/BVnuUiBhvUA4Ot4gQs6u+49VkcvGgWFburajGWTLfHHQ+PZI naW2rnLw3BKTXqzVBLNPkMefNB3RHaU/HgwEIuGxzwKBlv57Svjh6kToXDRhwKMn7SwY mgPolALJGaXoiK0lxCKC6Kv46w+bEk7N/LpRDKLpzjSdZXtcTyyJ5nEwjQW1/tvK4rTi rgpdWmBAmFHbtvA+2zfO4QBm2qIdlA+JKEO+xrz2YA76x7CJwNWsheE4Qi1uE0EbNZGA H+sBFcS6shptLh1sEel9pIlErbmQ/Q3CM318xIadBK0ZFo/qH2JeyWNbEExcmajClOno o5fw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s75si6191183pfa.217.2019.02.28.18.14.03; Thu, 28 Feb 2019 18:14:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730160AbfCACI2 (ORCPT + 99 others); Thu, 28 Feb 2019 21:08:28 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:46956 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbfCACI1 (ORCPT ); Thu, 28 Feb 2019 21:08:27 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 0C3B114CCB49A; Thu, 28 Feb 2019 18:08:27 -0800 (PST) Date: Thu, 28 Feb 2019 18:08:24 -0800 (PST) Message-Id: <20190228.180824.2041984657827980829.davem@davemloft.net> To: fruggeri@arista.com Cc: dsahern@gmail.com, yoshfuji@linux-ipv6.org, kuznet@ms2.inr.ac.ru, maxim@arista.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] net: ipv6: check net in ip6_call_ra_chain From: David Miller In-Reply-To: References: <20190228.130213.1481374802407995712.davem@davemloft.net> <171e33d9-ee82-6a62-693e-5d585e4eca28@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 28 Feb 2019 18:08:27 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Francesco Ruggeri Date: Thu, 28 Feb 2019 16:09:17 -0800 > On Thu, Feb 28, 2019 at 3:31 PM David Ahern wrote: >> >> On 2/28/19 2:02 PM, David Miller wrote: >> > From: fruggeri@arista.com (Francesco Ruggeri) >> > Date: Thu, 28 Feb 2019 11:01:46 -0800 >> > >> >> ip6_call_ra_chain is called when IPv6 packet with Router Alert option >> >> is forwarded. >> >> It needs to check if the net of the socket is the same as the net of the >> >> input device, otherwise the packet gets delivered to every IPv6 socket >> >> listening for Router Alerts, no matter which network namespace it is in. >> >> >> >> Suggested-by: Maxim Martynov >> >> Signed-off-by: Maxim Martynov >> >> Signed-off-by: Francesco Ruggeri >> > >> > Right now someone using such a tool does get all RAs in the system. >> > >> > Your change not only breaks them, but also gives them no method by >> > which to keep obtaining the same behavior. >> > >> > I don't know what to do or suggest in this situation, but right now >> > I'm putting this patch on hold. >> > >> >> need an equivalent to NETLINK_LISTEN_ALL_NSID > > If that would be acceptable, we can look into it. It is.