Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp535582pxb; Sat, 20 Feb 2021 12:05:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPQP8yii2QTEqTq4SOCfOZPNSZbnlLOkG4i141hPwbq+1Jujkq+7KE3YLvo/AdG+EUv/n6 X-Received: by 2002:a05:6402:215:: with SMTP id t21mr15298239edv.363.1613851529846; Sat, 20 Feb 2021 12:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613851529; cv=none; d=google.com; s=arc-20160816; b=vZcvtFWhJf/5niyfZYoD6+yValjKInuu09wRGtaMXFdImcq0/vTh6yWXlmrWrBL2TJ z9kjAipw7yU1du/zh9CojgIsgyJJKNONzTsgbyeMsx4lJt0ruHckT2AF3DEa1mzCwwWH CourwaeK/AO6mFYlmxZCzt+a+oDl/4WPpdFZQJubKWy6J5i0SMGXE8HGby/9HU8rM7HH N2//83AopsB1F9CqEPV0PzxNUncxPTodsI5j5Wf8ZHQFZqtvFN0jqZfno6EaiPe3JAvW V/za8WTb+rfYfU9WE/hUFchv+vw8j9wt0dnsXlk02i3GT1xAjMdps8inapOhJEcIqScZ Ncgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=EvyUzGApNtWB9y0SWjnEDS7m8ylDiJ5z5Bt63yfEHOE=; b=Hmu5uE7PqX7dRWy9HD2UsQ6V9hdjm/RLD0s5doB2qjpNZxe/l2D2gg3dj5Ac+/qoGX i1E17y7qWUaPmB4iTDlo55ZT3FGPszh3KSUof2wS4thf8M3iJF0GvQDRgt2uuorFyDcL jtn13Lu5RNhL0H7GVXPtphV9A4nF/Q6KUGoaZM20/4Ou7VXkv4D7An0ZymfgZu+Bu/Vl 81IDUh/CxIG9R3sagzgfeIKLEyziS/RCxaER/rtikrFSKgpuSMOi0xKXEKUlGRM0UzGv D/wSdaO8svJUamMMit9s8oouamR/Osx2j2MFHiXcEdWK9c47Odr++remnVNLydzqn/cL 7qxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tqrUB60q; 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 p2si9013490eja.631.2021.02.20.12.04.53; Sat, 20 Feb 2021 12:05:29 -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=@gmail.com header.s=20161025 header.b=tqrUB60q; 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 S229809AbhBTUEv (ORCPT + 99 others); Sat, 20 Feb 2021 15:04:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229796AbhBTUEu (ORCPT ); Sat, 20 Feb 2021 15:04:50 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 295DAC061574; Sat, 20 Feb 2021 12:04:10 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id m1so10813772wml.2; Sat, 20 Feb 2021 12:04:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EvyUzGApNtWB9y0SWjnEDS7m8ylDiJ5z5Bt63yfEHOE=; b=tqrUB60qTvPKU/Gl/J9m0xRclcqYMmdYM+wnKfjF4+Uk+XGB770WT99fgyd0GN2K7x fE9WKJ938K0ep5QEklN6oMK483AziJk+ererm+LrsiPbU48YBXyVMFfJEv/BI4F6Xf7o vooaGA41LhBggtnEdm8fbBuBXVgB+pDKJ9qAWtKjaPDffjFDmmHTvBB31wAok/hFkykl By4oQOSIoqTR1XtYYKrm+xOr5gT/pYWGGvM8CebPKWVIWS+g3Tmczhbn3V6czvW0pPLh wP5gPpP9z2XD8I4cu0cUp4keyf7cvmitvO4vhyJid0lmD8lCPRZbTwdxq4PVNCpRtktb ZVHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=EvyUzGApNtWB9y0SWjnEDS7m8ylDiJ5z5Bt63yfEHOE=; b=CZLMDOg3PyAOTb+fo+t2cE7NHSsx/0ODJYqGNk/FJTr0AhOcsZFBcT9hI27C31s+Lj 3dZgnHNyavsw9OLYfkRabXGJMEoc7VLkHiEBBgEElkf0b9g8Kt7nGmlU+7m9XVVZNS3S boY72d5VKnaX8G63NmFGdoXT0zoHIaJNmst4iZyysk8WVqq6W/nMDta8qKK+gNhEWDV+ 4nlOBW+x9TAyHLdnDtiFwW18fSEly3UlYjY+ZLE6wkK+rvEOypLj/QaCIoFnlwU66f5V YjA9DLio42SKcVtmsp7hHmEtbPh7VWLq4Yw7fQXFKkiCNb1YjIDLkS2XMzScH4pRzJzN HSCQ== X-Gm-Message-State: AOAM530IkJih4KlPVzfqKzGswAwGcCggImDjeGhdzSj2ZO8Kj7tuMW6E KrODyE1cyVoROGe6c8D8T5H+VKTLBawE3A== X-Received: by 2002:a1c:7c17:: with SMTP id x23mr1621201wmc.95.1613851448989; Sat, 20 Feb 2021 12:04:08 -0800 (PST) Received: from eldamar (80-218-24-251.dclient.hispeed.ch. [80.218.24.251]) by smtp.gmail.com with ESMTPSA id p3sm4832666wro.55.2021.02.20.12.04.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Feb 2021 12:04:08 -0800 (PST) Sender: Salvatore Bonaccorso Date: Sat, 20 Feb 2021 21:04:07 +0100 From: Salvatore Bonaccorso To: Anton Ivanov Cc: Linux Kernel Mailing List , 940821@bugs.debian.org, linux-nfs@vger.kernel.org, bfields@fieldses.org, chuck.lever@oracle.com Subject: Re: NFS Caching broken in 4.19.37 Message-ID: References: <5022bdc4-9f3e-9756-cbca-ada37f88ecc7@cambridgegreys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5022bdc4-9f3e-9756-cbca-ada37f88ecc7@cambridgegreys.com> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi, On Mon, Jul 08, 2019 at 07:19:54PM +0100, Anton Ivanov wrote: > Hi list, > > NFS caching appears broken in 4.19.37. > > The more cores/threads the easier to reproduce. Tested with identical > results on Ryzen 1600 and 1600X. > > 1. Mount an openwrt build tree over NFS v4 > 2. Run make -j `cat /proc/cpuinfo | grep vendor | wc -l` ; make clean in a > loop > 3. Result after 3-4 iterations: > > State on the client > > ls -laF /var/autofs/local/src/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/linux-4.14.125/arch/mips/include/generated/uapi/asm > > total 8 > drwxr-xr-x 2 anivanov anivanov 4096 Jul 8 11:40 ./ > drwxr-xr-x 3 anivanov anivanov 4096 Jul 8 11:40 ../ > > State as seen on the server (mounted via nfs from localhost): > > ls -laF /var/autofs/local/src/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/linux-4.14.125/arch/mips/include/generated/uapi/asm > total 12 > drwxr-xr-x 2 anivanov anivanov 4096 Jul 8 11:40 ./ > drwxr-xr-x 3 anivanov anivanov 4096 Jul 8 11:40 ../ > -rw-r--r-- 1 anivanov anivanov 32 Jul 8 11:40 ipcbuf.h > > Actual state on the filesystem: > > ls -laF /exports/work/src/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/linux-4.14.125/arch/mips/include/generated/uapi/asm > total 12 > drwxr-xr-x 2 anivanov anivanov 4096 Jul 8 11:40 ./ > drwxr-xr-x 3 anivanov anivanov 4096 Jul 8 11:40 ../ > -rw-r--r-- 1 anivanov anivanov 32 Jul 8 11:40 ipcbuf.h > > So the client has quite clearly lost the plot. Telling it to drop caches and > re-reading the directory shows the file present. > > It is possible to reproduce this using a linux kernel tree too, just takes > much more iterations - 10+ at least. > > Both client and server run 4.19.37 from Debian buster. This is filed as > debian bug 931500. I originally thought it to be autofs related, but IMHO it > is actually something fundamentally broken in nfs caching resulting in cache > corruption. According to the reporter downstream in Debian, at https://bugs.debian.org/940821#26 thi seem still reproducible with more recent kernels than the initial reported. Is there anything Anton can provide to try to track down the issue? Anton, can you reproduce with current stable series? Regards, Salvatore