Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp672335img; Fri, 22 Mar 2019 06:19:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGzT+DEmkpu6mB+bgdTKztAQeyOQKi01rOcV27D1UudFJiL+D/N0gvm5YOzDGXwLJnLxsc X-Received: by 2002:a63:54b:: with SMTP id 72mr8094936pgf.323.1553260747307; Fri, 22 Mar 2019 06:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553260747; cv=none; d=google.com; s=arc-20160816; b=uYDdOLTuHhlqvY4Rh3shcOWPez1b/JieI3w4gWEKFJUQ6+23CakcVS9ZGTtyufIqta PveVp7cm5SEwxKzbbR4X+t4erUtLGUCl/EC358lqYczVG2qhTQInc7d7RCL8oCnSiX6R h+sAOg1nIIOEHbQAXtPSrTtQkWS5DCWOgLOb942qcLPtYeGLwdFMC3/FvqUGDzAnqZ/W yNf5dbYNL0HytJ4XEoSyZZeiNMkqaD/qJgW16cLIHjd9TgmaxT1hz5Qe9dtt8f0exCbP 8DBSRnM1fC5SZd7H/hlauGOgsW3NzPyHl0NpNseR6eIev4tgka9lo/gr4LqUZvujh7AS 6eWQ== 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=0gVQ4XM+TYobXyxSAJ0DI52OoMC5JuW08WJEP3G153o=; b=hbh5v/w3JdFAePJqmOa5irtHs80Q5t9+pxufZu51rVruogBRR2TFuIFN77JNSdSkU1 D/119CKpHYawdc/P4IpfEkEb5ggV7bxJ/jnlBPkzENl0Rh4A8lZzA2+Kp/3bqxJvvg+2 N3ZQMoNLJWVw2pweA6tyzvRZcKZTn7qsivTZR4SKJ3sNGkChUH82+yy+Y0zRGSnE5YuM qzA+ChhRpgVzgl/WUEqNerRNZBYvwOp9KZQcJ8TG082sEI07LIguoJgk0j+VLYk8wji3 IMJHN4axbMCe0BHY2oQ4D0yLtCQDdB9pH7oFwe2irupelBnFkYqIiO4/A34Z6Xdbx+Cp cZcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EyMM3lq+; 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 k12si806209pgc.595.2019.03.22.06.18.52; Fri, 22 Mar 2019 06:19:07 -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=EyMM3lq+; 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 S1729057AbfCVLYL (ORCPT + 99 others); Fri, 22 Mar 2019 07:24:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:51074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729041AbfCVLYC (ORCPT ); Fri, 22 Mar 2019 07:24:02 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 3B328218A2; Fri, 22 Mar 2019 11:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553253841; bh=FgVnfffL9Ndz/LKhP/XdYCzgZ2ULs807oUiwSQwPW2g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EyMM3lq+paFF6QZGKYxIvZR5ghdyhFsGXDzWqV78auDXgao1lheLJgtxvFOytX5Hr G8AOaDu0CFYMyIwFVrdC28tYqJN514RkdtWquNBjkTXxi/fphJQUr+BdRYUU01fpzd EUOOCjStlBzslnyD3m7elUIUGdFp/1evmNhAh5kk= 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 3.18 088/134] net: Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255 Date: Fri, 22 Mar 2019 12:15:01 +0100 Message-Id: <20190322111216.497416680@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111210.465931067@linuxfoundation.org> References: <20190322111210.465931067@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 3.18-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 @@ -2558,7 +2558,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) {