]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commite0cbc141929e6926ed539c618aaed67b148e0596
treeb1c076d7a8a5ed871e26c6b905f1268e756cdba9
parent44d851e50bc720ecce9af4f798449df5b46ad4d2
xfrm: Fix ESN sequence number handling for IPsec GSO packets.

BugLink: http://bugs.launchpad.net/bugs/1786352
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/xfrm/xfrm_replay.c