Commit d47548a3 authored by Justin Iurman's avatar Justin Iurman Committed by Jakub Kicinski
Browse files

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: 1da177e4 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJustin Iurman <justin.iurman@gmail.com>
Reviewed-by: default avatarIdo Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20260522112013.12342-1-justin.iurman@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f7b52afe
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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))