aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
authorJustin Iurman <justin.iurman@gmail.com>2026-05-22 13:20:13 +0200
committerJakub Kicinski <kuba@kernel.org>2026-05-25 11:08:00 -0700
commitd47548a36639095939f4747d4c43f2271366f565 (patch)
tree4a6219fc9e1f35ee4db95635693c9e4d4a2c4ffd /net
parentf7b52afe3592eae66e160586b45a3f2242972c63 (diff)
downloadlinux-next-history-d47548a36639095939f4747d4c43f2271366f565.tar.gz
ipv6: exthdrs: refresh nh pointer after ipv6_hop_jumbo()
ipv6_hop_jumbo() calls pskb_trim_rcsum(), which can change skb pointers. Let's recompute nh pointer to make sure any change won't mess things up. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable@vger.kernel.org Signed-off-by: Justin Iurman <justin.iurman@gmail.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20260522112013.12342-1-justin.iurman@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/exthdrs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index 6d92c02d0e3dc..aca2a2abd2dfc 100644
--- a/net/ipv6/exthdrs.c
+++ b/net/ipv6/exthdrs.c
@@ -184,6 +184,8 @@ static bool ip6_parse_tlv(bool hopbyhop,
case IPV6_TLV_JUMBO:
if (!ipv6_hop_jumbo(skb, off))
return false;
+
+ nh = skb_network_header(skb);
break;
case IPV6_TLV_CALIPSO:
if (!ipv6_hop_calipso(skb, off))