Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp36180rwn; Wed, 7 Sep 2022 19:27:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR4rxcGj97ELy+GSeS29y3qMXbzpOGtYhVtnkAlkpPpbrQuPStMdcVKZeBA5lbLT0qoemJ3d X-Received: by 2002:a17:907:7605:b0:73d:cdf7:d8e0 with SMTP id jx5-20020a170907760500b0073dcdf7d8e0mr4416585ejc.430.1662604042991; Wed, 07 Sep 2022 19:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662604042; cv=none; d=google.com; s=arc-20160816; b=shqznpqwF7a6dxOfJIJADdhqRYiYdPpGUo5SS/lypjVzTBGjQmrSkeOjZp4u7D0VdQ uXo0alwOZpeC6XYvqDy2ngMSquzeC9PCuDn1RkN2HvT5Wv3gPYFFmzd8HNTnacJ0o4PM 9gKAZNiA3ScgCc47gfXJ9c5+ojD07KQAxjrsGLV9ww1KdBkruHLeP6yo4UdrVqe1ey92 dfRRJEfseeeF+14k/x0lQZ24owBl3TUi4+d8uFm2j++DkFii2BuWSVB4vOF9Wlw79rho GC6s8ClABAj+Kh41kMQA98/mWQnqqWuvCxxklfxxnE1Sv233Nx0WzqSxAV1wKLGxxC0g 36nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=WQL1n2GQn2d3aBx9ku2/iyfDjfQHXFKG4inc0DpobyA=; b=w+E17k0BcXF4A3CagYoAWZJBIxUPgCQElhbWZqoGNndmBo5i+5KSUq4Rr8okcGbPL2 9JFUtMXaMPXz0qujAJOqjpHL62Ra05q4bQpORfJtjX6ldgG64h0Ia3oa6JUlhdMAl+vu rI/3hXQt8FMse7fz1/pEQEQSnYw+OiH80vgYJX/dl8cEqQzTGmv0aTAnZu9qAxy4+tIz zi5YRv1Fagi0t1ujwsm3zTUPBL8Gl8F4xf13cb7KjEkMdJwPlFAtQyy8ZtS9efZ/fK3G 6MRl2i8ZG9S9aIt6nzD6Um1rcS773INkFITOPsuLrfGt1It5nf5bi2VhjQIbJKCDHM8y s3lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hbQcp+2l; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr19-20020a1709073f9300b0072e6774827asi1153248ejc.915.2022.09.07.19.26.59; Wed, 07 Sep 2022 19:27:22 -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=@suse.de header.s=susede2_rsa header.b=hbQcp+2l; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229516AbiIHCEx (ORCPT + 99 others); Wed, 7 Sep 2022 22:04:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiIHCEu (ORCPT ); Wed, 7 Sep 2022 22:04:50 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF2AE25592 for ; Wed, 7 Sep 2022 19:04:46 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 9A42B20AFC; Thu, 8 Sep 2022 02:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1662602685; h=from:from:reply-to: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=WQL1n2GQn2d3aBx9ku2/iyfDjfQHXFKG4inc0DpobyA=; b=hbQcp+2ljmCm+XApBpJfQgD1rqOdLTROzw686/mwtwQaYgfoWcCuMBxiJJnaB54FeOj3KP 9z/gPO9op66lKiVXTfs/ovGLCOdUa7mCy0kwZDVsDSJbFV6vNrkaq3lHvGoq2JXsOrNlrW W7+3hlgE1qj8ZDQswkmpw6Ud7n9qxFU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1662602685; h=from:from:reply-to: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=WQL1n2GQn2d3aBx9ku2/iyfDjfQHXFKG4inc0DpobyA=; b=cqvhNKkvr3tfMAlQ4lotnTxXKbK4pCtHAwnYP+g7f5lFPG5x9U1Bec0/LlvfqEgdhOIrEJ frGVzyhkQgnCj2AA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B5C671322C; Thu, 8 Sep 2022 02:04:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gdctGrlNGWNdPwAAMHmgww (envelope-from ); Thu, 08 Sep 2022 02:04:41 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever III" Cc: "Bruce Fields" , "Linux NFS Mailing List" Subject: Re: nfs/001 failing In-reply-to: <75E3A557-67FB-437E-8350-D2ED82ABE4B9@oracle.com> References: , <20220906122714.GA25323@fieldses.org>, <166250586898.30452.12563131953046174303@noble.neil.brown.name>, <75E3A557-67FB-437E-8350-D2ED82ABE4B9@oracle.com> Date: Thu, 08 Sep 2022 12:04:37 +1000 Message-id: <166260267746.30452.5250279610360481572@noble.neil.brown.name> 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_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 On Wed, 07 Sep 2022, Chuck Lever III wrote: >=20 > > On Sep 6, 2022, at 7:11 PM, NeilBrown wrote: > >=20 > > On Tue, 06 Sep 2022, J. Bruce Fields wrote: > >> On Mon, Sep 05, 2022 at 04:29:16PM +0000, Chuck Lever III wrote: > >>> Bruce reminded me I'm not the only one seeing this failure > >>> these days: > >>>=20 > >>>> nfs/001 4s ... - output mismatch (see /root/xfstests-dev/results//nfs/= 001.out.bad) > >>>> --- tests/nfs/001.out 2019-12-20 17:34:10.569343364 -0500 > >>>> +++ /root/xfstests-dev/results//nfs/001.out.bad 2022-09-04 20:01:35.= 502462323 -0400 > >>>> @@ -1,2 +1,2 @@ > >>>> QA output created by 001 > >>>> -203 > >>>> +3 > >>>> ... > >>>=20 > >>> I'm looking at about 5 other priority bugs at the moment. Can > >>> someone else do a little triage? > >>=20 > >> For what it's worth, a bisect lands on > >> c0cbe70742f4a70893cd6e5f6b10b6e89b6db95b "NFSD: add posix ACLs to struct > >> nfsd_attrs". > >>=20 > >> Haven't really looked at nfs/001 except to note it does have something > >> to do with ACLs, so that checks out.... > >=20 > > I see the problem. > > acl setting was moved to nfsd_setattr(). > > But nfsd_setattr() contains the lines > >=20 > > if (!iap->ia_valid) > > return 0; > >=20 > > In the setacl case, ia_valid is 0. > >=20 > > Maybe something like: > >=20 > > diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c > > index 528afc3be7af..0582a5b16237 100644 > > --- a/fs/nfsd/vfs.c > > +++ b/fs/nfsd/vfs.c > > @@ -395,9 +395,6 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *f= hp, > > if (S_ISLNK(inode->i_mode)) > > iap->ia_valid &=3D ~ATTR_MODE; > >=20 > > - if (!iap->ia_valid) > > - return 0; > > - > > nfsd_sanitize_attrs(inode, iap); > >=20 > > if (check_guard && guardtime !=3D inode->i_ctime.tv_sec) > > @@ -448,8 +445,10 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *= fhp, > > goto out_unlock; > > } > >=20 > > - iap->ia_valid |=3D ATTR_CTIME; > > - host_err =3D notify_change(&init_user_ns, dentry, iap, NULL); > > + if (iap->ia_valid) { > > + iap->ia_valid |=3D ATTR_CTIME; > > + host_err =3D notify_change(&init_user_ns, dentry, iap, NULL); > > + } >=20 > Unless I'm missing something, host_err might not be initialized > in the !iap->ia_valid case. Yes, of course. Thanks. I'll post a proper patch which I have now tested. Thanks, NeilBrown