Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2363338rwd; Mon, 15 May 2023 10:33:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4hEIEhwwWVoEYMgG4FEoJYqQATXsqRv2RCIuiYilshWgG3ZSBfW+PB92CpHPOnSQow2alx X-Received: by 2002:a17:903:1c2:b0:1ac:94b3:3aaa with SMTP id e2-20020a17090301c200b001ac94b33aaamr30008636plh.6.1684172032139; Mon, 15 May 2023 10:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684172032; cv=none; d=google.com; s=arc-20160816; b=aogL60UfHHbyBc5Ut7Ge1y1C0yrlDX+FL8mhY6I0oiSYxc3d5KVTmACdEX+Kbss0LE p+K3+edr9l2yhBv1Iqbni/VQmnqKk+izoiA0uGwcTrbvPXdVLMnbR/uL2JPO0y3ff0OL DadAnQuNs8cRZYphO9zgqKVU5jYdC5EKCdbOcErREv+wBwWBIwGt5cyksVIOJyWm4wW/ w+Nu0VdsuVS6jH3SdLxfUSyb2TcjTP68ZUEYexd52h/A+xX4uWPAMCXoCy4jnhpq71LP 5pcFXpzXeBe1AqERxU8f2DWdBiDnAfD0OyQQmZQnGdd9CrBp/dMka0FlraJfBZIhglNW 6XTg== 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=r8Vby3suRkAqFGBH8+P1vijoxvSLrjEz7GT4qPbmoeY=; b=nUDAgKNj5Ijnqr5/a7X60X6P1wVqkNjA/3eVP5fIu4HfAn//jtdJduZp5bi59IJXLO bSTnv7R5UkLXiZ6qRrXIRVikxp8r7Y2RlsUaalA+6vuXaHEisNg8mHgegKCRHc+v9uh6 O7ry6EfDehVXtvWu+ImYujjIRDH+qCn2KRMKkqSQ5J2sVRU3otowp8gfUsPGg0IhNGbO cK5WNvmXhooDR5tj4wmT00CkYRPX1EA1f0JQIGRX6iWuQFebFygR7h7Gc5mBhLSl+m4x IWX2W8v9mCHEBNFoenRMQuY/QWQ9cp9c1V+8p5mh8pRFnEbNKPfVakyEW6WM7fzvySKt Mvfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pPDRqyDM; 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 d11-20020a170902cecb00b001ac61add6c0si17658726plg.401.2023.05.15.10.33.39; Mon, 15 May 2023 10:33:52 -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=pPDRqyDM; 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 S243631AbjEORFo (ORCPT + 99 others); Mon, 15 May 2023 13:05:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243742AbjEORFM (ORCPT ); Mon, 15 May 2023 13:05:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB8D683C5; Mon, 15 May 2023 10:03:48 -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 5D08762AA7; Mon, 15 May 2023 17:03:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35D8EC4339B; Mon, 15 May 2023 17:03:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1684170214; bh=43pq+UjSaKTzdKcTZSc3BjZWUVTfug1scezW8PiZqrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pPDRqyDM4UXbgM6QIIzixQs6Qs6lOG7/T6g0isuRjU4KmGWIWj7rX7oloBRcBkN98 ymJfE81WgNqB+ZQ1hZ4IVu9nVAkwM/LnGFq1F5ORQhz8+kErticgUgRoVtasKzJxU9 iFYQ/IdBO4Y6/fUPuceC/Boi6lHA2vi0WWzHyTV4= 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.1 061/239] rxrpc: Fix hard call timeout units Date: Mon, 15 May 2023 18:25:24 +0200 Message-Id: <20230515161723.530352001@linuxfoundation.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515161721.545370111@linuxfoundation.org> References: <20230515161721.545370111@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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 d4e4e94f4f987..71e40f91dd398 100644 --- a/net/rxrpc/sendmsg.c +++ b/net/rxrpc/sendmsg.c @@ -736,7 +736,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