Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4250029rwl; Tue, 28 Mar 2023 04:58:37 -0700 (PDT) X-Google-Smtp-Source: AKy350YLdEioKfNzmgs/DWU6nizKD8+/XxCGlPpZwNQdP64RVAZp87QorYX+vB7orOSs0cXvb5pZ X-Received: by 2002:a17:90a:1a05:b0:234:e0c:caaa with SMTP id 5-20020a17090a1a0500b002340e0ccaaamr16147753pjk.6.1680004717507; Tue, 28 Mar 2023 04:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680004717; cv=none; d=google.com; s=arc-20160816; b=iNeRaTffzIMtR8WsXle+7JwDd14U4r0pF6yqPaJCY2zYUuL6dX52k+Fp2jxTydGptl N+KFgpZPTP1RRIFvsD4rhhVU6lK1DGt4nEYmv0ZkgQmgC0Cd2Nknx/1lPL64KDzi8jS8 0fpQ6nL+oNtsb+F5QdbMamA06tEL1bw2U1ycU73IF/4ACjUJ9WgeB0LReCmVA+M1DS5A vTzJJVkc8lG1nOzHfnXK2qpeUmJavs1I8tslxEOLtmd3T2srZRzVMIEcSEeAoCKSF+tQ Tk8I/3Gd0qNLEoxZhU/LYMORrHgDDGxGHP37pzjOlA4tGec7zFfx6Dl0V1fEqanOwBi8 g3jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hbRUqnv7BieQbX8337Mhc12qeQI0+mncwPqoKk7rugY=; b=Efk34z/NgZa00dZxOh1TyZFh5C1D+v9fNg5QLuDUjo9cgYloCmRWzVU+yPKaWvlo4C CCCwPTY+qHm857MHTovw4YMIZpI+HXA9NeLcH1iHo8hJIrgRqdoev9eruPS2cSxrOq4G IGf1m2/tp2r8nD4aSnokKRwqmxC+R8HNZjEQ+0SRnBBNCYtCJtsEMsk09UI38bVhl5qI kL9keVf8B6iqvgVK2eujsFsPLB3ZFkkDSFZlCw8zLZ76uRMcF5dLjekOMNEMF+BeKXaR TvQWmhe8+qrnRkXQ4xAIHRIFcPOo14vdMB+CoHRuGxcywVa+Ir2C4fCE4o31eE0ocpbI C6Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zHay5p5f; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 b27-20020a630c1b000000b0050bcfe66805si28680648pgl.240.2023.03.28.04.58.17; Tue, 28 Mar 2023 04:58:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=zHay5p5f; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 S230378AbjC1L5S (ORCPT + 99 others); Tue, 28 Mar 2023 07:57:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjC1L5S (ORCPT ); Tue, 28 Mar 2023 07:57:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0303F83EC; Tue, 28 Mar 2023 04:57:17 -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 907D4B81C1B; Tue, 28 Mar 2023 11:57:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA1A5C433EF; Tue, 28 Mar 2023 11:57:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680004634; bh=LwTBjMUAtQcMZXMxLYmp9A8uaSZhKZEpmFKC/rgoKJY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zHay5p5fLqPGgAO5n1RcEFOPfuCuYDn+uTA08vLA2bp7aoZUrhDvbrBsqy9CJ9jBG ii1hSMUXI9pZfTIuBMsaEEKZhLT/dig/t7CtB3g2cB9vlxdvVGsMbaJrfBy7tBGisa DpdtDbfqV86HWBH3fjiFzDY1oqTHRl+0B3X+s2Bo= Date: Tue, 28 Mar 2023 13:57:11 +0200 From: Greg Kroah-Hartman To: Amir Goldstein Cc: Sasha Levin , Jeff Layton , Anna Schumaker , stable@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH 5.15] lockd: set file_lock start and end when decoding nlm4 testargs Message-ID: References: <20230321104628.37323-1-amir73il@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230321104628.37323-1-amir73il@gmail.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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-nfs@vger.kernel.org On Tue, Mar 21, 2023 at 12:46:28PM +0200, Amir Goldstein wrote: > From: Jeff Layton > > commit 7ff84910c66c9144cc0de9d9deed9fb84c03aff0 upstream. > > Commit 6930bcbfb6ce dropped the setting of the file_lock range when > decoding a nlm_lock off the wire. This causes the client side grant > callback to miss matching blocks and reject the lock, only to rerequest > it 30s later. > > Add a helper function to set the file_lock range from the start and end > values that the protocol uses, and have the nlm_lock decoder call that to > set up the file_lock args properly. > > Fixes: 6930bcbfb6ce ("lockd: detect and reject lock arguments that overflow") > Reported-by: Amir Goldstein > Signed-off-by: Jeff Layton > Tested-by: Amir Goldstein > Cc: stable@vger.kernel.org #6.0 > Signed-off-by: Anna Schumaker > Signed-off-by: Amir Goldstein > --- > > Greg, > > The upstream fix applies cleanly to 6.1.y and 6.2.y, so as the > Cc stable mentions, please apply upstream fix to those trees. > > Alas, the regressing commit was also applied to v5.15.61, > so please apply this backport to fix 5.15.y. Now queued up, thanks. greg k-h