From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379645; b=QTMEXiK46sOmiL79J4TMv9iW6kYfwl6eNa/ybea7xXINTp+epz6WNMYkz20nwwVWpUva QcMx8SGfXL9X/sUgnxobMR3E+5DQdgmts3PJC5rCeJBe4AONb8QnYCJM8q1Mov1Wb36uB KM2YIg2m1agkT1YahvDS7zmufUdDNDtrMAPJjhgpQg8uMIBXq9hFxGA7hOroBc3C22dzj 6IPqWhNwNROT/Zg5deAxyxWXrWlELVKLM5PrVZyYpHRVVdGBMl/w/LKMEYtLGSQINlKxl L7tqw4iBJ0OfJ33xXjFJC/YCmvMpg1vy2ZyxHy+/+TdaC2/3Dx7AVpwe50D29fkPW6w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379645; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=bxr5X8scq8CsRa5zukwNiVQ07CYt3YDMT0I5vieqRp8=; b=eDsS1dMvc+5oCj8ThT+EF+tMEnJSRuwgF6viT9R/DtbQ9+2SBcdWpBzXohPr7kq3fZTs Uuh5LVcviOvfNIOmmrG+WjYpeZM2VSKhdIou9ROaS4ya/Meu/pbAxxhDobOHwpBrXykDu wp6Ug0wYA6+NYC51HjhMzJDEXhtEyaYxmO83A4p1mmE9yh5Dxk+WYhJyyT3znuXCUJBFY NUexLdkHCfUJ01MZT8hUIs7jX7I5rrmNrifKYIcti1q2y8NR8SodQmjXaV74HEWIbVjEp hdmJNjRuUQ4xo4Y5yLyz9fLlAI8ucxwh+pQTBf9R5Ghtl4CoPXrF4cTZEEku+iSHJ5w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=JXxUuYSS; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53D2B606A322; Fri, 4 Dec 2026 10:20:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=JXxUuYSS Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE6FF1F000C2; Fri, 4 Dec 2026 10:20:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379645; bh=bxr5X8scq8CsRa5zukwNiVQ07CYt3YDMT0I5vieqRp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=JXxUuYSSnw2gNANYoONXA0t4itkxnZgGRqi+m+gCQrHzfLlsWTXurSKWA1RjYfYfT coV4hgAdVXUq+/FzRl86pOFyNz7g2zYSddWyVCpZJs+7c5FBPCn4oe/5ID7C09P9is l69fnhhcjiepl7JI7wFwpKHMNoAWqFqBM4W1OoL0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ido Schimmel , Guillaume Nault , Florian Westphal , David Ahern , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.1 0052/1059] ipv4: Unmask upper DSCP bits in input route lookup Date: Fri, 4 Dec 2026 18:53:03 +0900 Message-ID: <20261204100645.418571529@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ido Schimmel [ Upstream commit df9131c7fafdc0d4c85686f5c7711a4dd4f3ae60 ] Unmask the upper DSCP bits in input route lookup so that in the future the lookup could be performed according to the full DSCP value. No functional changes intended since the upper DSCP bits are masked when comparing against the TOS selectors in FIB rules and routes. Signed-off-by: Ido Schimmel Reviewed-by: Guillaume Nault Acked-by: Florian Westphal Reviewed-by: David Ahern Link: https://patch.msgid.link/20240821125251.1571445-9-idosch@nvidia.com Signed-off-by: Jakub Kicinski Stable-dep-of: b3ad42f61832 ("bpf: Reset skb->cb after an lwt prog pushes an IP header") Signed-off-by: Sasha Levin --- net/ipv4/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index bd8ea5b8fa583..0ba1313651503 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -2553,7 +2553,7 @@ int ip_route_input_noref(struct sk_buff *skb, __be32 daddr, __be32 saddr, struct fib_result res; int err; - tos &= IPTOS_RT_MASK; + tos &= INET_DSCP_MASK; rcu_read_lock(); err = ip_route_input_rcu(skb, daddr, saddr, tos, dev, &res); rcu_read_unlock(); -- 2.53.0