Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp378489pxf; Thu, 11 Mar 2021 06:12:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1xhXJpT1agRUs1bLJi/wKmIxTUopCrytYzoTOg5SiIavfx4cNTVTMAAv5Su9QGdPKbLuj X-Received: by 2002:a05:6402:14cc:: with SMTP id f12mr8980088edx.19.1615471945158; Thu, 11 Mar 2021 06:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615471945; cv=none; d=google.com; s=arc-20160816; b=LPqgBl3Piiq4b3z307NoM7L1cCdJ/Z7AN0qQip4AO0ualcy/qZXPUOwo6IPYNTHcqH AEeOHyrMcZlkaA8foBgErZg8fvFGcSVMDnH/rlwe4Z4/I5hpmbK7vFJ0QR8hYMFgtuE1 16HXfQch9lYImgz73cuw0FVTIzoz42wblpUtMOFi3bNsKOkepqib56QieGm5SLLQu/sK HO722ESr+HejFjBlaTnOpNaHaEwTF9oKoQZLnqlRG4OmUdnPlP80i2dsbXac/dG1kVM/ xI13Lg4//UKNVHfIvgmyGii/k6vs5SPLf4fFHokdi4ILj0OjKIdUikkGjRoiPiR4vSZv iSEQ== 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 :user-agent:message-id:date:cc:to:from:subject:dkim-signature; bh=8SAz47eHS2CgakOLUqpbe6DyZoVKv0WNeJAL94/owtQ=; b=HH1/H9M/jHhN7e0/k1rDaFYzQ7V8vAqUhvfFEs3hlR6ZootxyyUjifA0o/1jnjPWhF xQK6ZwFmc+J5+i4PWPMgv74j5nToGVnNaOwHnBXi0F9S1tirpeBegDzhQ9zfikvp7CYS xhExULfaIvGk6paqlcfMEuUocc409206KE3JGAsLicTHXR+w3IveBwGd4B9FZTzTheXV M0zeo9eSrTn0WVkdaDpvDvn3CRmWIDiIizAqRi8SX4PYTZHLZ+VCBp+fsmxBqiKnHYZ1 mgYWMg4jh9ZPJKk0saXNqJgqk3Sf4PzJ51/GGPzCwtWPEG82XW3xrb0k2lQJKIWLu+AR mQ8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="bF/56KfL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj22si1872274ejb.614.2021.03.11.06.12.01; Thu, 11 Mar 2021 06:12:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="bF/56KfL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233167AbhCKOKb (ORCPT + 99 others); Thu, 11 Mar 2021 09:10:31 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:56578 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233192AbhCKOKW (ORCPT ); Thu, 11 Mar 2021 09:10:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615471822; 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; bh=8SAz47eHS2CgakOLUqpbe6DyZoVKv0WNeJAL94/owtQ=; b=bF/56KfLOLl4wxka0734CvKf7w5uzdR/+TMakDwLePjkYuCSyQSiazToFlag6Updjx/7VY 4tg2RB5iY3MC7eU2iE029uVufGHh3/WGOX3mM/USlrG/MBGuEk78P+keK7Qj1V8y8nf2pP bJDtPU36ik9IB0mQmZ2FvbNyK0hA8Wc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-385-_GlUPJaANKSSX6U3yufcCg-1; Thu, 11 Mar 2021 09:10:19 -0500 X-MC-Unique: _GlUPJaANKSSX6U3yufcCg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ACBE6100C618; Thu, 11 Mar 2021 14:10:17 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-118-152.rdu2.redhat.com [10.10.118.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 362CE196E3; Thu, 11 Mar 2021 14:10:16 +0000 (UTC) Subject: [PATCH 0/2] AFS metadata xattr fixes From: David Howells To: linux-afs@lists.infradead.org Cc: Gaja Sophie Peters , dhowells@redhat.com, Gaja Sophie Peters , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 11 Mar 2021 14:10:15 +0000 Message-ID: <161547181530.1868820.12933722592029066752.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.23 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here's a pair of fixes for AFS. (1) Fix an oops in AFS that can be triggered by accessing one of the afs.yfs.* xattrs against a yfs server[1][2] - for instance by "cp -a" or "rsync -X". These try and copy all of the xattrs. They should pay attention to the list in /etc/xattr.conf, but cp doesn't on Ubuntu and rsync doesn't seem to on Ubuntu or Fedora. xattr.conf has been modified upstream[3], but a new version hasn't been cut yet. I've logged a bug against rsync for the problem there[4]. (2) Hide ACL-related AFS xattrs[6]. This removes them from the list returned by listxattr(), but they're still available to get/set. With further regard to the second patch, I tried just hiding the appropriate ACL-related xattrs[5] first, but it didn't work well, especially when a volume is replicated across servers of different types. I wonder if it's better to just hide all the afs.* xattrs from listxattr(). It would probably be even better to not use xattrs for this, but I'm not sure what I would use instead. The patches can be found here: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=afs-fixes David Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003498.html [1] Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003501.html [2] Link: https://git.savannah.nongnu.org/cgit/attr.git/commit/?id=74da517cc655a82ded715dea7245ce88ebc91b98 [3] Link: https://github.com/WayneD/rsync/issues/163 [4] Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003516.html [5] Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003524.html [6] --- David Howells (2): afs: Fix accessing YFS xattrs on a non-YFS server afs: Fix afs_listxattr() to not list afs ACL special xattrs fs/afs/xattr.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)