Received: by 10.223.176.5 with SMTP id f5csp812990wra; Sat, 3 Feb 2018 10:52:54 -0800 (PST) X-Google-Smtp-Source: AH8x226MZSXXb8IjYUzoj/UY71XhuDYW7GNMxeVDWrn87b/i3pa/FQTNDROJT0z2+JiwUHf8hqrU X-Received: by 10.101.67.130 with SMTP id m2mr33217683pgp.301.1517683974391; Sat, 03 Feb 2018 10:52:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517683974; cv=none; d=google.com; s=arc-20160816; b=fkALGV+51iweXEo9Uhzim23SaL91PIM/4SOOs+q8KYB249sz6tuu0HZOag2cSgHIwi fdRcwmaZz5ap4rYxzdJlFCoateWXgqc7co/J8xEU0UWk+8ODFEBuzASea33SsQKjNzqp r7mA906FJhEkm5dntDq/dOJoT/dg2dLlomQdQq4+1VX3YmKdgC2vgsQxTr+mBSQ42gEI ZYj3d7FSdPSbs7rwY1oM9BR9sjCS28wJZbjKdXUQOjHc5IQKjrVKPAEKhyqIShGYRBoG QXwBRCCXOnvTqkXw7awFr0/v48Cpd9YLWHbEMh9IF4P32JHsxTSSXCu0EhH9ASWovPBD k5xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=5rQmndWgFF1alHt3zaHtcwqpWddl2wyrwxebBnp/GiE=; b=wS41/3vdS7auKx3dVq9v/AcCQfo6Dn1YsqQMX4eUws4puACqTVvLcH0j26tqlkuC8l Wbl0kPrYYw8Qz4SWTcOzgFJgnxxk0u3OOdEaEnzL9QByQs2uXY3YUwB3sdnf7mFPvGKi Lw7N4t2LVHBbYVQjstR+bwxXnb8IWM7xz1k3/JB2zZEPCtGhoPwHj3B+Q4uQrwibwHuP jnOjhqqd2rMGTDAC950L21ERvg+i6O7jH7zT9c3in1k1LwR8sPeOwZ2NI5VC9DnaO5S6 E2s7uZJ9kAXAVdBVgF9eJs93inVP+wx9rZYI09fR6v0v8TXzRgkqmkdBbSxJLIqlEdlC Xznw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=eSby5e+q; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si3236470pgq.332.2018.02.03.10.52.39; Sat, 03 Feb 2018 10:52:54 -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=@microsoft.com header.s=selector1 header.b=eSby5e+q; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754060AbeBCSvm (ORCPT + 99 others); Sat, 3 Feb 2018 13:51:42 -0500 Received: from mail-co1nam03on0122.outbound.protection.outlook.com ([104.47.40.122]:24267 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752885AbeBCSBX (ORCPT ); Sat, 3 Feb 2018 13:01:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5rQmndWgFF1alHt3zaHtcwqpWddl2wyrwxebBnp/GiE=; b=eSby5e+qhjp/voppAWXJxQpqWaasKGSK5yjK4TF5FXPxf2yvJi9dVO+MjzlXbnzg5caoRniN0rQ73XQdZPHDwLH+N8QDB90SipeGUehoODBYA9Yk2lzZSGssh7GOfmE2py4kcth0yJliiQ8aEfL8pQnfbSV2+6SoY4h+gy3cxdk= Received: from BL0PR2101MB1027.namprd21.prod.outlook.com (52.132.20.161) by BL0PR2101MB1043.namprd21.prod.outlook.com (52.132.24.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.506.3; Sat, 3 Feb 2018 18:00:36 +0000 Received: from BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9]) by BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9%3]) with mapi id 15.20.0485.006; Sat, 3 Feb 2018 18:00:36 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Brendan McGrath , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 015/110] ipv6: icmp6: Allow icmp messages to be looped back Thread-Topic: [PATCH AUTOSEL for 4.14 015/110] ipv6: icmp6: Allow icmp messages to be looped back Thread-Index: AQHTnRjiO4q3wfYenUW9lqtwKlQyMg== Date: Sat, 3 Feb 2018 18:00:33 +0000 Message-ID: <20180203180015.29073-15-alexander.levin@microsoft.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> In-Reply-To: <20180203180015.29073-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR2101MB1043;7:kRx2/PDmcAYuu8qeeejLoM6MXfXc1eMdXkOWYeGphV8Ltps/hPYtbpg6yMhEQnyvpNbq+YFAm9RgaS9K20S2IfQy9yzYJeGg08lHaKFicc8C9YB/aWJQMWhGEqwhl+zf/306H2zR3oumaY1BNEhMZlTSKDLjVU06o7vdyDvpAQDvnAuJhJtIGkuPCdrCIpeGSzcvbNqYMvOJLzT3A8ZdPucrgOeew7oM+BaGsVY6GqT+qODXIO9eYB3MoipmfuVD x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a7899f9a-9abf-41bc-7807-08d56b30070e x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:BL0PR2101MB1043; x-ms-traffictypediagnostic: BL0PR2101MB1043: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3231101)(2400082)(944501161)(93006095)(93001095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011);SRVR:BL0PR2101MB1043;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB1043; x-forefront-prvs: 05724A8921 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(376002)(39860400002)(366004)(346002)(396003)(189003)(199004)(10290500003)(186003)(6486002)(14454004)(1076002)(102836004)(6506007)(76176011)(26005)(6346003)(66066001)(10090500001)(5250100002)(36756003)(6512007)(2501003)(110136005)(99286004)(54906003)(478600001)(53936002)(72206003)(6436002)(316002)(305945005)(7736002)(6666003)(2950100002)(2906002)(5660300001)(4326008)(106356001)(15650500001)(86362001)(97736004)(25786009)(22452003)(2900100001)(3846002)(107886003)(8676002)(8936002)(6116002)(3280700002)(105586002)(81156014)(81166006)(3660700001)(86612001)(68736007)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB1043;H:BL0PR2101MB1027.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: zYaLQXa3qqpYusM5ihb5IV7G7cDEETNNNKMaExDvUD+uldeIJbrpMWqKV5Rgfjlj/zB0MaE+5tql2P5UQWzh6w== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7899f9a-9abf-41bc-7807-08d56b30070e X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2018 18:00:33.7065 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB1043 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Brendan McGrath [ Upstream commit 588753f1eb18978512b1c9b85fddb457d46f9033 ] One example of when an ICMPv6 packet is required to be looped back is when a host acts as both a Multicast Listener and a Multicast Router. A Multicast Router will listen on address ff02::16 for MLDv2 messages. Currently, MLDv2 messages originating from a Multicast Listener running on the same host as the Multicast Router are not being delivered to the Multicast Router. This is due to dst.input being assigned the default value of dst_discard. This results in the packet being looped back but discarded before being delivered to the Multicast Router. This patch sets dst.input to ip6_input to ensure a looped back packet is delivered to the Multicast Router. Signed-off-by: Brendan McGrath Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/ipv6/route.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/route.c b/net/ipv6/route.c index ca8d3266e92e..a4a865c8a23c 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1755,6 +1755,7 @@ struct dst_entry *icmp6_dst_alloc(struct net_device *= dev, } =20 rt->dst.flags |=3D DST_HOST; + rt->dst.input =3D ip6_input; rt->dst.output =3D ip6_output; rt->rt6i_gateway =3D fl6->daddr; rt->rt6i_dst.addr =3D fl6->daddr; --=20 2.11.0