Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3130627ybl; Sun, 2 Feb 2020 15:26:58 -0800 (PST) X-Google-Smtp-Source: APXvYqx77CmqsimYgX6e6Ti6aFI0g+JVqaivqjGhjy28+bpQ5/fp2tt7yCs+Xz9Yg3Nj7oFm1ztg X-Received: by 2002:aca:d4c1:: with SMTP id l184mr13159035oig.172.1580686018815; Sun, 02 Feb 2020 15:26:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580686018; cv=none; d=google.com; s=arc-20160816; b=qKRaDmYMFnxcDR/S6sGqobX1tg1IiuIYxQZDWomyi8v4vHmUr2o+BGsaQJ684I6cqb 9VJ4HZao709QzhxGHaY+XMxXBW64xNTWTqG7qga/UlxBrBEjD5uhA5P6BP6B1k/Ud2fV PaQ/cgw+sdOgkQW1HwmYf8cciwFqBkEVY/rsE9L+PWyNWMlW9M1OLdscyYm4tRQP/z7d G/x4oLhEbImH7RhQUrPJaxU7v7vIXtkjIseB8c6FRPiuryJ+eV4BgRgGo3hGhMOmn3sm V90cd4xVJjqpBoivWw3PUv1AKKybNoILcyBmMFT+Nl91aVJM3BlvpYnNJfFFJ+RRMTKd aeaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IYVffNbAr9TiXb+ZLUWsvsYgA2b+QHWTgILXwNulVkI=; b=KAVTJ7dk1zONgaWshL5uny3aIHra32XK+JDatFqQF9Hmxy5KA5qSpL8A0XiigXy8cd rdHzhXYQfx1OA4kRC25Rg6CvANas9s1HizBjOssXrgOF81aFozHpXjmhJ5T6MTHX+3J2 TKOzgFkEmI4r5Ukx5wirbcU9DSnwrxhSP0sbrJZ5vhVR8xHG7FQQuSRvdmBpAPt5bvPO iByoGNaZADz+Mp64qItlYuz3CzQbjQj7lnnQ9s0GTRbcZItIn6YP1AeZqT1d5YRAfCON ChF7xDuavME62Xf7IeBWM0hyE2VjbXHkh6/qbrBPjrmN0+b3Ul7hCM6dHDZcXhRStYkF Y0bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TUUBlQiF; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si8062690oic.183.2020.02.02.15.26.30; Sun, 02 Feb 2020 15:26:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TUUBlQiF; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726342AbgBBW4H (ORCPT + 99 others); Sun, 2 Feb 2020 17:56:07 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:42688 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbgBBW4H (ORCPT ); Sun, 2 Feb 2020 17:56:07 -0500 Received: by mail-yw1-f65.google.com with SMTP id b81so11944751ywe.9 for ; Sun, 02 Feb 2020 14:56:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IYVffNbAr9TiXb+ZLUWsvsYgA2b+QHWTgILXwNulVkI=; b=TUUBlQiFS4Z3K4GoLc5f6jj0AmZ4swIBbL3/WHpMLfXdhWIm7e2gFRAL5HVIYBFCvn DFbaF5f1GHnQm/MIMcsew2hACYOTYPT9z0My36KCVU1h2qI4pGBytGD6Kuh+j+yhbpW+ 4qOtSFOrdzVij35ch77wLZ8p9D0q7zn3khnonu6LYPMPyTXaa+Y2kRft6Oe68oFj25Xb 3mZdgHNczIH+QyPSCbCr+d3HyrZetPpfuILBdcZXgZqHESxY9VjUgbavk/fI0R+FYM1P 0Rn2nD8baSWTotyAyeSVUFhLeoUt9j66ZvfLQBJQAnFuQW5EYm+kg4eQCxiGQZjVYZ7J /kPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IYVffNbAr9TiXb+ZLUWsvsYgA2b+QHWTgILXwNulVkI=; b=cWGPJQ023/ahTigNJhYnDej0m9LiWTTB3eKY7e6eUysn1T9qL13l76TfmcTICWIPZd iTunm3cun2WoTz230mCew7+qEo1h7MvA2L3eLRaGXfc41yzj13EadO8Gy1jVjzN5bkeb uuvOGVhKqd7OAd0NVYhkKTsRMUpytkPkWhfvb0xihY7CtcwM8Q2a/bGPDEk8L2OaFX9q 16yF3VLUj/D91fAxiqXRxucnmE1pTYD2K0pV2+R1+nIqk6i15KjU/nWSuywzxVcddy27 +sl37Apw/Iy78OIUeJq6/g0o2f8aK2+AloQb8mHXsqRFq/0Kfz94ko2lElM3YL7XwzSP WdJg== X-Gm-Message-State: APjAAAUvvMqW18bNte3rWtyVQaLEaRzoLujJ/oIXfzdbDMckUTIq7x4M uBgjs7Lez9tcDlf3D/na5w== X-Received: by 2002:a25:6e04:: with SMTP id j4mr18375118ybc.36.1580684166619; Sun, 02 Feb 2020 14:56:06 -0800 (PST) Received: from localhost.localdomain (c-68-40-189-247.hsd1.mi.comcast.net. [68.40.189.247]) by smtp.gmail.com with ESMTPSA id u136sm7185529ywf.101.2020.02.02.14.56.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Feb 2020 14:56:05 -0800 (PST) From: Trond Myklebust X-Google-Original-From: Trond Myklebust To: Anna Schumaker Cc: Benjamin Coddington , Dai Ngo , linux-nfs@vger.kernel.org Subject: [PATCH 0/4] Readdir fixes Date: Sun, 2 Feb 2020 17:53:52 -0500 Message-Id: <20200202225356.995080-1-trond.myklebust@hammerspace.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Two stable patches that fix memory corruption and a memory leak in the readdir code. Fixing those issues together with the patch by Dai Ngo then allows us to switch NFS over to the iterate_shared() interface to enable parallel access to readdir() for the same directory. Trond Myklebust (4): NFS: Fix memory leaks and corruption in readdir NFS: Directory page cache pages need to be locked when read NFS: Use kmemdup_nul() in nfs_readdir_make_qstr() NFS: Switch readdir to using iterate_shared() fs/nfs/dir.c | 51 ++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 15 deletions(-) -- 2.24.1