Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5360195rwi; Sun, 23 Oct 2022 04:57:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5uB8NkC3JPr7AnaDJtfYQxaZDiop3NL/j+MvILL4q+hsNg+zdKpiDst9YMaHup1hHsJstu X-Received: by 2002:a17:906:8a48:b0:7a5:a8f5:b870 with SMTP id gx8-20020a1709068a4800b007a5a8f5b870mr2010621ejc.458.1666526263748; Sun, 23 Oct 2022 04:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666526263; cv=none; d=google.com; s=arc-20160816; b=xB8Tpi308AP7s/8IUDUJxTA/SOMsmBeMHNWsky8XPYZv/E+p+5GeNACaRf7xWv8pJ5 GfvF2CGUORl/wKYNlZaKFMtLqxLhpsR10HKyurF79YKgjwR48FDcXOviT6X7W/483eCD +OK4ayZ4holwX5B60w4HpRnnWLrJbpLx+hF3nWZPShqGfVs9/jha5by1KoZXG7ybFRks QjVQzx3pK4eghnyM6Y4CDIACQ7XwTw5NxO/CbIHfmiSq5G48/qQzBPvi/6LKA5mennJN crtgjiICaZfImWKVlh9reYTWzg79WRazKO1CHn5nc7hRPwbJ9NoTm2qoTYl2XPyixDS0 c+aw== 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=VVJKZ/NBflKf28ujjVLN7bpn95ieuvXFPz120F6mShE=; b=FbrCRRC9X/+kz5Xib6STRSc7l+/8hmpWLHjSLzEWDjIn5fhUF992rrXskzNk3Dj0TZ 5pmvgL935oW4lUEuUP5bxZ4OHv8yyOEkBeSYLOIZ+mSRwlJbsnHI1SK4wbK3gsMAS8tL 6MINMNEQmuo77mnBFPSguQNme1mhFcijgvCuGwL/pmLrvJWTJmOdWCOwCuRXvme3dEBt ifIl07NxFFJn26EeW7OCK2X0eJ/H+NYJAjk2yvTIcCAEzUnxeb9WpVtjwQHNAJfR7NQF cI/Cx3iIEoq2Ue2AzllH64oY9rLkZFFsRb2TqkAvbsG+akXX4CXPZbOP+BC7m5m97mLJ qSYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DUKxC0lM; 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 g11-20020a1709065d0b00b007a4feae7adesi1691964ejt.837.2022.10.23.04.57.18; Sun, 23 Oct 2022 04:57:43 -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=DUKxC0lM; 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 S230173AbiJWLi1 (ORCPT + 99 others); Sun, 23 Oct 2022 07:38:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbiJWLiZ (ORCPT ); Sun, 23 Oct 2022 07:38:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C2297434A; Sun, 23 Oct 2022 04:38:25 -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 ABD5E60B55; Sun, 23 Oct 2022 11:38:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85A22C433D6; Sun, 23 Oct 2022 11:38:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666525104; bh=M6HXpQhc0LgopSmchjDdBJF0+nlmGhCmgJ1jyMgGHwM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DUKxC0lMVPylJ3weuY1GQj+BI9Ykq5TAcV3TyoHwttVpHUg9+GLfz2SWrMjaiD2Uq jfaNesUy5mSEw9/uKsXV2Kptggigckotkw8NlMNu9zGofAyxfqyxr1q45VEFmqggoS Qtk8YM+pjPukKIL7mLXd+LcE1bIyEIwu23PeBq8A= Date: Sun, 23 Oct 2022 13:38:20 +0200 From: Greg Kroah-Hartman To: Chuck Lever III Cc: LKML , linux-stable , Anna Schumaker , Sasha Levin Subject: Re: [PATCH 5.19 554/717] NFSD: Return nfserr_serverfault if splice_ok but buf->pages have data Message-ID: References: <20221022072415.034382448@linuxfoundation.org> <20221022072522.883630640@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.6 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 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 On Sat, Oct 22, 2022 at 02:46:35PM +0000, Chuck Lever III wrote: > > > > On Oct 22, 2022, at 3:27 AM, Greg Kroah-Hartman wrote: > > > > From: Anna Schumaker > > > > [ Upstream commit 06981d560606ac48d61e5f4fff6738b925c93173 ] > > > > This was discussed with Chuck as part of this patch set. Returning > > nfserr_resource was decided to not be the best error message here, and > > he suggested changing to nfserr_serverfault instead. > > > > Signed-off-by: Anna Schumaker > > Link: https://lore.kernel.org/linux-nfs/20220907195259.926736-1-anna@kernel.org/T/#t > > Signed-off-by: Chuck Lever > > Signed-off-by: Sasha Levin > > --- > > fs/nfsd/nfs4xdr.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c > > index eef98e3f4ae5..1e5822d00043 100644 > > --- a/fs/nfsd/nfs4xdr.c > > +++ b/fs/nfsd/nfs4xdr.c > > @@ -3995,7 +3995,7 @@ nfsd4_encode_read(struct nfsd4_compoundres *resp, __be32 nfserr, > > if (resp->xdr->buf->page_len && > > test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)) { > > WARN_ON_ONCE(1); > > - return nfserr_resource; > > + return nfserr_serverfault; > > } > > xdr_commit_encode(xdr); > > Why is this change to be included in stable kernels? Is it not a valid bugfix? If so, I will be glad to drop it, but in reading the changelog text and the code change itself, it seems like a valid fix to be backporting to stable kernels. thanks, greg k-h