提交 29b86285 编写于 作者: A Antony Antony 提交者: Zheng Zengkai

xfrm: clone missing x->lastused in xfrm_do_migrate

stable inclusion
from stable-v5.10.140
commit 4379a10c1db793ce39ea410e36ddc3099ec0694c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I63FTT

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

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

[ Upstream commit 6aa811ac ]

x->lastused was not cloned in xfrm_do_migrate. Add it to clone during
migrate.

Fixes: 80c9abaa ("[XFRM]: Extension for dynamic update of endpoint address(es)")
Signed-off-by: NAntony Antony <antony.antony@secunet.com>
Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>

 Conflicts:
	net/xfrm/xfrm_state.c
Reviewed-by: NWei Li <liwei391@huawei.com>
上级 ac4aad07
......@@ -1556,6 +1556,7 @@ static struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig,
x->km.seq = orig->km.seq;
x->replay = orig->replay;
x->preplay = orig->preplay;
x->lastused = orig->lastused;
return x;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册