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=1796384333; b=VGMYZ7zpU0TY5sIj3ddEZiOHr07Oa+rH+3HM5vPXg2tVPC1kQmk0nGWXCLytZoICQnI6 Xt4wZOJwo7546u55I6wQ6Qb5fjfysotW0NX5HeYw5KhToDxoqq/JQYGUsiURu4Zs1lGWk PCejhwHcuN8MdKQxox+stO9LurYWLZqHaED5N0N+nRO4IKCg51uq/Lh+jHvRR3REIxDF5 TfvGo7y4ELUNOcnFmUfSbuiBLIoX6ch8Fw+qcSztIxAyiphT+jeXVuPnLsTKa53oSF2rk eZ1I+BnKKteOjPbqYmq0apHFsCF7RY4+Z3Los27Z4c/Bm65ZFquKl7baHZlUnacJzYQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384333; 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=ekFP7uRZf/j/YA+aodY2pulstAnIadXHc87p7+r95/g=; b=aYXYYNpn4pLC+Ei6lzQnglT/FWXySQal2V6bKD087tSaxXtpyYhWxyw4wH6dac2jyDmf sdRVDASNW3BMSGpdHL+uYcDN9lf4qHe2U+1VzqyxT4FP76WsUJl0HTv5dLRWUJJSzkmDR Xo/w78QfrroBQOj9Z5FcxXZzmhcnsJxAbN4pV5AG6sGtBWNnfHVBtvMkf81UlEQoLHHWm ktvlQaM9JNWn9TM2AVJXsE9vRTEolj5+1z5MyJ7/wsz4a0yUPP6105oy0INkGiRm/6hqh iAaVybphc1QTBMMwW2HdsU/T9rsjXa4ISimjB4PCa7lHiAK8WXaJ04cOaqHDeAjtQMw== 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=nbvwEvf3; 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 D5588606A322; Fri, 4 Dec 2026 11:38:53 +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=nbvwEvf3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E1D11F000C2; Fri, 4 Dec 2026 11:38:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384333; bh=ekFP7uRZf/j/YA+aodY2pulstAnIadXHc87p7+r95/g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nbvwEvf3+uRuzTCp7gmAxIHrdTj9w/rfox738XOynSCET/fGrSIEK8ZoU2S+eQQRr kK6zBDx/gJ+8FtVpvovSDBStlXukkuvGmoxIM4rWDvPWrz5+DgBOSCDTx95BZk+TYH K9qdaDPAKjbhkNLlK0LkISquvKKQbGR4+AIi92P4= 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.6 0073/1167] ipv4: Unmask upper DSCP bits in input route lookup Date: Fri, 4 Dec 2026 18:51:40 +0900 Message-ID: <20261204100703.981267179@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-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 0b63f10bed8da..d163ae06cf8c6 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -2549,7 +2549,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