Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp268430img; Mon, 18 Mar 2019 02:41:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzw6TckWvNSvxs3yRJHjVrUucZUC6zfo+XIh2xtWwUHLmrtXs9K69C4mVSjOU1HRKGA8fXD X-Received: by 2002:a62:5142:: with SMTP id f63mr16135376pfb.57.1552902118236; Mon, 18 Mar 2019 02:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552902118; cv=none; d=google.com; s=arc-20160816; b=A4FlNk6WJcZGvjTSNykJvI/PTyOfR8gEb75KicL/cGI6COOoifS2/KhDb4Esr0u8qs wGf+TW1WqXKUzggGMXwOdO+TejgiGjkg7gGF+nOpdEo6d7aM+qRME2jyegMH9Qf+7KsG wZLnbL7wQHsgMXMNvCUEIkfywIVEQCuXmhxLMBu7odOIxpDMyiFyriGTeKUwbprQ2teq Rv1mZoi8OJ6IS8NfE2o5C5073ea/DEd+lAAPnBdr1qwwNZvbqFsfrTkVqfQH/53n74HS sbCQi8fYg0HCZT2puGbQHXLYNZxQc6ky60hn9ZL6oAQpW3siOYU9091bYS3p1X8KfToq JT9w== 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:dkim-signature; bh=2yOjro+07/JrY5sQkL/Mmegu/ymxpmbpRW2lDmcsZLY=; b=h/Qu2EY5Be1NJPCgBJanTCNE2X/NhzqSG1OIF6LqeYkt0NeqGi1nCAEgdFUPg51W1Z UxdgVjfQulVTke3+2/Sp5FCUXOdkigOaxXOXe0LklM6GrqqzSn/36CNBsSgS/oVVQOe/ VmPENwj9MUt9rvjw59C+6mOPo9CDzVeVo3Sf7bgsZMMgi9DVLA38KQTWQRGaxtwgx6PK 3Wi+IzTkaGZH+oTUzS0v/24xeXBWpXlOH+lbBSDFEFBej5cu1J8K0P7KJrI1nhxho3jb iwF//5cYfYtytg1EQIawL3IeVvZDj5wbNFN3zrV6H/MZJ/FqpvIImLIvRFbLs720bLQI pzkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CJMSNHGf; 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 c7si9458090plo.274.2019.03.18.02.41.43; Mon, 18 Mar 2019 02:41:58 -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; dkim=pass header.i=@kernel.org header.s=default header.b=CJMSNHGf; 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 S1728238AbfCRJkW (ORCPT + 99 others); Mon, 18 Mar 2019 05:40:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:43560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729084AbfCRJfL (ORCPT ); Mon, 18 Mar 2019 05:35:11 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 22CE4214AF; Mon, 18 Mar 2019 09:35:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552901710; bh=7HqKm7EU7B+E5NW2iUVY0RchmMA4SsGNYEkLR6RySPM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CJMSNHGfrYOHKCx6JowOwgWt0gzBdhCjeXD6er6IpkJUiVN3r6l3hBqtWIjLlR7YU nCKe/e2j/gysxi5ddpHNcbm6lPtew+gR2UiYmpOjLNZAE3M4i0oa35vvafgR/GrBdw Wy8OFB+FDx59YzU4IlDMycTRC4/TRP+0947PsRUg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kalash Nainwal , "David S. Miller" Subject: [PATCH 4.14 24/34] net: Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255 Date: Mon, 18 Mar 2019 10:25:48 +0100 Message-Id: <20190318084148.097666500@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190318084144.657740413@linuxfoundation.org> References: <20190318084144.657740413@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kalash Nainwal [ Upstream commit 97f0082a0592212fc15d4680f5a4d80f79a1687c ] Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255 to keep legacy software happy. This is similar to what was done for ipv4 in commit 709772e6e065 ("net: Fix routing tables with id > 255 for legacy software"). Signed-off-by: Kalash Nainwal 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 @@ -3495,7 +3495,7 @@ static int rt6_fill_node(struct net *net table = rt->rt6i_table->tb6_id; else table = RT6_TABLE_UNSPEC; - rtm->rtm_table = table; + rtm->rtm_table = table < 256 ? table : RT_TABLE_COMPAT; if (nla_put_u32(skb, RTA_TABLE, table)) goto nla_put_failure; if (rt->rt6i_flags & RTF_REJECT) {