Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1504861iof; Tue, 7 Jun 2022 06:53:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMmrtdcU3sz2lXW0Wk2kzl/pJc7nz1wccV921Jwst2YP20NEvlM+8xbAApEDyJIS6FS3hC X-Received: by 2002:a17:90b:3850:b0:1e2:a755:162 with SMTP id nl16-20020a17090b385000b001e2a7550162mr32015177pjb.241.1654610021647; Tue, 07 Jun 2022 06:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654610021; cv=none; d=google.com; s=arc-20160816; b=ekz77MmR7o9/mHNhmdd5yQBg7hQTCtm+1lh5vnhhLzaBtXBtV7V9fGcB0k0bbsEsoL MDHkEz2DbHqRu4JTtUapHGdrw0dhqExQVw7Ao7UNsbJeIWkQQDpnipZLT2dKOP7nJvVW U/Oj7nn+FQJb8nK7Ajpr5Hv8X637FNllf7zNwSQwT0H1jX8o8rfy/dcTGTs1Ksn0eYvW rz5q+AACe6b2HSOZoGrNGB5gAE7+KjDrfMVyFIGJ3Hb/5eky2Oct1Kys9tYbxKhrzsEQ EL8/my3JxacLoQS6lhuiETWBEDdfAqsZjYpx/74zZmLlP1de1UJ2EffyGLBZMTZ1QlqF jB3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=gHjfrkhFqnB5JfPM/qau9zNt05sqMm4plmkPtfmkW2A=; b=QPNST9eJ9cVDzOzw51eSfDLFmae7rqNwajclCrRnVPyxRwoxg6SjETm90xhIKwzaXM G5WbC83e3gPeA+e7L9wXZkWpWw8dKsowg5eS3WQBHWSrRd3AfOTUKH3reSDJowgkeyuv fYcvLXje7IqCqtmdp7CNrrLIuqQXqcCkISgIfesrshzLWgBh3k+mdyBwDCkGYbIAqjAD 8y/atUV6wxya5IvlgH3ZzPIp+TfMnGONyQpp98gV1puoxhZpuS7OnLakI5dFSAlPfqGB fb/Ya5uGfpoUFf8NxM16Awu/3Iwsj34JJqC+Rgg1JUmoqZTM3ZHmlIfDzCIzB5QOBOov O8yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PF3yHUVf; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f65-20020a636a44000000b003fd97d4ed95si11740318pgc.0.2022.06.07.06.53.15; Tue, 07 Jun 2022 06:53:41 -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=@suse.de header.s=susede2_rsa header.b=PF3yHUVf; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243056AbiFGLhr (ORCPT + 99 others); Tue, 7 Jun 2022 07:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243040AbiFGLhj (ORCPT ); Tue, 7 Jun 2022 07:37:39 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 198B41EAF9 for ; Tue, 7 Jun 2022 04:37:36 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 0C74D21B8E; Tue, 7 Jun 2022 11:37:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1654601855; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gHjfrkhFqnB5JfPM/qau9zNt05sqMm4plmkPtfmkW2A=; b=PF3yHUVfIKw59s33PqAiKOumcrTRrJC/gx0XOSOK5Hah1F31nEpEutTThXhe6pLiI8tG93 DVdVieHlhSZTCwLjmOlfiZ5hptoM9ZLllUowmcUPt7n7x4j7J3qS8NgeHlX5IyYKD7xOfM Qf9Ifo/UYHxtJzpRsSsbXTXJc5ARC9I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1654601855; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gHjfrkhFqnB5JfPM/qau9zNt05sqMm4plmkPtfmkW2A=; b=1RPduMqb9Irou2I4i5hTbVhxOFCfWaMGtup1qVHZmfqaU0wOhub2zibgYCi4a4GCMZSWo3 1GYD9qeyj3ky1xBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3DF0F13638; Tue, 7 Jun 2022 11:37:33 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5uszO304n2JScAAAMHmgww (envelope-from ); Tue, 07 Jun 2022 11:37:33 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever" Cc: linux-nfs@vger.kernel.org Subject: Re: [PATCH v1 0/5] Fix NFSv3 READDIRPLUS failures In-reply-to: <165445865736.1664.4497130284832282034.stgit@bazille.1015granger.net> References: <165445865736.1664.4497130284832282034.stgit@bazille.1015granger.net> Date: Tue, 07 Jun 2022 21:37:30 +1000 Message-id: <165460185094.22243.5006042503446283679@noble.neil.brown.name> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,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-nfs@vger.kernel.org On Mon, 06 Jun 2022, Chuck Lever wrote: > While looking into the filecache CPU soft lock-up issue, I ran > across this problem. I thought I could run it down in just an > afternoon (I was wrong) and that this problem probably affects more > users than the soft lock-up (jury's still out). >=20 > Anyway, NFSD's new READDIRPLUS dirent encoder blows past the end of > the directory payload xdr_stream when the client requests more than > a page worth of directory entries. I tracked this down to how > xdr_get_next_encode_buffer() computes xdr->end. First patch in this > series is the fix. The remaining patches are clean-ups and > optimizations. >=20 > I want to get this into 5.19-rc quickly. I would appreciate getting > at least two R-b's for this series. Just for completeness: Reviewed-by: NeilBrown for the whole series. Nothing I saw would justify any delay. NeilBrown >=20 > --- >=20 > Chuck Lever (5): > SUNRPC: Fix the calculation of xdr->end in xdr_get_next_encode_buffer= () > SUNRPC: Optimize xdr_reserve_space() > SUNRPC: Clean up xdr_commit_encode() > SUNRPC: Clean up xdr_get_next_encode_buffer() > SUNRPC: Remove pointer type casts from xdr_get_next_encode_buffer() >=20 >=20 > net/sunrpc/xdr.c | 31 ++++++++++++++++++++++--------- > 1 file changed, 22 insertions(+), 9 deletions(-) >=20 > -- > Chuck Lever >=20 >=20