Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3081890rwe; Mon, 29 Aug 2022 05:38:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR4+yGJQ0bsuFxElVEUQDZ0o9HP3kqZC5SZIXn9p/AbczACndPIlB66IPUi2sod9CvKealrD X-Received: by 2002:a17:90b:3003:b0:1fd:f876:72f4 with SMTP id hg3-20020a17090b300300b001fdf87672f4mr355305pjb.145.1661776722987; Mon, 29 Aug 2022 05:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661776722; cv=none; d=google.com; s=arc-20160816; b=EpwOLpKikUq+0KwPj9MAaLLsg0UR6drGSWUHN3IS9z36U9ScP3fyXZ2geY3Wa2i7eg HLNGo8RMqSlhLM9OeGcqGSgPzorLPEue8iWy9vmMR41b5BBHTrOAk5Y4eGD3Da6pMjpP eQ6Jv9Ihi65+KyBM7r/Y3uffp6oECDX34rupyKw/jHd1fiQuBYKQ2Vngsn6Nqd9CROWd DAMIYoeMoUwskD2CY6x+X7+K3Y9fZ1oEzuj37o6KUZ1x0H2j+ZbPq9lYhtLaVAlD6DKx 3AqA4WGVD9+MCsbk025hYUDxFmvfT77pCwLeKcQQkgZo6zOMQh2mbUhBySNIiJmMr+VP xI0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rtRUz0wFv8ETFbDUS6cnO4HXM6rgm5rbFIPv/7FiZA8=; b=M/IRoVMgzzB2iWySJutEWqS/TTKz3VK6iO1icbbh2Dq4N0Sc6XiLfR4Y3OtOK0tLZy P6KyGYlp+nR9UluMp/Kw6w4IxzG+PAt+eqc0qTaPYWRwpC9MzsiwnU1dAg+Wq+lTIfw+ gHq4c9JuZBiEoIzWMqFp2YtIaINrWcSeOI+3uX4ov6BL6WIzmCbyqCjB6AXD+/xMeCDw SMTBidTlHVELRZCJ0qnuE8ysm4Q8q4dzvrm8ziTtkq9aKp6VqG+2B7Js4b3RgA2L3zmK B/Grqqy/7z1jfhPu9FSC3AKXyyOv92idunjgljjGAjqHNzG9rTziren7h9VSNdl6ULJV T/QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b7BfGu7E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm12-20020a656e8c000000b0041c35254230si9356698pgb.452.2022.08.29.05.38.32; Mon, 29 Aug 2022 05:38:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b7BfGu7E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231255AbiH2LJw (ORCPT + 99 others); Mon, 29 Aug 2022 07:09:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231236AbiH2LI4 (ORCPT ); Mon, 29 Aug 2022 07:08:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34C5D5924F; Mon, 29 Aug 2022 04:06:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8ED3AB80EE6; Mon, 29 Aug 2022 11:04:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4AA0C433C1; Mon, 29 Aug 2022 11:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771049; bh=ZY+39YoS1KQ/nzpx8QF2bN9pbwC5e8JdY3tGQteHWLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b7BfGu7EnvfzX3hJYsoKDyDtb70IOKhGL3EgMssHNPF+9cMdNlcpJWYk0YkRl1+Xl z+EjNSmxqEwvn09hNBTBHB5h1JT3ah7iYy29yClw7kJi3xCmtLRqBd+NzJTTyOUEYo 6fZVceJuYeGwCk7wE7K08ANM8b11WVsllkU1TabY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Antony Antony , Steffen Klassert , Sasha Levin Subject: [PATCH 5.10 13/86] xfrm: clone missing x->lastused in xfrm_do_migrate Date: Mon, 29 Aug 2022 12:58:39 +0200 Message-Id: <20220829105757.066188996@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105756.500128871@linuxfoundation.org> References: <20220829105756.500128871@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Antony Antony [ Upstream commit 6aa811acdb76facca0b705f4e4c1d948ccb6af8b ] x->lastused was not cloned in xfrm_do_migrate. Add it to clone during migrate. Fixes: 80c9abaabf42 ("[XFRM]: Extension for dynamic update of endpoint address(es)") Signed-off-by: Antony Antony Signed-off-by: Steffen Klassert Signed-off-by: Sasha Levin --- net/xfrm/xfrm_state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index bc0bbb1571cef..fdbd56ed4bd52 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -1557,6 +1557,7 @@ static struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig, x->replay = orig->replay; x->preplay = orig->preplay; x->mapping_maxage = orig->mapping_maxage; + x->lastused = orig->lastused; x->new_mapping = 0; x->new_mapping_sport = 0; -- 2.35.1