xfrm: Provide private skb extensions for segmented and hw offloaded ESP packets
stable inclusion from stable-5.10.30 commit 58f8f10740392dd25cac90470fb37308fb198f70 bugzilla: 51791 -------------------------------- [ Upstream commit c7dbf4c0 ] Commit 94579ac3 ("xfrm: Fix double ESP trailer insertion in IPsec crypto offload.") added a XFRM_XMIT flag to avoid duplicate ESP trailer insertion on HW offload. This flag is set on the secpath that is shared amongst segments. This lead to a situation where some segments are not transformed correctly when segmentation happens at layer 3. Fix this by using private skb extensions for segmented and hw offloaded ESP packets. Fixes: 94579ac3 ("xfrm: Fix double ESP trailer insertion in IPsec crypto offload.") Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: N Weilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录