From patchwork Mon Jun 1 17:55:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 225031 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29527C433DF for ; Mon, 1 Jun 2020 18:17:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F0DDC206E2 for ; Mon, 1 Jun 2020 18:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591035462; bh=S2SI/ZGiBbnJng5OesmlFF79jiK584W1YvWabB6Yq4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=vRTl1dKQENCnjl6EARdlmr7XM9flZv5o2mlHo48rOKtLLrUvfpQrjEAdyUD29ziIi XBIsbu30yDxiWAT4dKZGmc5ASBLsP1uCCRii1dlH1sIhmNwoZnfMoJfSNxwCBLGMeQ q0YQ/CVnlF13200sxtf3qkK0iE6ac7rQXAUYifaQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731849AbgFASRj (ORCPT ); Mon, 1 Jun 2020 14:17:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:38890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731586AbgFASRi (ORCPT ); Mon, 1 Jun 2020 14:17:38 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7175F2065C; Mon, 1 Jun 2020 18:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591035457; bh=S2SI/ZGiBbnJng5OesmlFF79jiK584W1YvWabB6Yq4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SrdVGN2W57YoVk58HZkowVybne5vZ3W9u7HbRcUkJ02aEiv+VP5dr91u+0nBnAD8A n8m8SvY25RbEDBUh/5u8K0qpySg1hQS+BIZughsDp3RppQDHZibK78pM70GBjSFlEp X/5RTgYLxRWzjNh75cSQL+Ppe9nLYUrG0ZGW1awE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , Ayush Sawal , Vinay Kumar Yadav , "David S. Miller" Subject: [PATCH 5.6 166/177] crypto: chelsio/chtls: properly set tp->lsndtime Date: Mon, 1 Jun 2020 19:55:04 +0200 Message-Id: <20200601174102.009683200@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601174048.468952319@linuxfoundation.org> References: <20200601174048.468952319@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Eric Dumazet commit a4976a3ef844c510ae9120290b23e9f3f47d6bce upstream. TCP tp->lsndtime unit/base is tcp_jiffies32, not tcp_time_stamp() Fixes: 36bedb3f2e5b ("crypto: chtls - Inline TLS record Tx") Signed-off-by: Eric Dumazet Cc: Ayush Sawal Cc: Vinay Kumar Yadav Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/crypto/chelsio/chtls/chtls_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/crypto/chelsio/chtls/chtls_io.c +++ b/drivers/crypto/chelsio/chtls/chtls_io.c @@ -682,7 +682,7 @@ int chtls_push_frames(struct chtls_sock make_tx_data_wr(sk, skb, immdlen, len, credits_needed, completion); tp->snd_nxt += len; - tp->lsndtime = tcp_time_stamp(tp); + tp->lsndtime = tcp_jiffies32; if (completion) ULP_SKB_CB(skb)->flags &= ~ULPCB_FLAG_NEED_HDR; } else {