]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: replay: Fix ESN wrap around for GSO
authorChristian Langrock <christian.langrock@secunet.com>
Mon, 17 Oct 2022 06:34:47 +0000 (08:34 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 19 Oct 2022 07:00:53 +0000 (09:00 +0200)
commitbdc13b34d1f759758daa7c329b1e9de0cb30d270
tree3fa86e1058150975d089ffa94dfe041fede45d0a
parent35c15bc2b840a679e2619bccfd4ea09526ef911d
xfrm: replay: Fix ESN wrap around for GSO

When using GSO it can happen that the wrong seq_hi is used for the last
packets before the wrap around. This can lead to double usage of a
sequence number. To avoid this, we should serialize this last GSO
packet.

Fixes: 2e308617e176 ("xfrm: Add xfrm_replay_overflow functions for offloading")
Co-developed-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Christian Langrock <christian.langrock@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4_offload.c
net/ipv6/esp6_offload.c
net/xfrm/xfrm_device.c
net/xfrm/xfrm_replay.c