Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2365249rwd; Mon, 15 May 2023 10:35:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7oUV1+MHDgptwY+veA9gglVgImdeK0bg8AFnZSxGhFq1kr2iz8YbsMQZozwHz6S0ncayvA X-Received: by 2002:a17:902:db02:b0:1ae:89a:9e with SMTP id m2-20020a170902db0200b001ae089a009emr7842695plx.61.1684172136563; Mon, 15 May 2023 10:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684172136; cv=none; d=google.com; s=arc-20160816; b=eo8xgzxlU64JP5CGeDLntTrUBKJ0ziBWNVbH50+e9AmkRu2QKoDbqwi3PBYbClZYBF AxuH68D6bfJEf82M0HOxI66EoqK8Se02OhsJogdRjlFSqI2wnTSuayD/D0YfAmIC4IUr cHSAhi6nW0X8cl1NzRiqUxfc0Adq/yXbOVknCM9Ro/72QrKZKD/4b4EwkZvdebOs06kS UXEFAecqD136NnmenSZdc5CA1b9fnQnakLQUyjZMC26dApYfS9qYXzo8EMK9XDJiuyi+ 9XHv6zwCy5CgHEZVouaxNocirukXAey1xpibbGQ/l6ZFIk6Db1k3dQ4DXiQXzJQ3g9Lp HeUg== 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=rmcfu91Y/ZvzI1fxBPuFPYV6As+GAkITRon9UG9LnpU=; b=Ebeuz1cG2D4qCiyN4imGGZEJ4uSG14Ll28Xlnm2RotzkUnreiIhofz0YtHpS6FrLP9 koZltl1l+Zu2BRyEL3mTFEX1nEUlJwVU6zh75TLBEpR+VvAIQlsftqsfGCS47ldvk+62 cTg3ZxLLNVsvmVy+seCteFCRVVZTQxsxo0SQBVgquAzp91FdKJx46RDuw93qc5LF6Wa4 uai43/4yg8HOQQseL4xOxHpbRuaKJY3rt46rruigZ8C8JvyQ8cABzV07xqLHLtjvegbl jSgkHL3xM1Nvjv4fe1DTAuDyXWkkkBBa570NRgAUndSleuja6pK942zbSvla4PCRiqsn hLmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IUaF70lg; 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 u9-20020a170902e80900b001a6527f6adbsi18412576plg.137.2023.05.15.10.35.23; Mon, 15 May 2023 10:35:36 -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=IUaF70lg; 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 S243081AbjEOQur (ORCPT + 99 others); Mon, 15 May 2023 12:50:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243098AbjEOQue (ORCPT ); Mon, 15 May 2023 12:50:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5A1B5BB4; Mon, 15 May 2023 09:50:24 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 527096296A; Mon, 15 May 2023 16:50:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 086BEC433D2; Mon, 15 May 2023 16:50:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1684169423; bh=pNiizyDEe5fd2zn2IYaro9F9LlUAbjtfNlsCfxVgYGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IUaF70lgMD0cANDZC4mQu4vY7orKycOHKhk7/Sg1syvbEtrLvH0g1ZSASTJ33wXBx dBXNqJSFj2LGDmFnNy2I/J/6pqXOr2iNUPFxkd7hm2Xi0WbituSjSmOsRYuCR9NrgO Az+e9uli4GGc9pMTietyaPhLAZzlRCiwsXX1cTd0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David Howells , Marc Dionne , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-afs@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Sasha Levin Subject: [PATCH 6.3 051/246] rxrpc: Fix hard call timeout units Date: Mon, 15 May 2023 18:24:23 +0200 Message-Id: <20230515161724.113631921@linuxfoundation.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515161722.610123835@linuxfoundation.org> References: <20230515161722.610123835@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: David Howells [ Upstream commit 0d098d83c5d9e107b2df7f5e11f81492f56d2fe7 ] The hard call timeout is specified in the RXRPC_SET_CALL_TIMEOUT cmsg in seconds, so fix the point at which sendmsg() applies it to the call to convert to jiffies from seconds, not milliseconds. Fixes: a158bdd3247b ("rxrpc: Fix timeout of a call that hasn't yet been granted a channel") Signed-off-by: David Howells cc: Marc Dionne cc: "David S. Miller" cc: Eric Dumazet cc: Jakub Kicinski cc: Paolo Abeni cc: linux-afs@lists.infradead.org cc: netdev@vger.kernel.org cc: linux-kernel@vger.kernel.org Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/rxrpc/sendmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rxrpc/sendmsg.c b/net/rxrpc/sendmsg.c index 6caa47d352ed6..7498a77b5d397 100644 --- a/net/rxrpc/sendmsg.c +++ b/net/rxrpc/sendmsg.c @@ -699,7 +699,7 @@ int rxrpc_do_sendmsg(struct rxrpc_sock *rx, struct msghdr *msg, size_t len) fallthrough; case 1: if (p.call.timeouts.hard > 0) { - j = msecs_to_jiffies(p.call.timeouts.hard); + j = p.call.timeouts.hard * HZ; now = jiffies; j += now; WRITE_ONCE(call->expect_term_by, j); -- 2.39.2