mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
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: 1da177e4c3 ("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>
This commit is contained in:
parent
f7b52afe35
commit
d47548a366
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user