Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4171241rdh; Tue, 28 Nov 2023 14:01:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhSqA6UiUFubwCGJvfk3r7POL8ciXRphqiNauNZVTl6/8mf87Az62OlSAgalgA9759wFNE X-Received: by 2002:a05:6e02:1542:b0:359:4b03:d92d with SMTP id j2-20020a056e02154200b003594b03d92dmr20834528ilu.13.1701208890059; Tue, 28 Nov 2023 14:01:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701208890; cv=none; d=google.com; s=arc-20160816; b=qukwo9wkJddGMDmCfdh/yvryOe69GUjmh1+uIB6AoUKcFgieK3DdNvBskK6ICi1SQ1 kg98+6UJwGsqSqqisynUhizZjX/PgoiBBJ3B1zEe+KSQYKnAsqeDJo776psYpCg0kGpF nOH8OKZyFuMpy/GegmpCxnOxKsE6Ir3/+ZXSxpEFiq/Og6JxVj0jU4aji2l8PahN0AvR a8ic1uu365bwtdBz08bcqQ3RPTYhe/oSC9ZdPpTt7ISCOY+UB4AkKEqmKzdPRTxGUWig Ad3ljTdW/lwNevFAXKwrqxI3EvhGWMcQlkg6OFvBX8pzV9Mhq41gWTWvbzNUVegBJMno 7pEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:message-id:date:cc:to :from:subject:dkim-signature; bh=A0cvYzWtgcXwtfw5Rc+qobdtVxU3Y4x68qmNhzvvKv8=; fh=xkJJ9G/tfqFUcIeP82drScMuFzbH6I4bp3/iFRpdd9E=; b=jhEVFLFAm0RlB+63u/m3a1THkA359pq1Q2vXyWaCe8BLtMZySpm+DrytVuhOjW18hy SfBIVQtDadtfX3cquLzmEmzC4hySGs92PaneOuKnknKxyZ4q6JAk555y00eoic7g/frF mkQMRCLE73jK37kwxdgcoRBsZ5Y5dDFOGE3vb1GUy9UMb/MDZ4YkszAByWjeprWKdQKB m/+efb0Gmx5HcpFByQqWUtypfSH0AXHUL8ya0a3LJr5aesTCRkxpLGT/xZget8PLWlEP CSOeeKePvyoPgOlZHB1QU/3MPIz4fcc5RcR4Gp82hylDelNewXOseSQo8aii9uj9S2yq ZN+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kw4XuXFf; spf=pass (google.com: domain of linux-nfs+bounces-148-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s66-20020a635e45000000b005b930e0b604si13274354pgb.549.2023.11.28.14.01.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 14:01:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-148-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kw4XuXFf; spf=pass (google.com: domain of linux-nfs+bounces-148-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0ED6CB20D64 for ; Tue, 28 Nov 2023 22:01:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BEE844C80; Tue, 28 Nov 2023 22:01:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Kw4XuXFf" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B6CA42A8B; Tue, 28 Nov 2023 22:01:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D13A6C433C7; Tue, 28 Nov 2023 22:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701208885; bh=RV9g/t2EzQc2GBGpQK9UoK2EhzhDRy66qZFeOv/BhaA=; h=Subject:From:To:Cc:Date:From; b=Kw4XuXFfYqHzDH+NzjqBrz/FIG3JqcD1g9AlFie0njtgQYACIuOilOkcxyaCMToPS ZS3+XBT09pHm3z3PrWhtmkB5ylRWAF7gB7ZmBkvzXYGU0UrLJuPbQIidt06JPhNVdf GId9elFruIbbhtcy2HuKkciee0U1MJIkzIfVkNRtscvUPa3jtlhlKpScRZyZEDBNbg bXdqrYd7axdrd/zD8B1O8VxaB7iOoyTgSe3YFo4+Q7cQruWx+ZNrn+W7WtEOpGa4WE xw53HmOztPfwE5jzVbkIUmVZCHt6QM46+FUJEmkXti8sVCYK3aax5eT3kpUuHzQeAf fT80mlT6Wrfyw== Subject: [PATCH 0/2] nfsd fixes for 6.1.y From: Chuck Lever To: stable@vger.kernel.org Cc: linux-nfs@vger.kernel.org Date: Tue, 28 Nov 2023 17:01:22 -0500 Message-ID: <170120886349.1725.10740679467794019580.stgit@klimt.1015granger.net> User-Agent: StGit/1.5 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Backport of upstream fixes to NFSD's duplicate reply cache. These have been hand-applied and tested with the same reproducer as was used to create the upstream fixes. --- Chuck Lever (2): NFSD: Fix "start of NFS reply" pointer passed to nfsd_cache_update() NFSD: Fix checksum mismatches in the duplicate reply cache fs/nfsd/cache.h | 3 ++- fs/nfsd/nfscache.c | 65 +++++++++++++++++++++++++++++++--------------- fs/nfsd/nfssvc.c | 15 +++++++++-- 3 files changed, 59 insertions(+), 24 deletions(-) -- Chuck Lever