Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4245460imw; Tue, 12 Jul 2022 04:47:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uTNH4kzw9VMPYMjYlCkGd5SpGCywHrjcAiNlDrNWCg8+RCLz+U4+XvjiStD93e+qy7SX7h X-Received: by 2002:a17:906:58cf:b0:722:e4e1:c174 with SMTP id e15-20020a17090658cf00b00722e4e1c174mr23383543ejs.85.1657626456061; Tue, 12 Jul 2022 04:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657626456; cv=none; d=google.com; s=arc-20160816; b=h4AmJRvtZk2PSAAhR9Uxf5s/+3fMTZtWmrhpR19IkZqoVQrio34GfioyiqLwSlBhqh +DbPQV7T8p7SWjcumqPU8HwmV5KOvw3Qqarlv+r023wnBXF23LlT2OG1y4lJLQVB57L1 ISFmtUXs79KLU0ZmOzcyJebXhmxtsb6DedXswdZ8h0nUOpibnbUaURcXD7OSoQEDyx5i wxhjmnp6zUfMe4TsYzkxSoR9a3JRwHetSwcIJ2oAbT9HI9/8cKnm81G6L30AT1sByZBj WmE0vP8h5EXaaVpxfN19BUuUjRlbFzUrnaBFx2bKF4ebFBSIwTC0dYvkQXHtAmh2YMiI QQhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=0Y9FMfwftkPOnmB93rdMLCL6Et7+YdNAuaMYJwinhvA=; b=kOYfvtImmVs8375LvM8bNkSlqXnd8++A5ZjLl5JXxTKqCLrrTkMIeSqcxSLLEq/H+8 v2E2nsxcNUSR8XzwRPUUxsP1tD10/+E+hi4FvkE8PqbSJSPitq+9o5t/h3O0nn3xDGcu IgcFt29VWWmOSb070Aithug80mIdBr6dS7KjsUGSVrYlHtd+qLr11X0zChH27qlbo++6 xgaqIZa6amvM3iRX1OHvczZDyBwdZX76BXcWM+SlvUTp42qWEDKZh35U+urRqfFvrMvL ehBYITUvo3fD00X6j1TBwa+TMjTY1jpGh0V+zlbkxq0ZW0vVNPAJ+eAbP7w2rsZKWGM4 9dnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=kBm59xFl; 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=fieldses.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a056402033200b0043564b8b9adsi11183114edw.160.2022.07.12.04.46.49; Tue, 12 Jul 2022 04:47:36 -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=@fieldses.org header.s=default header.b=kBm59xFl; 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=fieldses.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229872AbiGLLm3 (ORCPT + 99 others); Tue, 12 Jul 2022 07:42:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232760AbiGLLmO (ORCPT ); Tue, 12 Jul 2022 07:42:14 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01B92B1950; Tue, 12 Jul 2022 04:42:12 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 7D98661D1; Tue, 12 Jul 2022 07:42:11 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 7D98661D1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1657626131; bh=0Y9FMfwftkPOnmB93rdMLCL6Et7+YdNAuaMYJwinhvA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kBm59xFl775N5od/lv83C+mUJaaeT9KS7HdBL/ooWznKjnmJQ8EfQXjaYNk3j6blM rvrUupSNZfR7AW6vsOUTGB96kAB/F+rjQkOqX3+yBOh3X+7JTqhkRB07VIuJMNPiN5 /WiWjT+lmG1GlMABqVdM0BS1K5gdtO6rH5qdECSc= Date: Tue, 12 Jul 2022 07:42:11 -0400 From: Bruce Fields To: Igor Mammedov Cc: Jeff Layton , Chuck Lever III , Linux NFS Mailing List , Ondrej Valousek , Linux Kernel Mailing List , Linus Torvalds Subject: Re: [GIT PULL] nfsd changes for 5.18 Message-ID: <20220712114211.GA29976@fieldses.org> References: <20220710124344.36dfd857@redhat.com> <5268baed1650b4cba32978ad32d14a5ef00539f2.camel@redhat.com> <20220711181941.GC14184@fieldses.org> <20220712102746.5404e88a@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220712102746.5404e88a@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 On Tue, Jul 12, 2022 at 10:27:46AM +0200, Igor Mammedov wrote: > On Mon, 11 Jul 2022 14:19:41 -0400 > Bruce Fields wrote: > > > On Mon, Jul 11, 2022 at 06:33:04AM -0400, Jeff Layton wrote: > > > On Sun, 2022-07-10 at 16:42 +0000, Chuck Lever III wrote: > > > > > This patch regressed clients that support TIME_CREATE attribute. > > > > > Starting with this patch client might think that server supports > > > > > TIME_CREATE and start sending this attribute in its requests. > > > > > > > > Indeed, e377a3e698fb ("nfsd: Add support for the birth time > > > > attribute") does not include a change to nfsd4_decode_fattr4() > > > > that decodes the birth time attribute. > > > > > > > > I don't immediately see another storage protocol stack in our > > > > kernel that supports a client setting the birth time, so NFSD > > > > might have to ignore the client-provided value. > > > > > > > > > > Cephfs allows this. My thinking at the time that I implemented it was > > > that it should be settable for backup purposes, but this was possibly a > > > mistake. On most filesystems, the btime seems to be equivalent to inode > > > creation time and is read-only. > > > > So supporting it as read-only seems reasonable. > > > > Clearly, failing to decode the setattr attempt isn't the right way to do > > that. I'm not sure what exactly it should be doing--some kind of > > permission error on any setattr containing TIME_CREATE? > > erroring out on TIME_CREATE will break client that try to > set this attribute (legitimately). That's what by chance > happening with current master (return error when TIME_CREATE > is present). Hang on, now--our current server completely fails to decode any RPC including a SETATTR that attempts to set TIME_CREATE, which means it isn't able to return a useful error or tell the client which attribute was the problem. It's not too surprising that that would cause a problem for a client. But failures to set supported attributes are completely normal, and if mounts are failing completely because of that, something is really very wrong with the client. Could you first retest with a server that's patched to at least decode the attribute correctly? I suspect that may be enough. If not, then the client in question has a more interesting problem on its hands. --b.