Netdev List
 help / color / mirror / Atom feed
* [PATCH net] ipv6: exthdrs: refresh nh pointer after ipv6_hop_jumbo()
@ 2026-05-22 11:20 Justin Iurman
  2026-05-24 14:27 ` Ido Schimmel
  2026-05-25 18:20 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Justin Iurman @ 2026-05-22 11:20 UTC (permalink / raw)
  To: netdev
  Cc: davem, dsahern, edumazet, kuba, pabeni, horms, idosch,
	justin.iurman, stable

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>
---
 net/ipv6/exthdrs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index cf90f933ca1a..11915b75ece0 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))
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net] ipv6: exthdrs: refresh nh pointer after ipv6_hop_jumbo()
  2026-05-22 11:20 [PATCH net] ipv6: exthdrs: refresh nh pointer after ipv6_hop_jumbo() Justin Iurman
@ 2026-05-24 14:27 ` Ido Schimmel
  2026-05-25 18:20 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Ido Schimmel @ 2026-05-24 14:27 UTC (permalink / raw)
  To: Justin Iurman
  Cc: netdev, davem, dsahern, edumazet, kuba, pabeni, horms, stable

On Fri, May 22, 2026 at 01:20:13PM +0200, Justin Iurman wrote:
> 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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net] ipv6: exthdrs: refresh nh pointer after ipv6_hop_jumbo()
  2026-05-22 11:20 [PATCH net] ipv6: exthdrs: refresh nh pointer after ipv6_hop_jumbo() Justin Iurman
  2026-05-24 14:27 ` Ido Schimmel
@ 2026-05-25 18:20 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-05-25 18:20 UTC (permalink / raw)
  To: Justin Iurman
  Cc: netdev, davem, dsahern, edumazet, kuba, pabeni, horms, idosch,
	stable

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Fri, 22 May 2026 13:20:13 +0200 you wrote:
> 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>
> 
> [...]

Here is the summary with links:
  - [net] ipv6: exthdrs: refresh nh pointer after ipv6_hop_jumbo()
    https://git.kernel.org/netdev/net/c/d47548a36639

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-25 18:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-22 11:20 [PATCH net] ipv6: exthdrs: refresh nh pointer after ipv6_hop_jumbo() Justin Iurman
2026-05-24 14:27 ` Ido Schimmel
2026-05-25 18:20 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox