diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2020-08-13 16:24:04 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2020-08-17 15:58:04 +0200 |
commit | 4eb2e13415757a2bce5bb0d580d22bbeef1f5346 (patch) | |
tree | b1a3352a3ecb390bc2a5a172c4c3eeec4c92ffea /net/xfrm/xfrm_ipcomp.c | |
parent | 61ee4137b5744d9c555cd4674aae353a45f9cd2e (diff) |
espintcp: restore IP CB before handing the packet to xfrm
Xiumei reported a bug with espintcp over IPv6 in transport mode,
because xfrm6_transport_finish expects to find IP6CB data (struct
inet6_skb_cb). Currently, espintcp zeroes the CB, but the relevant
part is actually preserved by previous layers (first set up by tcp,
then strparser only zeroes a small part of tcp_skb_tb), so we can just
relocate it to the start of skb->cb.
Fixes: e27cca96cd68 ("xfrm: add espintcp (RFC 8229)")
Reported-by: Xiumei Mu <xmu@redhat.com>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_ipcomp.c')
0 files changed, 0 insertions, 0 deletions