From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D7A1CFB424 for ; Sun, 6 Oct 2024 15:00:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QjaM5k9qqJvchGVL0bXBB8KvEd+WrkzXBDa2YMdrjdE=; b=svxWDzpzxPC6iuLr4tTViPD9ur uwcWab5119wtKb/H8PGDhFLluY3G3T0ZLQxqZtdMajxWTffLquB5V4ETShD6Z+aOfr9vBqXWkkhqc /iPO3fI8HLSgU8TbbdlMjtavMiNqYabIbCNq3fYq4nzMx7MOwYfGUEoh9W9hI6iW2bM/YiHRS6yAe VKgS/9HFHA3TOgItUd4DgE/wVKym5SD9/Ta28haMhVW8KL09R/2GhLJejnJfBkK98HdNtUsKXsPrr ZO6kpA/DdVk+DowwZsA1Cfpshl6T8TMRhmIV7H1a6AJ+kx/K5oNeOFfciZORxqAT5P76jrxro/q+i S1F2K8RA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sxSkK-00000000Bon-3pjE; Sun, 06 Oct 2024 15:00:32 +0000 Received: from zeniv.linux.org.uk ([2a03:a000:7:0:5054:ff:fe1c:15ff]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sxSj1-00000000BXC-1QMI for linux-arm-kernel@lists.infradead.org; Sun, 06 Oct 2024 14:59:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QjaM5k9qqJvchGVL0bXBB8KvEd+WrkzXBDa2YMdrjdE=; b=Ym5kQUjtP6Dd9OwFUXGvXnWioY wZDDdxmGBO5Nh6hBKstzXXUHYdcnxEuktG17KW4lqXwW2x5sqvFM7mFPaNJPWOFyxIz+rbVF9HNs5 sTl+zw6W+PsAb83XpQOTAgQaZFbLwWTz5Ne0oSzir8MLlnz1+bijsRoiBOGoSSyv908vaVW3H3Mtc dnd09+IPd5K6u683QoytSS3TepbbHEzHzcYWNO3tMcVIXt/bmeK6F6o+DoP4sVS3lmun60RRoABep 5azAeIBPC110DvZjWc43lgMUVLlpFwZAKrqbKELDkwbyv27ERTUmyioMtaoYcIdEXgGOo3Stavnop RNNpg/bw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.98 #2 (Red Hat Linux)) id 1sxSiu-00000001MPd-0X0j; Sun, 06 Oct 2024 14:59:04 +0000 Date: Sun, 6 Oct 2024 15:59:04 +0100 From: Al Viro To: kernel test robot Cc: Christian =?iso-8859-1?Q?G=F6ttsche?= , oe-lkp@lists.linux.dev, lkp@intel.com, linux-fsdevel@vger.kernel.org, Arnd Bergmann , Christian Brauner , linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, audit@vger.kernel.org, linux-api@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [viro-vfs:work.xattr2] [fs/xattr] 64d47e878a: xfstests.xfs.046.fail Message-ID: <20241006145904.GE4017910@ZenIV> References: <202410062250.ee92fca7-oliver.sang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202410062250.ee92fca7-oliver.sang@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241006_075911_402583_44CD5FF0 X-CRM114-Status: GOOD ( 12.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Oct 06, 2024 at 10:20:57PM +0800, kernel test robot wrote: > xfs/046 - output mismatch (see /lkp/benchmarks/xfstests/results//xfs/046.out.bad) > --- tests/xfs/046.out 2024-09-30 21:13:44.000000000 +0000 > +++ /lkp/benchmarks/xfstests/results//xfs/046.out.bad 2024-10-06 05:31:50.379495110 +0000 > @@ -34,4 +34,8 @@ > xfsrestore: restore complete: SECS seconds elapsed > xfsrestore: Restore Status: SUCCESS > Comparing listing of dump directory with restore directory > +ls: /fs/scratch/dumpdir/sub/a-link: No such file or directory > +ls: /fs/scratch/dumpdir/sub/b-link: No such file or directory > +ls: /fs/scratch/restoredir/dumpdir/sub/a-link: No such file or directory > +ls: /fs/scratch/restoredir/dumpdir/sub/b-link: No such file or directory > ... > (Run 'diff -u /lkp/benchmarks/xfstests/tests/xfs/046.out /lkp/benchmarks/xfstests/results//xfs/046.out.bad' to see the entire diff) > Ran: xfs/046 > Failures: xfs/046 > Failed 1 of 1 tests *stares* D'oh... Inverted sense for AT_SYMLINK_NOFOLLOW => LOOKUP_FLAGS... Try this: diff --git a/fs/xattr.c b/fs/xattr.c index 0b506b6565b7..b96cca3f4bf8 100644 --- a/fs/xattr.c +++ b/fs/xattr.c @@ -721,7 +721,7 @@ static int path_setxattrat(int dfd, const char __user *pathname, if ((at_flags & ~(AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH)) != 0) return -EINVAL; - if (at_flags & AT_SYMLINK_NOFOLLOW) + if (!(at_flags & AT_SYMLINK_NOFOLLOW)) lookup_flags = LOOKUP_FOLLOW; error = setxattr_copy(name, &ctx); @@ -880,7 +880,7 @@ static ssize_t path_getxattrat(int dfd, const char __user *pathname, return file_getxattr(fd_file(f), &ctx); } else { int lookup_flags = 0; - if (at_flags & AT_SYMLINK_NOFOLLOW) + if (!(at_flags & AT_SYMLINK_NOFOLLOW)) lookup_flags = LOOKUP_FOLLOW; return filename_getxattr(dfd, filename, lookup_flags, &ctx); }