]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Revert "xfrm: update SA curlft.use_time"
authorAntony Antony <antony.antony@secunet.com>
Wed, 27 Jul 2022 15:38:35 +0000 (17:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 15:18:00 +0000 (17:18 +0200)
commit9156a7b65c9d74e7effee70236ce93bfe21e58f9
treee07fe5a0ec9cb2940a6061a8728d208b25fa1d3c
parentd66c052879791313f90c0584420f196a038fb8b8
Revert "xfrm: update SA curlft.use_time"

[ Upstream commit 717ada9f10f2de8c4f4d72ad045f3b67a7ced715 ]

This reverts commit af734a26a1a95a9fda51f2abb0c22a7efcafd5ca.

The abvoce commit is a regression according RFC 2367. A better fix would be
use x->lastused. Which will be propsed later.

according to RFC 2367 use_time == sadb_lifetime_usetime.

"sadb_lifetime_usetime
                   For CURRENT, the time, in seconds, when association
                   was first used. For HARD and SOFT, the number of
                   seconds after the first use of the association until
                   it expires."

Fixes: af734a26a1a9 ("xfrm: update SA curlft.use_time")
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/xfrm/xfrm_input.c
net/xfrm/xfrm_output.c