netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regression with commit 971f10eca186 ("tcp: better TCP_SKB_CB layout to reduce cache line misses")
@ 2014-12-22 15:17 Nicolas Dichtel
  2014-12-22 16:15 ` Eric Dumazet
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Dichtel @ 2014-12-22 15:17 UTC (permalink / raw)
  To: netdev, Eric Dumazet

One of our engineer (Huaibin Wang <huaibin.wang@6wind.com>) has reported and
analysed this bug:

This commit introduces a regression with IPv6 + IPsec transport + TCP.

In TCP (net/ipv6/tcp_ipv6.c), xfrm6_policy_check() is called and thus, after
some intermediate functions, _decode_session6() is also called.

This function uses IP6CB() (u8 nexthdr = nh[IP6CB(skb)->nhoff]), which is wrong
becauses it has been moved to the end of TCP_SKB_CB().

Not sure what is the best way to fix this, any suggestion?

Regards,
Nicolas

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

end of thread, other threads:[~2014-12-22 21:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-22 15:17 Regression with commit 971f10eca186 ("tcp: better TCP_SKB_CB layout to reduce cache line misses") Nicolas Dichtel
2014-12-22 16:15 ` Eric Dumazet
2014-12-22 16:54   ` Nicolas Dichtel
2014-12-22 17:22   ` [PATCH net] tcp6: don't move IP6CB before xfrm6_policy_check() Nicolas Dichtel
2014-12-22 21:48     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).