Commit 7fb9a6a4 authored by Christian Langrock's avatar Christian Langrock Committed by sanglipeng
Browse files

xfrm: replay: Fix ESN wrap around for GSO

stable inclusion
from stable-v5.10.157
commit 51969d679ba4567e10f6c15061d1dad1063406e7
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7MU59

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=51969d679ba4567e10f6c15061d1dad1063406e7



--------------------------------

[ Upstream commit 4b549ccc ]

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: d7dbefc4 ("xfrm: Add xfrm_replay_overflow functions for offloading")
Co-developed-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarChristian Langrock <christian.langrock@secunet.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 46cb84cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment