Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp724136imm; Thu, 13 Sep 2018 06:52:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY0PBCp/Q5V1HipC0h/5b0GJqzS4QbnXm2V71KUPP3RkTkikzMvZIhano+Jyj2lFrXlVwlq X-Received: by 2002:a63:d857:: with SMTP id k23-v6mr7364996pgj.106.1536846725744; Thu, 13 Sep 2018 06:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536846725; cv=none; d=google.com; s=arc-20160816; b=X3w9/I4fZN2NNb0PYcupdEcpGtXtDbH2ETY+fHCErHIE37Slx+gIZ4j1lWiRLcDyrz gtsKkR8oght+OFinH6ha2LPvvooNEvPmIqlNuUNE6cAeJxb7s/S06Rc4GITrcqCH68X9 7SVu6W/AGJVZvcbrrpvzlo9tuCnDRSEp8HNzyZFMIVWuOZPr4W3qVkcKBzLEAxtXgCu+ g8OCl6IHw+ituIDFX1Nj0Nt9oV6rptNkT8jQt858ufcZZRRYqin1KDuijP7uOX8lnX7V u//etytK2CaOW4b+F4VXIGCcfDb/ddu3RwV7WMPR7EAyMZpclWxJ2iHmVI2DXFWfUUzC 8+Jg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=QiG8fIC/+G5Z/7RTXCtuXtsoqnyy2CWjLKfSaKB5+QQ=; b=i9EYXaDskBFOTbB7MOgPdWdk8Qfwfk4cG+0D3eOAci/LIqz9j5rICfbXWUEe8cTsRA 4kXDXSxvIqEpdOPufWwCpNvJqyq9upQR0cKRJEYpZ4h9R62nsvSVbyjPh0aj+kyTxhoB 3qG3UpM9BmrQ9WU5DM6lU9LFZrm8P8gE8UUOzuZDrRKDYebmROiCQSRKlcHkKwxJksxy kJFvAzLlh3gHnlgm6BJN7NZBk/mvR8/VbQkM4WxkY8t9j7HTkso/YBV3P0V3ORF4b7E+ UcGBpalvGY4N4IhktiuzNmPBp65dMjmqBReKr3TKQ9dgU77js++FxgAVNFEeOhzpUIkp oTlg== 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 y9-v6si4128842pgi.691.2018.09.13.06.51.50; Thu, 13 Sep 2018 06:52:05 -0700 (PDT) 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 S1730826AbeIMTBD (ORCPT + 99 others); Thu, 13 Sep 2018 15:01:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33298 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726967AbeIMTBD (ORCPT ); Thu, 13 Sep 2018 15:01:03 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5CDA1D10; Thu, 13 Sep 2018 13:51:28 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hangbin Liu , David Ahern , "David S. Miller" Subject: [PATCH 4.18 024/197] net/ipv6: init ip6 anycast rt->dst.input as ip6_input Date: Thu, 13 Sep 2018 15:29:33 +0200 Message-Id: <20180913131842.526821574@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hangbin Liu [ Upstream commit d23c4b6336ef30898dcdff351f21e633e7a64930 ] Commit 6edb3c96a5f02 ("net/ipv6: Defer initialization of dst to data path") forgot to handle anycast route and init anycast rt->dst.input to ip6_forward. Fix it by setting anycast rt->dst.input back to ip6_input. Fixes: 6edb3c96a5f02 ("net/ipv6: Defer initialization of dst to data path") Signed-off-by: Hangbin Liu Reviewed-by: David Ahern Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -956,7 +956,7 @@ static void ip6_rt_init_dst(struct rt6_i rt->dst.error = 0; rt->dst.output = ip6_output; - if (ort->fib6_type == RTN_LOCAL) { + if (ort->fib6_type == RTN_LOCAL || ort->fib6_type == RTN_ANYCAST) { rt->dst.input = ip6_input; } else if (ipv6_addr_type(&ort->fib6_dst.addr) & IPV6_ADDR_MULTICAST) { rt->dst.input = ip6_mc_input;