Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp114450imb; Thu, 28 Feb 2019 17:52:47 -0800 (PST) X-Google-Smtp-Source: APXvYqzay3WvxeMEyKl58taNZkR3LMGpBznCOyWduHdWWa7Og6NTVBQBwWVOnRZ9fr+OVa2mdOGp X-Received: by 2002:a62:61c4:: with SMTP id v187mr2794004pfb.133.1551405167260; Thu, 28 Feb 2019 17:52:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551405167; cv=none; d=google.com; s=arc-20160816; b=hryYqrTC9jV3kIQjoQ9INlzumS4XrJ5J8vM1waaKBI2HY/rd0lu5u+YQc4KNXoDQud jWSpdf+uvdQQPb2V/mgdcD9GFJjFOTj1sQRSumNsDaRkaw/8GLujx+i9jChdTnIz3dva ji+d77o88IdknqRYOEOuuiFuoF5R3BizYZ2/+MAEniZlzU6IbO2c+iIq0S2zuEOWsc/5 J1nPWWSzfuJ9DRL1TaTUZhaptjg+0nTYap1GqpUbwSCheQTiRr21RVb4HoaHVs9HE5mW y5RtaizWLRpAwB6kChToiqQ8US4io60gU2UQBbG35FtUTXeeEpTsN+LnwbXyMmTQ54xE v4fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=g0bEwvUEFK1J8CZ2fvgvp4/COBWyjjoGx4ZMNvvVzOc=; b=nZ8ORfSnYTHJAowWhZMwjZbxcghHdv0lkceO2VZ5ehXNWM6mxcLk0KGX6mJpjXMbO5 jFCkAsXneS6Eg5tz9Udlew0wg5SCC/9AIlBQlDxapSorinaPHswIyG3Prxt453gIcYue Ri+KJLV/GIrN11dIhmRGsLTpcBerphAiUbPdS6b6GoTDucNUgSuwAGImR10+fmT1wBER v2uYZT8IWkoZiG1KmCnueRNTyfdcpe0rE+1g03uJ5BoBS0jVJ1EiOKpbgBjobxoA0nKJ K4oyaDTztEvdi5MdRAHqsi7e+BdfOtyCky4EXcKCwJ7+HYcdWWSBAcKBgx9Dzyl8iNGx /wGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=googlenew header.b="A3iwn/B5"; 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; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si7508413pgl.587.2019.02.28.17.52.31; Thu, 28 Feb 2019 17:52:47 -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; dkim=pass header.i=@arista.com header.s=googlenew header.b="A3iwn/B5"; 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; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731654AbfCAAJ3 (ORCPT + 99 others); Thu, 28 Feb 2019 19:09:29 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:40071 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731073AbfCAAJ3 (ORCPT ); Thu, 28 Feb 2019 19:09:29 -0500 Received: by mail-qk1-f194.google.com with SMTP id h28so13273820qkk.7 for ; Thu, 28 Feb 2019 16:09:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=googlenew; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g0bEwvUEFK1J8CZ2fvgvp4/COBWyjjoGx4ZMNvvVzOc=; b=A3iwn/B5hHT8VVvop9P/dLzTrqF9PEl5lvECFfMRhkr1okOqGTp1MMODsDof8+2jwy p44XZcRw5/Vdsx3Bc8UOKheNkbLTCvDg3oO96BRQEK9E8zKeq2Ved5v/tJE1Ee3aYaby qvwfk3A6GdHAGTJ74xhIpUPHwryWJTSSf+dzh88qZixy+xjsMsEYnyh4CN3oQU5y2asc HpGgIjsxAZn8xi49SqBihWd79qF6kLbCpB1E3LqQpJsZXM1941h7j+o3bJ2IGXQ9clC0 3ui90MogtXGm7rzyXTUn+r4xzEMWBOQ3o3HfKlMJKfrspScNhSAt2pNnLDpZRcvFties JS2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g0bEwvUEFK1J8CZ2fvgvp4/COBWyjjoGx4ZMNvvVzOc=; b=aGJmrOuEGTPKFuFFfX6syP1PqueA0kq5/YmIWz1GbN5ZLnVAnYeGxHUEgkzwWQ6Q1u sNJoSJOBesnm/3mhiWsIDR/ZaQ3Rd+oUVcBsda6DJH2wRW2mflksPOE7PQApcsTthNkY ZXgXEhy0nC6LcFsKCb4Cp3uYpL4s9lSFI6e2FUfEdSJp4NNBVRiyZI5hjLPab85VzJVd Na/eY74v4//+Teh8DgnKLkTSYbzZYCG6Ua/tHx9sdq7re9/acd9/NZ9SONDTlLDSO+SM rE/hlr3S+BCQFoFlChS7/UFDh3UvDdtRxXzYptT63dClRWP0DQvgbtNKwjCr6LlJhTNY otMA== X-Gm-Message-State: APjAAAXLiMVeoGMpg/pbILgrmuXKWmW6gdTmXnF4nVLLNBKMaoW1I7zL Wuz0FuvyhmEzPlhJefIJ/MvL39SUO+iDFhjtbvEH3g== X-Received: by 2002:a37:66c8:: with SMTP id a191mr1731696qkc.281.1551398968232; Thu, 28 Feb 2019 16:09:28 -0800 (PST) MIME-Version: 1.0 References: <20190228190146.802CD95C016B@us180.sjc.aristanetworks.com> <20190228.130213.1481374802407995712.davem@davemloft.net> <171e33d9-ee82-6a62-693e-5d585e4eca28@gmail.com> In-Reply-To: <171e33d9-ee82-6a62-693e-5d585e4eca28@gmail.com> From: Francesco Ruggeri Date: Thu, 28 Feb 2019 16:09:17 -0800 Message-ID: Subject: Re: [PATCH] net: ipv6: check net in ip6_call_ra_chain To: David Ahern Cc: David Miller , yoshfuji@linux-ipv6.org, kuznet@ms2.inr.ac.ru, Maxim Martynov , linux-kernel@vger.kernel.org, netdev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Francesco