Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp226pxb; Thu, 7 Jan 2021 19:19:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBIzY0XrRqCgTxz630WVFlZJvYl6T3CdML4DTYcN1vLZsZRmo8JS1yKqhY9v+tnu7FtsXj X-Received: by 2002:a50:aac8:: with SMTP id r8mr3735510edc.9.1610075948886; Thu, 07 Jan 2021 19:19:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610075948; cv=none; d=google.com; s=arc-20160816; b=DQuNuyyx1qjm8yHyB1tmbjS2yFK2OXv/3KuVJzREI/XGztURzv2tO0Zx0ncvmaPbJP 3a4QTkyPQE6GqJr+03FEDmafXkEI+9iG7E1DSJ21YK9vg8Do2yGEZAmv5s3FDzvC5jOB mIKzKAU6D5zB/bQ2SEwbjpZJNDzEb7pTTOj/YjUiSMldHA7TNnm3asWcn5YVmS31KbW3 F5gG5dTSLDlNsUU6S0iGWW9O8TkqxJhwwOFfl6ZZ0nTnApgBauU2GA2Yury1H1/uhy7t 75aS96pRiYvd6MXA4d8FSt3jlTZK0gShPIdyfBNQJAyh/ryFXwbABukFTf0/6W3Wf10j 1dPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=Bqtd5hnau7tHNZDG9YSh2HwWYdArmGgc85l8dz8Zhz4=; b=uJ+w1/5km7tA4RWTttUHz4fEZf9t5oWaWULYPaTbzPJnnxUmxrj1qdkqv598ym/4rY wb3RWCbDlHRriBr3QOy5w61neAm+/wxlaTsgWAKtAhHLHDQI5wfVSX6jYMm3RxoZ/gbB 0gvBSN8EIH95CcnvVC9EbxpXydRSNmCt27rjDujmIkewa9zeM0Vj3hPPpEQrm5QdXxQ5 QHGq2Q2KpkUCL8/du/VsMuWTqkC8Axt39WoU1aILc3KCIesG3EgF4AX4YONdZzmjG4oy M/TUdY5YoEvayQfw+IDN1cBFU3iBU+Dz0/Jhe2G+Gyp8+a/wf+nQEZd387YKe1ztZe3z viVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=K3dOVQbC; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb9si3060220edb.580.2021.01.07.19.18.43; Thu, 07 Jan 2021 19:19:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=K3dOVQbC; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726113AbhAHDSm (ORCPT + 99 others); Thu, 7 Jan 2021 22:18:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbhAHDSm (ORCPT ); Thu, 7 Jan 2021 22:18:42 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61F3DC0612F4 for ; Thu, 7 Jan 2021 19:18:02 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 97C956C79; Thu, 7 Jan 2021 22:18:00 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 97C956C79 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1610075880; bh=Bqtd5hnau7tHNZDG9YSh2HwWYdArmGgc85l8dz8Zhz4=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=K3dOVQbC+4JfYg/GJ/KqnXapcnEfWDRq+8RiONAbPn18RIXx2pMnyhLnfbRjEkKTT EQtEf/U3uJO3Bi+x0DhfqR0vosPnKfZrYXj3cIcGS6WVS+BTOrqxOPvc8AC5XdHis3 1C1XkywtL1ZoU3ubUjc+kBDrSEYe5Zn7agvj8F98= Date: Thu, 7 Jan 2021 22:18:00 -0500 To: Chuck Lever Cc: linux-nfs@vger.kernel.org Subject: Re: [PATCH v1 00/42] Update NFSD XDR functions Message-ID: <20210108031800.GA13604@fieldses.org> References: <160986050640.5532.16498408936966394862.stgit@klimt.1015granger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <160986050640.5532.16498408936966394862.stgit@klimt.1015granger.net> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org I haven't had a chance to review these, but thought I should mention I'm seeing a failure in xfstests generic/465 that I don't *think* is reproduceable before this series. Unfortunately it's intermittent, though, so I'm not certain yet. --b. On Tue, Jan 05, 2021 at 10:29:40AM -0500, Chuck Lever wrote: > The long-term purpose is to convert the NFSD XDR encoder and decoder > functions to use the struct xdr_stream API. This is a refactor and > clean-up with few or no changes in behavior expected, but there are > some long-term benefits: > > - More robust input sanitization in the NFSD decoders. > - Help make it possible to use common kernel library functions with > XDR stream APIs (for example, GSS-API). > - Align the structure of the source code with the RFCs so it is > easier to learn, verify, and maintain our XDR implementation. > - Removal of more than a hundred hidden dprintk() call sites. > - Removal of as much explicit manipulation of pages as possible to > help make the eventual transition to xdr->bvecs smoother. > > The current series focuses on NFSv2 and NFSv3 decoder changes. Please > review and comment! > > The full set of patches lives in a topic branch in my git repo: > > git://git.linux-nfs.org/projects/cel/cel-2.6.git nfsd-xdr_stream > > > --- > > Chuck Lever (42): > SUNRPC: Make trace_svc_process() display the RPC procedure symbolically > SUNRPC: Display RPC procedure names instead of proc numbers > SUNRPC: Move definition of XDR_UNIT > NFSD: Update GETATTR3args decoder to use struct xdr_stream > NFSD: Update ACCESS3arg decoder to use struct xdr_stream > NFSD: Update READ3arg decoder to use struct xdr_stream > NFSD: Update WRITE3arg decoder to use struct xdr_stream > NFSD: Update READLINK3arg decoder to use struct xdr_stream > NFSD: Fix returned READDIR offset cookie > NFSD: Add helper to set up the pages where the dirlist is encoded > NFSD: Update READDIR3args decoders to use struct xdr_stream > NFSD: Update COMMIT3arg decoder to use struct xdr_stream > NFSD: Update the NFSv3 DIROPargs decoder to use struct xdr_stream > NFSD: Update the RENAME3args decoder to use struct xdr_stream > NFSD: Update the LINK3args decoder to use struct xdr_stream > NFSD: Update the SETATTR3args decoder to use struct xdr_stream > NFSD: Update the CREATE3args decoder to use struct xdr_stream > NFSD: Update the MKDIR3args decoder to use struct xdr_stream > NFSD: Update the SYMLINK3args decoder to use struct xdr_stream > NFSD: Update the MKNOD3args decoder to use struct xdr_stream > NFSD: Update the NFSv2 GETATTR argument decoder to use struct xdr_stream > NFSD: Update the NFSv2 READ argument decoder to use struct xdr_stream > NFSD: Update the NFSv2 WRITE argument decoder to use struct xdr_stream > NFSD: Update the NFSv2 READLINK argument decoder to use struct xdr_stream > NFSD: Add helper to set up the pages where the dirlist is encoded > NFSD: Update the NFSv2 READDIR argument decoder to use struct xdr_stream > NFSD: Update NFSv2 diropargs decoding to use struct xdr_stream > NFSD: Update the NFSv2 RENAME argument decoder to use struct xdr_stream > NFSD: Update the NFSv2 LINK argument decoder to use struct xdr_stream > NFSD: Update the NFSv2 SETATTR argument decoder to use struct xdr_stream > NFSD: Update the NFSv2 CREATE argument decoder to use struct xdr_stream > NFSD: Update the NFSv2 SYMLINK argument decoder to use struct xdr_stream > NFSD: Remove argument length checking in nfsd_dispatch() > NFSD: Update the NFSv2 GETACL argument decoder to use struct xdr_stream > NFSD: Add an xdr_stream-based decoder for NFSv2/3 ACLs > NFSD: Update the NFSv2 SETACL argument decoder to use struct xdr_stream > NFSD: Update the NFSv2 ACL GETATTR argument decoder to use struct xdr_stream > NFSD: Update the NFSv2 ACL ACCESS argument decoder to use struct xdr_stream > NFSD: Clean up after updating NFSv2 ACL decoders > NFSD: Update the NFSv3 GETACL argument decoder to use struct xdr_stream > NFSD: Update the NFSv2 SETACL argument decoder to use struct xdr_stream > NFSD: Clean up after updating NFSv3 ACL decoders > > > fs/nfs_common/nfsacl.c | 52 +++ > fs/nfsd/nfs2acl.c | 62 ++-- > fs/nfsd/nfs3acl.c | 42 ++- > fs/nfsd/nfs3proc.c | 71 +++-- > fs/nfsd/nfs3xdr.c | 538 ++++++++++++++++++-------------- > fs/nfsd/nfsproc.c | 74 +++-- > fs/nfsd/nfssvc.c | 34 -- > fs/nfsd/nfsxdr.c | 350 ++++++++++----------- > fs/nfsd/xdr.h | 12 +- > fs/nfsd/xdr3.h | 20 +- > include/linux/nfsacl.h | 3 + > include/linux/sunrpc/msg_prot.h | 3 - > include/linux/sunrpc/xdr.h | 13 +- > include/trace/events/sunrpc.h | 15 +- > include/uapi/linux/nfs3.h | 6 + > 15 files changed, 680 insertions(+), 615 deletions(-) > > -- > Chuck Lever