Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3084512rwe; Mon, 29 Aug 2022 05:41:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR4nYMFTVDz2cKRDWb32BBh4qYond3pfXQcUPubIOIlPbz1Tr4JifvtbzX1Q8LUpvt1NCdWY X-Received: by 2002:a17:90b:4d8e:b0:1fd:ce88:6920 with SMTP id oj14-20020a17090b4d8e00b001fdce886920mr4847292pjb.175.1661776879367; Mon, 29 Aug 2022 05:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661776879; cv=none; d=google.com; s=arc-20160816; b=v3hY3u3LxCUG19doJWkQRrADSM72WLygtA6oz3Xy3aAw7oVM3o2atFTxRY75Q3503I QoNe8PPytJdZh2Ukg6Oew7dP/7ShCscTp74qyAiMGFTdMWy/2mOYbqtQC8Pcg8bnxXfv LfJLSra0SGc/xTT2KXODs9x02vZIoHRRPcxo3/8xM7tAd4FPqcOUdrGBcYN8dh+Anckr CaarLv7l5idY5KnJePu63rH/OO/R6u9SQ6+zyGeJ2vpT7Hoe6j4xp1j2g0nEAeVLmWND yexKt9EBmIIPxLeNlHf+XtpdzJ77DewOfcANTycDVBeV5ea0EY+jRLMBgIxTgInfUdz8 yHLQ== 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=SgichOIW6DmRPZGWpDfQVmVdF3G6kJF6baucDAGRIKU=; b=xcVIm4WbxalokXlQQZ4zxoVe2+fACfG4x5C7J0Bd8TFXXEZ83NsyFUXou+Wo8ccmKO FMG9lYfvhIkHqFA72c2ABqO2533Fs7XO996PqSKvGAg3/H0WPNM42k474Vjs0SZjNOui 1gPjEcfr0ja8+np/VUB/dUMfD5t8ToOi5xKFlVgxB+Nizewv9fP5NU5lStyKYYYcKu/j 83c2P2CJjKIO44VaitM/1MQ7K2qq1PtPXYUF/pkuYxOsre0QO9HlaovIGHIWokhe57tP 007V14By1jnaiJ4VfwZfCaUIuLfVVkspdPIJrMEPhEc4FPYTmXeKBuvHDq/uFyDdYb23 56aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="J1QRJoc/"; 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 nv18-20020a17090b1b5200b001fddccc9214si1953590pjb.171.2022.08.29.05.41.08; Mon, 29 Aug 2022 05:41:19 -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="J1QRJoc/"; 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 S229616AbiH2MLV (ORCPT + 99 others); Mon, 29 Aug 2022 08:11:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbiH2MK5 (ORCPT ); Mon, 29 Aug 2022 08:10:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7EC217E3A; Mon, 29 Aug 2022 04:56:01 -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 32D2EB80F9D; Mon, 29 Aug 2022 11:08:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CC2FC433D6; Mon, 29 Aug 2022 11:08:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771299; bh=XVBy5YYAmZTabxphfrc07k0GOwcNROcUKNUHewQpHg8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J1QRJoc/bGnH7XuTzZ8M1bJvQsZkXD3p5UaBo/L/V9OTk/VyYKSQrTG1Vk7Q/acM3 6XCgtCrP1DXJi9uBkus4HyoWwZhIn2cj/UgDP3m/R1mNbi7/PqL9voTpHTllbT+MfQ rKqIQ/j76GT4TrVAJYL8FUA1R2NuNziP629NAcB8= 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.19 014/158] xfrm: clone missing x->lastused in xfrm_do_migrate Date: Mon, 29 Aug 2022 12:57:44 +0200 Message-Id: <20220829105809.408012384@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105808.828227973@linuxfoundation.org> References: <20220829105808.828227973@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 ccfb172eb5b8d..11d89af9cb55a 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -1592,6 +1592,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