Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2471849rdb; Thu, 21 Sep 2023 22:19:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHpiX4rpZ9nstSZSn34uVdoQYIGv5ydy7MLw9/IgXgkf3FDAd9sWubWPqy7g9lxh+p7jjGp X-Received: by 2002:a25:d0d7:0:b0:d81:5ec1:80cf with SMTP id h206-20020a25d0d7000000b00d815ec180cfmr7522163ybg.12.1695359958334; Thu, 21 Sep 2023 22:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695359958; cv=none; d=google.com; s=arc-20160816; b=XziIRJJiMQWuTjzy5rB14wLrn3GngioAkYdvFkjYaSmj6ms8IFE8XkYR3GZxSkWmBH GMxcAHpsuAOxfjhbfJe6dZtbl0JToPIrlR1JI5mTPvmgabs/7UpTFWy9XOZQRbBJPSdg ewcgJTSGiLUoIxxWtv/IolQb1WuTjiw9mroAtFgIQzu5+Sq/3Mi0IdDBQOqmXNqUhuMH P8VcOm0sPtFS+8NU3HQGsXH4yZH8vWiDB8v2GjwwC65gt0gdN2Q26c3kULcyh3Sh1LDN FKBvmC4x84qM7ULGwx8BuGvlO4fRLYtoi/7DeTZTASj2Pulybs5MOdqByprbERfZbrT+ JQAA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hR3mF7MJEijT29cqf3NUsmjuXwPHm62/tFp0nkWOtU8=; fh=q/Q677eADxNRALgcm7IVLuGZBpDks2h5YBTjEdIuqD0=; b=L5PoseM3QxPgy9Fte51qWsOAJStgkgD+1hEncZqcuzJQzUGoHdEEq6kGuYJiwDXONr 3xT/EI/LXxn7NCRO8wT2JceX5vzBxZqymDBz+vtbCDjEQLTPKUcS/ba4dCaQFuUEb46V a8o8vKq+V4ZFRAYUzxMtgIY5U+Y+Lw6meP2S2/s62SFF+WDeSDamxwb8QKzdliUuB34O nh3OoPSXuUrnI8dTYdiVRLRULmnqGwSribRUbzG+JBoyTRe+tgeDEovIDpGZXhucR0z3 zOwk4uSkjL9v/hkqrRAbN1dHlIs4loEk4S09MtW52KycI8ITmbNXrZ8+xN0bZwRDkTSF vMOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UhqH+97P; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d5-20020a633605000000b0056ae6bfe161si3075746pga.142.2023.09.21.22.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 22:19:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UhqH+97P; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id DF0DD832ED1D; Thu, 21 Sep 2023 14:17:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231481AbjIUVRI (ORCPT + 99 others); Thu, 21 Sep 2023 17:17:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231389AbjIUVPn (ORCPT ); Thu, 21 Sep 2023 17:15:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A22659005 for ; Thu, 21 Sep 2023 10:05:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695315939; h=from:from:reply-to:subject:subject: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=hR3mF7MJEijT29cqf3NUsmjuXwPHm62/tFp0nkWOtU8=; b=UhqH+97PiO2PJRnuzvTi544pcdBczdlzN2RL4gQAwcueJZ1HLUsSBFnA7LOHt60UC4d9Nw wOTwx5WBgtm196WzlrPsjY16uGSe9fkOyKSEhWY71X9WhRYi5gnqXAZnJTkdj+RsBi9TfC 91ig83I4mv24+BO8Ub4HHyCrZvhVCtM= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-217-2DABMSmNPJ6eSE5MsuYXKg-1; Thu, 21 Sep 2023 09:49:54 -0400 X-MC-Unique: 2DABMSmNPJ6eSE5MsuYXKg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1A2C92802520; Thu, 21 Sep 2023 13:49:54 +0000 (UTC) Received: from [192.168.37.1] (unknown [10.22.50.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A3D8651E3; Thu, 21 Sep 2023 13:49:53 +0000 (UTC) From: Benjamin Coddington To: Charles Hedrick Cc: linux-nfs@vger.kernel.org Subject: Re: bad info in NFS context Date: Thu, 21 Sep 2023 09:49:52 -0400 Message-ID: <650954F9-F67D-4F62-AD7B-4D16DF45E168@redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 21 Sep 2023 14:17:20 -0700 (PDT) X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email On 21 Sep 2023, at 9:36, Charles Hedrick wrote: > this is a web app. What is it about logging out and logging in that cle= ars the cache? We'll need to make sure that the web app does it. There's a very real performance tradeoff to perform NFS ACCESS operations= for every part of a tree walk vs. caching the results of previous ACCESS= calls. There's not a sane way for the client to know when a user's grou= p membership has changed in order to invalidate the cache, since the chan= ge to the user's group membership is not reflected on the inodes themselv= es. So, the NFS client will keep caching the result of previous calls to= unchanged inodes until it notices that the process' oldest parent with t= he same user/credential has a task start_time that is older than the curr= ently cached entries. TL;DR - you probably want to restart the web server. Ben > ________________________________ > From: Benjamin Coddington > Sent: Thursday, September 21, 2023 6:44 AM > To: Charles Hedrick > Cc: linux-nfs@vger.kernel.org > Subject: Re: bad info in NFS context > > On 20 Sep 2023, at 19:14, Charles Hedrick wrote: > >> Ubuntu 22 client and server (5.15). Mount is 4.2, sec=3Dsys. I add a u= ser to a group, but they can't see things that the group should be able t= o see. /proc/net/rpc/auth.unix.gid/content shows that the nfs group cache= has their group membership. Doing a mount -o vers=3D4.1 works (4.1 to fo= rce a different context). Other users that didn't try before work. It's b= een several hours, and 4.2 still won't work for this user. >> >> What do I need to flush? >> >> Note that I'm using gssproxy on the server. > > Have the user log out and then back in again after the group change, th= at > should cause the user's NFS ACCESS cache to clear. > > Ben