Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2482591ybl; Thu, 19 Dec 2019 14:34:07 -0800 (PST) X-Google-Smtp-Source: APXvYqw53yQhnvM2zhG229DUs24EKw/RIJKDO+FufC4UlXt7MDUE5nwHbk1RqY5G+NGjshGmpTz8 X-Received: by 2002:a05:6830:3016:: with SMTP id a22mr4639937otn.177.1576794846937; Thu, 19 Dec 2019 14:34:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576794846; cv=none; d=google.com; s=arc-20160816; b=yizRHMlnE1OrEyAat86rMSvnblRTnj7mDoRUmKBTlQpKbAv0KD4PUHcC8lGhX+zOnI a/vqrtaIA44CUK6atzwkrfB1/zBIH2Gel8iKnLpk1YcxueIIy/J/Nf50nyDEkDBn7cCR oxY2eQGdzH8EdPRxuTL/dJmwrVP2i6w2/2fNf2Y7aVA4qv4i/XjiiDdRcwGekA3k17UU 0ypImkgJn+2fBgx53l/Js/ayy9/2cBprUfTJS88MPJ++j/nP6XfiGuoFae3FRBDyZprj xoYZ71EqH0PsewJLYaBIb/7YTcMPa8Bqjhy/EHcpzpwYAzuj7ACR/zwWUc07Ir2HNDIP ysvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:content-disposition :mime-version:message-id:subject:cc:to:date; bh=6Ps3WK2AIKzpQqGKanX0o+k7nk9XtTPiWvrJUJ5oasU=; b=NIzjoRVDc4InVvbqSq9ml43oRe+4RfKt/PIMnA3StW3BZE+TWVhflKFeucHrvXUS2o nqKflDQSpNW5Qe1av1OX7L1jR/E4byYK75zoLH9Qu9kv2oFbgDajVcWmmQDs/nC5IPha Kww4u1WkEf/UzsU5URDID03h8efsINx/309oXf1IjA4To6ZGAL4RazWcSF7Wt3BAz6GE 1Q3i9m89CCY25EhjDKm2YXyRLzOhOPzkuFCKnVsxglhAM4ZgDfFe9dU9JKmK1nySyxFf yaSebfLAdl3NUbdiu7CTjpHd+pB6CyCJVV+gxqBgMrEkVUJnmFgKm+0Z4t6foFcGNkkZ Rr4Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si780238otf.161.2019.12.19.14.33.44; Thu, 19 Dec 2019 14:34:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbfLSWdh (ORCPT + 99 others); Thu, 19 Dec 2019 17:33:37 -0500 Received: from fieldses.org ([173.255.197.46]:38774 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbfLSWdh (ORCPT ); Thu, 19 Dec 2019 17:33:37 -0500 Received: by fieldses.org (Postfix, from userid 2815) id EA22247F; Thu, 19 Dec 2019 17:33:36 -0500 (EST) Date: Thu, 19 Dec 2019 17:33:36 -0500 To: fstests@vger.kernel.org Cc: linux-nfs@vger.kernel.org Subject: [PATCH] generic/529: use an ACL that doesn't confuse NFS Message-ID: <20191219223336.GC12026@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: "J. Bruce Fields" For historical reasons having to do with Solaris ACL behavior, the Linux client treats an ACL like the one used as an example here as equivalent to a mode, causing listxattr to report that no ACL is set on the file. (See the comment at the top of fs/nfs_common/nfsacl.c in the kernel source for details, and the "bogus ACL_MASK entry" comment in the same source file.) This causes a spurious generic/529 failure on NFS. As far as I can tell any ACL should trigger the original XFS problem. So, modify it so as not to hit this odd NFS corner case. Signed-off-by: J. Bruce Fields --- src/t_attr_corruption.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/t_attr_corruption.c b/src/t_attr_corruption.c index e7d435b1791f..b5513d44a288 100644 --- a/src/t_attr_corruption.c +++ b/src/t_attr_corruption.c @@ -59,7 +59,7 @@ int main(int argc, char *argv[]) .e = { {htole16(1), 0, 0}, {htole16(4), 0, 0}, - {htole16(0x10), 0, 0}, + {htole16(0x10), htole16(4), 0}, {htole16(0x20), 0, 0}, }, }; -- 2.24.1