xfrm: Fix ESN sequence number handling for IPsec GSO packets.
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 28 Feb 2018 08:23:19 +0000 (09:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:08 +0000 (07:52 +0200)
commit5877f41cf8c83a6bb31137bb3f304fb8638aceba
treee26ed0554c833fb8aa17f20d321fea788b6d4474
parent30310d4077157bd05bdad6712d69f08f318a3739
xfrm: Fix ESN sequence number handling for IPsec GSO packets.

[ Upstream commit b8b549eec8187ac1b12075d69a2d84d89b5e811a ]

When IPsec offloading was introduced, we accidentally incremented
the sequence number counter on the xfrm_state by one packet
too much in the ESN case. This leads to a sequence number gap of
one packet after each GSO packet. Fix this by setting the sequence
number to the correct value.

Fixes: d7dbefc45cf5 ("xfrm: Add xfrm_replay_overflow functions for offloading")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/xfrm/xfrm_replay.c