Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22867606rwd; Fri, 30 Jun 2023 14:00:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlE/IVSh19bbS57RsV4KqPLEKfEfzZ8CI/Ula5peqMrdtaIjgPWKpsksXu6kFNWDitA7yQz2 X-Received: by 2002:a17:902:cecb:b0:1b8:5541:9d32 with SMTP id d11-20020a170902cecb00b001b855419d32mr2647002plg.68.1688158809351; Fri, 30 Jun 2023 14:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688158809; cv=none; d=google.com; s=arc-20160816; b=Wx10iYXzgrG7P6VMY/g8XBL0kKULSoP+KkysLparrc8VY2sIvDIhXBCoOdf1yUwhEg IaZ/l5UfuqBjA1eb1SEUUIQO9XqWGYraYZy9k7ToP3OTItLt8O3z/31+xg0LOaPlcxZD xt1bWVqweq8XB09I2OrYkZeSkhgXjY21a3CNg28dWCglHyEuYib3k18ePHRrnrCP3OJz 8D7qQ46FYlKRmvgIZRi4Wzdb99yQV8sGZJReaQdLhTrbXIdiWASKiGwnYG5HKr4Ibp/Z T7aEgBFSPdGMMj86X/dFDGlYOjhARK7RCkOeLGiwI4zMbRv63h5xCGze+mUSN5GMnzua GH3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yRXK5EVxAAHEc03DFgSd2chUc6p8g1Th2e18fCO9Eto=; fh=zrf3k9maC4LGn/MmcHhRkqh5cHnarsSKx/fWXfAmYNI=; b=YNiHgj1+Lt/uCJJy6GFbvrqye0aO20LvsCOGb4+m1ctsdfpVEdGHsCQB5HgpASkRp2 xboNqxBzpa4uiuNAZjpam2pTNd4V9noRyF+oxRT/RCYx31xkblBmsxFcwb/H2MJniCA1 xrACFs7WIEgg/OVPfUWfElVLL0qfcI+PdohD/yvmXhROs5OWe4NM32FgyrcXHf7uQDHl lndG71ZlEL+osndXwcRnnmsJSr4xeBcxXPXcYvTUpSZCLSzKkEfguh2BrAHqZgnNk3hr +YftHhXq0x6Zb12PWMMFuztF2yR4Mwn8jW10t9LERrVRETl2X0ocUpbrwA8DzryKlCp1 h1uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OML8bqJJ; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iy10-20020a170903130a00b001b81d7dc846si7059184plb.184.2023.06.30.13.59.55; Fri, 30 Jun 2023 14:00:09 -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=@kernel.org header.s=k20201202 header.b=OML8bqJJ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232620AbjF3Ums (ORCPT + 99 others); Fri, 30 Jun 2023 16:42:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232586AbjF3Umn (ORCPT ); Fri, 30 Jun 2023 16:42:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05DD5BD for ; Fri, 30 Jun 2023 13:42:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 82FBF61808 for ; Fri, 30 Jun 2023 20:42:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C26BC433C9; Fri, 30 Jun 2023 20:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688157761; bh=ROKlCTg/sDjPFnuaSk21oo7Lb8DZrHsc7I1adlH4RpU=; h=From:To:Cc:Subject:Date:From; b=OML8bqJJywwyGk8xzrUJD6wpHTXCm3S6ZSgN6FAfzEz/tHrlMzeLyEmT1Vl7dNFUB ogQxh6UDR//OOxsyrTGDokA0LwrJ0UEFOsPDi3Kc1y7nlPqY7cMuBswThCX7rZMjRO MXkB/twNHSTOs5bfU/hrZ91HorkYxZCoF1IbJEZpl7j7ednd5hXjrcXEqxhApvqF+2 yC0S9XiN6DZEu/tIeMXJ6w0GFyL2JfFnobX6NYch1/beS3ADBTAJ53nocB1zRcTQaG LiKeJttm8fYw1470/tglGnDc6C+TiI4NeLy0pB3eZoW/QKmV7GulVuEVGSsaZeICJ2 hjxjUm/hdAgvg== From: Anna Schumaker To: linux-nfs@vger.kernel.org, trond.myklebust@hammerspace.com Cc: anna@kernel.org Subject: [PATCH v4 0/4] NFSv4.2: Various READ_PLUS fixes Date: Fri, 30 Jun 2023 16:42:36 -0400 Message-ID: <20230630204240.653492-1-anna@kernel.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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,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 From: Anna Schumaker These patches are a handul of fixes I've done recently to the READ_PLUS code. This includes fixing some smatch warnings, fixing the XDR reply length calculation, improving scratch buffer handling, and having xdr_inline_decode() kmap pages if we detect that they're HIGHMEM so we don't oops during READ_PLUS xdr decoding. Thoughts? Patch #4 probably needs the most review, and I'm open to other approaches if something else makes more sense! Thanks, Anna Anna Schumaker (4): NFSv4.2: Fix READ_PLUS smatch warnings NFSv4.2: Fix READ_PLUS size calculations NFSv4.2: Rework scratch handling for READ_PLUS (again) SUNRPC: kmap() the xdr pages during decode fs/nfs/internal.h | 1 + fs/nfs/nfs42.h | 1 + fs/nfs/nfs42xdr.c | 17 +++++++++++------ fs/nfs/nfs4proc.c | 13 +------------ fs/nfs/read.c | 10 ++++++++++ include/linux/sunrpc/xdr.h | 2 ++ net/sunrpc/clnt.c | 1 + net/sunrpc/xdr.c | 17 ++++++++++++++++- 8 files changed, 43 insertions(+), 19 deletions(-) -- 2.41.0