Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp49118imb; Thu, 28 Feb 2019 15:37:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IaMEEutMcSExaTpEeyJ5Q3/xLJ5qkPIZWxpa8c2KWscDMUYuZ1ZV8aQcuY3gvnEa2072opB X-Received: by 2002:aa7:8059:: with SMTP id y25mr2295794pfm.74.1551397054695; Thu, 28 Feb 2019 15:37:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551397054; cv=none; d=google.com; s=arc-20160816; b=MjV+1qxP5UPFVwnBJVFoQD9h0JjIU/CPYkvjI4XC8ifCu/t6Dh1XgqJSeH5qbKYCay DEZHI1r8lEUOLDx8m0SA6pRJKXMS/N/ixj9FOi9ozVooI0PMDbQC0a5sk3nPxr320+8U pZWfI7wU5psju0K/MW1gGLqVQgLaArMtYRbm/OfaG9zBFza0wpVmunccDAieEZ5lU4e+ Y5dG8zHGUI5EczYVbAPjfuNF5TYOvdPrWI3TjiLHNHitrMrvGWPvHYG+JP5k30HxUMxD iqmQWfB9/mKzB6grTUmhZKfuF0WH63I6PYuMIC5pIrahUyn+edH1WM0BJlncOd2jMjE2 crKA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ntjfVa+jngHFHVKJwKRWVLjgGzUEmZ1zbsiDrkIYxIo=; b=qH8htKJ5lXAXGs+GIhcoVY3uBOsqJJAjcja6ZRx1j5WO2/1D6KyznDguhGnmTpts4q dF9TqBc4mRT6P374HRRnCEAtzFY+rNcQsg5hop/4Kvwonu3pIyozxgzn3wEA0FiWp4JK 7wO3Xhg9avjQ0EDiRz/2HSDEAm7pO6lqlQDpf08j5wT73VNG4eetguOwu4RTpPPkdajZ ZOAepHieCINTdT2ze1ZcmvQl1jGgKG8B9nErgP/vilWTv3Jpd9k6Tfrn2aRqxGrc3B6a ShwVr7Tzt3hm9gliZSmLAC+l+oA8jWiTS9Ld7QvaNtZLIuYrb0XHGJcYxPLFs4dPL1Re 0iOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nEaIHPAi; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21si14437599plr.297.2019.02.28.15.37.16; Thu, 28 Feb 2019 15:37:34 -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=@gmail.com header.s=20161025 header.b=nEaIHPAi; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732707AbfB1Xbp (ORCPT + 99 others); Thu, 28 Feb 2019 18:31:45 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44419 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732367AbfB1Xbo (ORCPT ); Thu, 28 Feb 2019 18:31:44 -0500 Received: by mail-pf1-f195.google.com with SMTP id a3so10452308pff.11; Thu, 28 Feb 2019 15:31:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ntjfVa+jngHFHVKJwKRWVLjgGzUEmZ1zbsiDrkIYxIo=; b=nEaIHPAiZtM905nJguLEKVXr7X5kW/qtIUC85tbg8CikmJxHmMelCHiR7nh6x0nwJO X9sYO8xgJ0qu5sP/c62jYFtdPyaxbc1j+WrZqZpK4W0gbe9TkQLDW9B79pMEmjOt9Ub6 51pmu5PBL+b4Re2l7EhfIrKq2yq3Hhn53GjizKeME/JSdXIPZLtB3uFi0ymJM15+K1h/ SF/FIzKQ3mV+lvDYU/LRdESUIwiXqQTHMfE/5x//kYZZw1O1ve9+tBieXRfyBi01eVlH /JDLDWPYeZWxQZJ4m13SMqcVkntIMMLcnOc8Yb8nSv6U0LswkOGxN8nRecMI6UFcSt3q Y73g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ntjfVa+jngHFHVKJwKRWVLjgGzUEmZ1zbsiDrkIYxIo=; b=LDPV/cKASy9DqlqlbKeRgEbVpDM+pCcp+EggwUqu3DqN9OJ7oYtstBCK0pw8+CxKIF KPJjwqvb3KYqhIXdcUa9JkT4TyOMuP8Sdp9izD/5evwkRy9EXeJ3KGLkTtTI7OlzxscA 4mZQ2J19aMJTAZAsU4fEDijPqfMLg16edtHmix2rmHWpj5H3udelWJLylmMjM+2rnOIQ AZt2Ie7J6xptxj6MaAHvEHnmThW8lU3OKyBhX3c6ZNFq3M8twSGhS03It1q4dQGbB8pv X6BP+cczMF9WdsgLPf/VDGMRLDMTRVzJms0La6J8WrVsvPsKmg5z0TBksCLcjoBq5qFX 518Q== X-Gm-Message-State: APjAAAWax1MjSqNjs02Jtx0aQEqq2tJVG20q2onYvQJhXHowxtg7FcU0 SjyMB3i190rTX2ntUsxh02wwYcwQ X-Received: by 2002:a63:144:: with SMTP id 65mr1808067pgb.38.1551396703305; Thu, 28 Feb 2019 15:31:43 -0800 (PST) Received: from ?IPv6:2601:282:800:fd80:426:ff55:d0ef:2e52? ([2601:282:800:fd80:426:ff55:d0ef:2e52]) by smtp.googlemail.com with ESMTPSA id o5sm45932039pfi.118.2019.02.28.15.31.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 15:31:42 -0800 (PST) Subject: Re: [PATCH] net: ipv6: check net in ip6_call_ra_chain To: David Miller , fruggeri@arista.com Cc: yoshfuji@linux-ipv6.org, kuznet@ms2.inr.ac.ru, maxim@arista.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20190228190146.802CD95C016B@us180.sjc.aristanetworks.com> <20190228.130213.1481374802407995712.davem@davemloft.net> From: David Ahern Message-ID: <171e33d9-ee82-6a62-693e-5d585e4eca28@gmail.com> Date: Thu, 28 Feb 2019 16:31:40 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190228.130213.1481374802407995712.davem@davemloft.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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