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:Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by:
Christian Langrock <christian.langrock@secunet.com> Signed-off-by:
Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment